Re: Ethernet cable (network interface availability) detection

2021-04-14 Thread Flavio Castro Alves Filho
Gregory, Thank you for your support. I will work on this. Best regards. Flavio Em qua., 14 de abr. de 2021 11:09, Gregory Nutt escreveu: > You board must provide CONFIG_ARCH_PHY_INTERRUPT: > > $ find boards/ -name Kconfig | xargs grep ARCH_PHY_INTERRUPT > boards/Kconfig: select

RE: CAN on STM32H7 platforms under NuttX

2021-04-14 Thread David Sidrane
Roberto There is a DRAFT PR https://github.com/apache/incubator-nuttx/pull/2987 David -Original Message- From: Roberto Bucher [mailto:roberto.buc...@supsi.ch] Sent: Wednesday, April 14, 2021 6:18 AM To: dev@nuttx.apache.org Subject: CAN on STM32H7 platforms under NuttX Hi For a

Re: DALI Interface Proposal

2021-04-14 Thread Alan Carvalho de Assis
Hi Murat, I think DALI support should be a nice feature to have! Well, I already search for this protocol some time ago, but I don't know much about it yet. The protocol uses Manchester encoding, maybe driver interface should be implemented using GPIO and freerunning timer. Suggestions are

Re: Ethernet cable (network interface availability) detection

2021-04-14 Thread Gregory Nutt
You board must provide CONFIG_ARCH_PHY_INTERRUPT: $ find boards/ -name Kconfig | xargs grep ARCH_PHY_INTERRUPT boards/Kconfig: select ARCH_PHY_INTERRUPT boards/Kconfig: select ARCH_PHY_INTERRUPT if SAMA5_EMACA || SAMA5_EMAC0 || SAMA5_EMAC1 || SAMA5_GMAC boards/Kconfig: select

Re: Ethernet cable (network interface availability) detection

2021-04-14 Thread Matias N.
Contributing and Glossary should be left at the end. I would put it right before Guides. Maybe one file with subsections is enough for now. On Wed, Apr 14, 2021, at 11:03, Alan Carvalho de Assis wrote: > Hi Matias, > > I can submit a PR with it. > > Where the FAQ should be added? Is it ok to

Re: Ethernet cable (network interface availability) detection

2021-04-14 Thread Alan Carvalho de Assis
Hi Matias, I can submit a PR with it. Where the FAQ should be added? Is it ok to be after Glossary? BR, Alan On 4/14/21, Matias N. wrote: > We do not yet have a "Networking" section under "OS Components" where a lot > of network related stuff should > be. However, I have thought about a FAQ

Re: Ethernet cable (network interface availability) detection

2021-04-14 Thread Flavio Castro Alves Filho
The netinit_monitor code is self-explanatory :-/ I could understand what must be done ... and, naturally, it is in accord with the documents. In my case, I cannot easily enable it from menuconfig ... as far as I understood. Em qua., 14 de abr. de 2021 às 10:49, Gregory Nutt escreveu: > > This

Re: Ethernet cable (network interface availability) detection

2021-04-14 Thread Matias N.
We do not yet have a "Networking" section under "OS Components" where a lot of network related stuff should be. However, I have thought about a FAQ section for having brief question/answers where this kind of information can be (until a proper section is added). If anyone wants to start this it

Re: Ethernet cable (network interface availability) detection

2021-04-14 Thread Gregory Nutt
This is very out of date, but 90% accurate: https://cwiki.apache.org/confluence/display/NUTTX/Network+Link+Management https://cwiki.apache.org/confluence/display/NUTTX/NSH+Network+Link+Management This was not updated after the network initialization and network monitor were removed from NSH

Re: Ethernet cable (network interface availability) detection

2021-04-14 Thread Flavio Castro Alves Filho
Hello, In my case, there is an additional challenge: the CONFIG_NETINIT_MONITOR is not supported by STM32F4DISCOVERY. What should I have to do to enable the feature for the board? Best regards, Flavio Em qua., 14 de abr. de 2021 às 10:41, Alan Carvalho de Assis escreveu: > > I think this is

Re: Ethernet cable (network interface availability) detection

2021-04-14 Thread Alan Carvalho de Assis
I think this is kind of question that should be in some FAQ or in our documentation, it is asked often... Is there some only place in our Documentation where we could include it? BR, Alan On 4/14/21, Gregory Nutt wrote: > Normally this is done using the PHY driver at >

Re: Ethernet cable (network interface availability) detection

2021-04-14 Thread Flavio Castro Alves Filho
Hello Gregory, Got it! The flags are populated by the monitor thread. I will enable here in my setup, test and report here. Thank you very much. Best regards, Flavio Em qua., 14 de abr. de 2021 às 10:31, Gregory Nutt escreveu: > > Examples: > > $ find boards/ -name defconfig | xargs

Re: Ethernet cable (network interface availability) detection

2021-04-14 Thread Gregory Nutt
Examples: $ find boards/ -name defconfig | xargs grep CONFIG_NETINIT_MONITOR boards/arm/samv7/same70-xplained/configs/netnsh/defconfig:CONFIG_NETINIT_MONITOR=y boards/arm/samv7/samv71-xult/configs/netnsh/defconfig:CONFIG_NETINIT_MONITOR=y

Re: Ethernet cable (network interface availability) detection

2021-04-14 Thread Gregory Nutt
Normally this is done using the PHY driver at nuttx/drivers/net/phy_notify.c that provides PHY-related events to applications via signals.  It requires board-level support to handle PHY interrupts. The network monitor thread at apps/netutils/netinit (see CONFIG_NETINIT_MONITOR) will handle

Ethernet cable (network interface availability) detection

2021-04-14 Thread Flavio Castro Alves Filho
Hello, I am implementing an application using NuttX where I need to detect if the network cable is plugged or not in my board. Today I implemented the function netlib_getifstatus(), which automates the read of SIOCGIFFLAGS, similar to what we have in Linux. But, in my tests, it seems that it is

CAN on STM32H7 platforms under NuttX

2021-04-14 Thread Roberto Bucher
Hi For a bachelor project with a student, which will start on may 2021, I have to implement a CAN communication between a STM32H743ZI2 board and 2 STM32F446 boards. I'd like to propose to my student to work with micro-ROS and NuttX on both platforms. Basically it seems that the CAN bus

RE: NuttX-10.1

2021-04-14 Thread Alin.Jerpelea
Hi Nathan, Today I managed to log in to confluence without issues and work on some release notes Thanks Alin -Original Message- From: Nathan Hartman Sent: den 13 april 2021 21:34 To: dev@nuttx.apache.org Subject: Re: NuttX-10.1 On Tue, Apr 13, 2021 at 1:43 PM Nathan Hartman