nsh: i2c: command not found

2024-04-18 Thread Gustavo Soares
Hi everyone! I've built an application that sends i2c set/get commands to NuttX using the system() function in a loop that breaks after a timer runs out. After some i2c requests, NuttX prompts the message 'nsh: i2c: command not found' and the only way to solve it is rebooting the ESP32. This i

Run app when device starts

2024-03-18 Thread Gustavo Soares
Hello! I've built an application to run on NuttX and I'd like to know if it's possible to make it start when the device starts so I don't have to connect into the console to run it.

RE: Read response from console

2023-12-21 Thread Gustavo Soares
tion will appear in the menus when FIFOs are disabled. On 12/20/2023 1:45 PM, Gustavo Soares wrote: After enabling 'FIFO and named pipe drivers' I was able to use popen() and pclose() functions. Just like Nathan said... shouldn't appear it's dependency on thi

RE: Read response from console

2023-12-20 Thread Gustavo Soares
Device Drivers ---> [*] FIFO and named pipe drivers ---> Remember: "git grep" is your friend! BR, Alan On Wed, Dec 20, 2023 at 9:53 AM Gustavo Soares mailto:gustavo.felipesoa...@hotmail.com>> wrote: Hi Alan! Yes, this message pops up when trying to compile: [cid:ii_

RE: Read response from console

2023-12-20 Thread Gustavo Soares
18, 2023 at 3:39 PM Gustavo Soares mailto:gustavo.felipesoa...@hotmail.com>> wrote: Hello everyone! I have some i2c devices connected to my ESP32 and I can get their values by using the i2c get command from NuttX. Now I need my app to extract the value from the response, so I enabled the

Read response from console

2023-12-18 Thread Gustavo Soares
Hello everyone! I have some i2c devices connected to my ESP32 and I can get their values by using the i2c get command from NuttX. Now I need my app to extract the value from the response, so I enabled the popen() and pclose() functions but it still not possible to use them, is there any other

RE: PCF8575 driver for NuttX

2023-10-06 Thread Gustavo Soares
%d\n", >>> 0x70, ret); >>>} >>> >>> Now the sub bus I2C segments are transparently available as /dev/i2c1.0 >>> through /dev/i2c1.3. >>> >>> You can add a second PCA9545A, let’s say connected to port 2 >>> (/dev/i2c1.

Re: PCF8575 driver for NuttX

2023-10-04 Thread Gustavo Soares
Hi Greg! Yes, if I use #include this problem is solved, but then the code loses the reference to that specific struct causing another error. And how exactly "the file does not exist"? I can open it and it is at the nuttx repo, I shared it's link. From: Gregory

RE: Writing in an I2C device

2023-10-03 Thread Gustavo Soares
stavo, On 10/1/23, Gustavo Soares wrote: > Hello everyone! > > I have a PCF8575 IO expander with 16 channels wich I want to use 8 for write > (P10 to P17). The hardware is already configures and all LED's connected to > these ports are on. As you can see, NuttX sees the I2C

RE: different IP than expected

2023-09-21 Thread Gustavo Soares
I use those arrays to read the request and send the response, there is no stack overflow error. I've defined a IP value inside the server file (#define) and it worked as intended, but I want to be able to read the IP from Kconfig instead of having it in the server file, I'll be looking for a wa

RE: different IP than expected

2023-09-21 Thread Gustavo Soares
that has "const" modifier for "addr" parameter hoping that it will modify the value that you just assigned. That just simply will not work. чт, 21 вер. 2023 р. о 15:22 Gustavo Soares mailto:gustavo.felipesoa...@hotmail.com>> пише: I've attached a simpler version

RE: different IP than expected

2023-09-21 Thread Gustavo Soares
ss" then you simply will print "INADDR_ANY" value. чт, 21 вер. 2023 р. о 14:42 MIGUEL ALEXANDRE WISINTAINER mailto:tcpipc...@hotmail.com>> пише: I mean, ifconfig, and capture the ip… Enviado do meu iPhone Em 21 de set. de 2023, à(s) 08:24, Gustavo Soares mailto:gustavo.felipeso

RE: different IP than expected

2023-09-21 Thread Gustavo Soares
Assunto: Re: different IP than expected Hi, But what do you pass to "inet_ntoa"? Maybe you get the IP of your PC or a default router IP and try to print it? Best regards, Petro чт, 21 вер. 2023 р. о 14:06 Gustavo Soares mailto:gustavo.felipesoa...@hotmail.com>> пише: I don

different IP than expected

2023-09-20 Thread Gustavo Soares
Hello everyone! I configured NuttX to a certain IP address and I have a webserver which listens to the defined IP: [cid:820c9f69-369e-403b-8928-15a97245100a] [cid:a42eded4-3e24-4b28-b0a7-07170d21a404] The HTML file above has a variable that contains the server IP address, but it is a differe

Re: [OT] NuttX Internation Workshop Subscription is opened

2023-09-14 Thread Gustavo Soares
Already subscribed! 😁 On Thu, Sep 14, 2023, 13:26 MIGUEL ALEXANDRE WISINTAINER < tcpipc...@hotmail.com> wrote: > it´s time to Gustavo to subscribe 🙂 > > > De: Alan C. Assis > Enviado: quinta-feira, 14 de setembro de 2023 15:54 > Para: dev > Assunto: [OT] NuttX I

RE: File transfer

2023-09-13 Thread Gustavo Soares
ree. I see that currently ESP32-C3 and SIM use it. Also I used the same with custom board and it works pretty well. нд, 10 вер. 2023 р. о 00:35 Gustavo Soares пише: > Do you have any example of how it should be done? > > De: Gregory Nutt > Enviad

RE: File transfer

2023-09-09 Thread Gustavo Soares
Do you have any example of how it should be done? De: Gregory Nutt Enviado: sábado, 9 de setembro de 2023 13:51 Para: dev@nuttx.apache.org Assunto: Re: File transfer On 9/9/2023 9:43 AM, Gustavo Soares wrote: > So I have to create and mount a directory to

RE: File transfer

2023-09-09 Thread Gustavo Soares
9/9/2023 9:21 AM, Gustavo Soares wrote: > Maybe I don't have to transfer the file to the tmp folder. I think the folder > the app is reading is not the app folder but the root, so it won't find the > file. Is it possible to access the built-in apps folder on NuttX? So I can

RE: File transfer

2023-09-09 Thread Gustavo Soares
Maybe I don't have to transfer the file to the tmp folder. I think the folder the app is reading is not the app folder but the root, so it won't find the file. Is it possible to access the built-in apps folder on NuttX? So I can make the app to read its folder.

RE: File transfer

2023-09-09 Thread Gustavo Soares
nsfer Two question, why do need transfer during execution and not embbed on compile ? And about rz, do use the same console of shell ? Zmodem Enviado do meu iPhone Em 9 de set. de 2023, à(s) 00:30, Gustavo Soares escreveu:  Hi! My new application has a html file and in order to access it I need to

File transfer

2023-09-08 Thread Gustavo Soares
Hi! My new application has a html file and in order to access it I need to transfer the file to the tmp directory on NuttX. I have configured NuttX according to this video but when running rz command and CTRL + A + Z the screen in the video does not

RE: make command error

2023-09-07 Thread Gustavo Soares
ram can not have a main() function, but other name, > because is called by other program > > Enviado do meu iPhone > > Em 7 de set. de 2023, à(s) 11:13, Gustavo Soares > escreveu: > >  > Hello! > > I have an application and it was compiling normally to NuttX, but out of the

make command error

2023-09-07 Thread Gustavo Soares
Hello! I have an application and it was compiling normally to NuttX, but out of the blue an error showed up and I can not figure out what is wrong. This is the error message: [cid:96b8807a-e494-4891-b208-0b17ada218b6] and this is the line 73 of the server file: [cid:5e6c0c83-7a54-44a9-b553-c7

RE: New application to Nuttx

2023-09-03 Thread Gustavo Soares
nd > re-running `make menuconfig`. You need to check if the > `EXAMPLES_M_THREE_PLUS_STACKSIZE` is set to the default value you set > (remember: it's a default value, not necessarily it is set to it. Try to > increase it by the `menuconfig` until you find a value enough to

New application to Nuttx

2023-08-05 Thread Gustavo Soares
Hello everyone! I'm implementing a new application to Nuttx as my final college project: a assembly interpreter webserver. I've finished the code and it is running normally on Linux, but when I try to run the app on NuttX the following error occours: dump_stack: ERROR: User Stack pointer is not

Re: undefined reference to 'inet_ntoa_r'

2023-03-17 Thread Gustavo Soares
net, this is not "connected esp to the internet". If that is the case, > then better try to find IP config of esp wireless interface and access > webserver from LAN. > > Best regards, > Petro > > On Fri, Mar 17, 2023, 5:22 PM Gustavo Soares < > gustavo.felipesoa

Re: undefined reference to 'inet_ntoa_r'

2023-03-17 Thread Gustavo Soares
board profile). > > Try this sequence: > make distclean > ./tools/configure.sh esp32-devkitc:wapi > > Then example the webserver example. > > BR, > > Alan > > On 3/17/23, Gustavo Soares wrote: > > Hi, Petro! > > > > I'm using the latest