Re: [riot-devel] ESP8266 Port and Networking

2018-03-26 Thread Gunar Schorcht
Hi David, Peter,

many thanks for your answers. I was already thinking about using MQTT on
top of UDP which shouldn't be a problem to implement. My question was a
bit different.

From my understanding RIOT-OS is designed for meshed networks and the
GNRC is the core element of networking. It uses devices via the Network
interface API on top of layer 2, e.g., IEEE 802.15.4 radio.

Therefore, I was wondering whether there is something like a tunneling
approach where 802.15.4 packets are encapsulated in UDP packets and
decapsulated by 802.15.4 gateway nodes so that WiFi based nodes could
become part of the meshed network without having a MQTT broker. I could
not find enough information whether ZigBee Encapsulation Protocol could
do that job.

@David:
Even though I have a fork of RIOT-OS at
https://github.com/gschorcht/RIOT-Xtensa-ESP8266, it is only used at the
moment to document the current status of the port. There are a lot of
things to tune before it is suitable for the public.

At the moment the port can be used on top of Espressif's Non-OS SDK or
as bare metal implementation without the SDK. The later one is small and
fast. However, it is probably a dead end in case you want to use the
WiFi interface. Since it is completely proprietary, there is no other
option than to use the SDK :-(

I hope that I can publish the first version next week, probably without
networking.

Regards
Gunar

On 26.03.2018 09:25, Peter Kietzmann wrote:
> Hi Gunar, David,
> 
> I think implementing against the sock API make most sense:
> 
> http://riot-os.org/api/group__net__sock.html
> 
> Have a look at this PR which intends to port the ESP as an AT-based
> network device:
> 
> https://github.com/RIOT-OS/RIOT/pull/5898
> 
> Best
> Peter
> 
> 
> https://github.com/RIOT-OS/RIOT/pull/5898
> 
> Am 26.03.2018 um 03:18 schrieb David Lyon:
>> Hi Gunar,
>>
>> Do you have any links to your work ?
>>
>> Since I do also work on the ESP8266 I can only say that being able to
>> send and receive UDP packets might be a place to start?
>>
>> I'm not a RIOT expert - so that's where I stand.
>>
>> If RIOT supports Sockets or MQTT that might also be worth looking into.
>>
>> Regards
>>
>> David
>>
>> On 2018-03-25 05:33, Gunar Schorcht wrote:
>>
>>> Hello,
>>>
>>> most parts of my RIOT-OS port to the ESP8266 has been implemented. GPIO,
>>> SPI, I2C, UART, PWM seem to be ready and most of local applications are
>>> working.
>>>
>>> However, RIOT-OS makes no real sense without networking. Unfortunately,
>>> ESP8266 doesn't have Zigbee or 802.15.4 radio interface on board.
>>>
>>> Sure, one possibility would be to connect a Zigbee module via SPI. But,
>>> it doesn't seem to be reasonable to connect a 25 EUR Zigbee module to a
>>> 3 EUR MCU which has a WiFi interface on board.
>>>
>>> Therefore, my question is, what is the best way to realize networking on
>>> a new platform that doesn't have 802.15.4 radio but full TCP/IP stack
>>> and WiFi on board?
>>>
>>> Any suggestion helps.
>>>
>>> Regards
>>> Gunar
>>>
>>> ___
>>> devel mailing list
>>> devel@riot-os.org 
>>> https://lists.riot-os.org/mailman/listinfo/devel
>>
>>
>>
>>
>> ___
>> devel mailing list
>> devel@riot-os.org
>> https://lists.riot-os.org/mailman/listinfo/devel
>>
> 


-- 
Wenn du laufen willst, lauf eine Meile. Wenn du ein neues Leben
kennenlernen willst, dann lauf Marathon. (Emil Zatopek)



signature.asc
Description: OpenPGP digital signature
___
devel mailing list
devel@riot-os.org
https://lists.riot-os.org/mailman/listinfo/devel


Re: [riot-devel] ESP8266 Port and Networking

2018-03-26 Thread David Lyon
On 2018-03-26 18:25, Peter Kietzmann wrote:

> Hi Gunar, David,
> 
> I think implementing against the sock API make most sense:
> 
> http://riot-os.org/api/group__net__sock.html
> 
> Have a look at this PR which intends to port the ESP as an AT-based
> network device:
> 
> https://github.com/RIOT-OS/RIOT/pull/5898

The AT firmware is not really fit for purpose for this task although 
it might on the surface seem that way. 

Much time and frustration would be saved implementing the same thing 
via the Lua firmware - nodemcu. For example, use LUA to do a real 'AT' 
interface as the AT firmware that comes on most boards is disappointing.


Also, there is a C SDK available for the ESP8266 and I was interpreting 
the conversation to mean that a RIOT interface would be utilising that. 
That would be a fairly involved project and I think the OS is based on 
RTOS or something so that may be less attractive. 

Regards 

David___
devel mailing list
devel@riot-os.org
https://lists.riot-os.org/mailman/listinfo/devel


Re: [riot-devel] ESP8266 Port and Networking

2018-03-26 Thread Peter Kietzmann
Hi Gunar, David,

I think implementing against the sock API make most sense:

http://riot-os.org/api/group__net__sock.html

Have a look at this PR which intends to port the ESP as an AT-based
network device:

https://github.com/RIOT-OS/RIOT/pull/5898

Best
Peter


https://github.com/RIOT-OS/RIOT/pull/5898

Am 26.03.2018 um 03:18 schrieb David Lyon:
> Hi Gunar,
> 
> Do you have any links to your work ?
> 
> Since I do also work on the ESP8266 I can only say that being able to
> send and receive UDP packets might be a place to start?
> 
> I'm not a RIOT expert - so that's where I stand.
> 
> If RIOT supports Sockets or MQTT that might also be worth looking into.
> 
> Regards
> 
> David
> 
> On 2018-03-25 05:33, Gunar Schorcht wrote:
> 
>> Hello,
>>
>> most parts of my RIOT-OS port to the ESP8266 has been implemented. GPIO,
>> SPI, I2C, UART, PWM seem to be ready and most of local applications are
>> working.
>>
>> However, RIOT-OS makes no real sense without networking. Unfortunately,
>> ESP8266 doesn't have Zigbee or 802.15.4 radio interface on board.
>>
>> Sure, one possibility would be to connect a Zigbee module via SPI. But,
>> it doesn't seem to be reasonable to connect a 25 EUR Zigbee module to a
>> 3 EUR MCU which has a WiFi interface on board.
>>
>> Therefore, my question is, what is the best way to realize networking on
>> a new platform that doesn't have 802.15.4 radio but full TCP/IP stack
>> and WiFi on board?
>>
>> Any suggestion helps.
>>
>> Regards
>> Gunar
>>
>> ___
>> devel mailing list
>> devel@riot-os.org 
>> https://lists.riot-os.org/mailman/listinfo/devel
> 
> 
> 
> 
> ___
> devel mailing list
> devel@riot-os.org
> https://lists.riot-os.org/mailman/listinfo/devel
> 

-- 
Peter Kietzmann

Hamburg University of Applied Sciences
Dept. Informatik, Internet Technologies Group
Berliner Tor 7, 20099 Hamburg, Germany
Fon: +49-40-42875-8426
Web: http://www.haw-hamburg.de/inet
___
devel mailing list
devel@riot-os.org
https://lists.riot-os.org/mailman/listinfo/devel


Re: [riot-devel] ESP8266 Port and Networking

2018-03-26 Thread Stefan Schmidt
Hello.


On 03/25/2018 03:33 AM, Gunar Schorcht wrote:
> Hello,
>
> most parts of my RIOT-OS port to the ESP8266 has been implemented. GPIO,
> SPI, I2C, UART, PWM seem to be ready and most of local applications are
> working.
>
> However, RIOT-OS makes no real sense without networking. Unfortunately,
> ESP8266 doesn't have Zigbee or 802.15.4 radio interface on board.
>
> Sure, one possibility would be to connect a Zigbee module via SPI. But,
> it doesn't seem to be reasonable to connect a 25 EUR Zigbee module to a
> 3 EUR MCU which has a WiFi interface on board.

A 15.4 module via SPI will be way cheaper than 25 EUR.
One could find the Microchip MRF24J40MA for something like 7 EUR in Germany.
https://de.rs-online.com/web/p/products/6665748/?grossPrice=Y&cm_mmc=DE-PLA-_-google-_-PLA_DE_DE_Halbleiter-_-Hf-_Und_Mikrowellenschaltungen&mkwid=s_dc%7cpcrid%7c94257843919%7cpkw%7c%7cpmt%7c%7cprd%7c6665748&gclid=EAIaIQobChMI2Mz9sLiJ2gIVhLftCh3GNAVKEAQYAyABEgJMpPD_BwE&gclsrc=aw.ds

If you want the lowest price for any module looking at Aliexpress might also be 
an option.

Which route you wanted to go for networking is up to you, but I wanted at least 
point out that there are way cheaper options to the 25 EUR
you quoted.

regards
Stefan Schmidt
___
devel mailing list
devel@riot-os.org
https://lists.riot-os.org/mailman/listinfo/devel