-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[HELP] Using espnow on NuttX for espressif devices #15347
Comments
@tmedicci @eren-terzioglu please take a look ^ |
Hi @Laczen, It is not on our roadmap. But if this is really important for your application and you decide to get hands on, open a dedicated branch so we can help with ideas and suggestions. As a starting point for your reference, please consider ESP-IDF's |
Hi @tmedicci thanks for your reply. I think this would be a good addition for nuttx. From the ESP-IDF release/v5.1 branch it seems that espnow is supported and has its own library. Do you think it is a good idea to add support for espnow in a similar way as cc1101 and nrf24l01 ? |
It would be the easiest approach, but I don't think it's the most appropriate... In my opinion, I think it should be registered as a network device (possibly as a |
Thanks, I will have a look at this approach. |
Hi @tmedicci I have been studying the I would think that to add espnow as a network device I should take a similar approach to the Should Thanks in advance. |
Hi @Laczen, Usually, NuttX drivers are split into a lower-half and upper-half, as described here. Network drivers, however, doesn't seem to follow the same path. If you check about That being said, as ESPnow is specific for Espressif devices, I think you should implement it on |
Hi @tmedicci I have been looking at integrating this but this seems like a quite difficult job. I am wondering if it would not be simpler/more generic to extend the raw packet interface for esp32 to allow sending vendor action frames using |
Hi @tmedicci the promiscuous mode also doesn't seem like a good idea as it would block the normal wifi operation mode. So I was thinking about the following approach:
I would start with only allowing broadcast packets. Do you think this would be an acceptable approach ? |
Hi @Laczen ! I'm sorry for the late response, I was on vacation... Yes, I think it's an acceptable approach. We need to have something working to fully understand all the pros and cons and suggest improvements. Were you able to work on that since then? |
Hi @tmedicci no problem for the late reply, hope you had a nice vacation. Since the post I have been reading and studying the pktradio code (the pktradio loopback device is a better startpoint than the spirit device). The approach I'm working on now is to use make a 6lowpan over espnow. The espnow packets will all be broadcasts with the first part of the packet being the destination address. I am still learning about the pktmeta, iob, ... but I will get there. As soon as I have the first working code I will create a PR to allow feedback. |
@tmedicci I have been doing some further work and I can send some packets to the network. I'm using the broadcast address 0xff, 0xff, ... and My code is in not yet in a state to create a PR :). |
Hi @Laczen . I don't know... I'm tagging the Wi-Fi internally to check about it. I will let you know when I have some feedback on this ;) |
Description
Hi, I would like to use the espnow from expressif to communicate between different esp32 based nodes. Can this be done using the raw packets net interface or is it better to create a dedicated driver?
If the raw packets net interface would work, has anyone already done this or has a good example on how to do this?
If a dedicated driver would be a better approach, can this driver be created while still maintaining normal wifi operation (of course on the same wifi channel)?
Verification
The text was updated successfully, but these errors were encountered: