Re: About enabling multiple NET_SOCK_FAMILY at the same time

2022-09-02 Thread Gregory Nutt
No, that logic is not limiting the number of socket families, it is simply picking a valid socket family to access socket IOCTLs. See line 78 in that same file: /* The address family that we used to create the socket really does not * matter. It should, however, be valid in the current

About enabling multiple NET_SOCK_FAMILY at the same time

2022-09-02 Thread Hai To
Hi, My current usage requires SocketCAN and Internet connection at the same time. But according to this: https://github.com/tiiuae/nuttx/blob/3c2a3172010a0d773a404ffe610341fd6334d35d/include/nuttx/net/netconfig.h#L82 It seems that this is impossible. One of the NET_SOCK_FAMILY can be enabled If I

Re: ESP32's RMT driver PR

2022-09-02 Thread Tomek CEDRO
On Fri, Sep 2, 2022 at 6:25 PM Victor Benso wrote: > Recently I came in need of adding a WS2812 LED to one of my ESP32 projects > that run NuttX. > The existing support already on NuttX for such LEDs needed an SPI > interface. In the board in question we are short on SPIs, SPI2 is running > the

Re: ESP32's RMT driver PR

2022-09-02 Thread Alan Carvalho de Assis
Hi Victor, It should be better if you had shown me the code before submitting the PR, now you will need to face a longer review process! :-) BR, Alan On 9/2/22, Victor Benso wrote: > Hi everyone, > > Recently I came in need of adding a WS2812 LED to one of my ESP32 projects > that run NuttX.

ESP32's RMT driver PR

2022-09-02 Thread Victor Benso
Hi everyone, Recently I came in need of adding a WS2812 LED to one of my ESP32 projects that run NuttX. The existing support already on NuttX for such LEDs needed an SPI interface. In the board in question we are short on SPIs, SPI2 is running the SDCard with some load and the other(SPI3) is used

Re: Networking on simulator

2022-09-02 Thread Nathan Hartman
On Fri, Sep 2, 2022 at 8:21 AM Fotis Panagiotopoulos wrote: > I used wireshark both on the bridge and the network interface. > I can see the simulator sending packets to the bridge, but these packets do > not appear on the netif! > > It seems that the bridge does not want to forward the traffic

Re: Lua on NuttX blog posts

2022-09-02 Thread Fotis Panagiotopoulos
Oops, sorry I missed this email. Coroutines is a standard Lua library, included in the official code. More information here: http://www.lua.org/pil/9.1.html. I haven't examined the internals of this library yet. It may indeed have excessive memory requirements, or it may be that the tests are

Re: Networking on simulator

2022-09-02 Thread Fotis Panagiotopoulos
Alan, is this guide for CONFIG_SIM_NET_HOST_ROUTE or CONFIG_SIM_NET_BRIDGE? I suppose it is the former. But according to the documentation, NuttX will not access the internet with CONFIG_SIM_NET_HOST_ROUTE, right? Anyway, I tried with both configurations, but no, it is not working. I can ping the