-->
Page 1 of 1

looks like PicoTCP is comming to the ESP8266 ...

PostPosted: Tue Feb 03, 2015 7:05 pm
by sfranzyshen
Looks like we will have a new player for the IP support library of the eps8266. Important here is the multicast udp support ... including working mdns and OLSR mesh stuff WOW! :o

tweet from one of thier developers.:
https://twitter.com/maximevince/status/528936982077276160

User Docs:
http://162.13.84.104/user_doc.pdf

Project Code:
https://github.com/tass-belgium/picotcp/

Re: looks like PicoTCP is comming to the ESP8266 ...

PostPosted: Wed Feb 04, 2015 3:52 am
by alonewolfx2
good news.

Re: looks like PicoTCP is comming to the ESP8266 ...

PostPosted: Tue Feb 10, 2015 12:34 pm
by empat0
Has someone looked at the sources? I find "include/arch/pico_esp8266.h" for porting, but i can't find a picotcp device driver for the esp8266. How does picotcp access the mac layer? Isn't the mac layer closed source without api? :?

Re: looks like PicoTCP is comming to the ESP8266 ...

PostPosted: Tue Feb 10, 2015 2:19 pm
by kadamski
I haven't seen picoTCP code yet but closed mac layer isn't really that big problem. You can communicate with lower layers the same way LwIP does (emulating usage of typical LwIP data structures like netif and pbuf) - if you have any data to send, you call ieee80211_output_pbuf() function, if there is any data to be read, the XTOS task with prio 28 (for STA interface) or 29 (for AP interface) will be posted with the pointer to pbuf structure in event->par in argument.

If you're interested in how LwIP is set up, take a look at https://github.com/kadamski/esp-lwip/bl ... _lwip_if.c

EDIT: I've made a quick look at both documentation and source now. There is no driver initialization code on github but it looks like it should be easy to implement using the information I provided above. The only problem is that you need to create/manage LwIP netif structure with the same ABI as internal SDK functions expect.