Closed fortschritt311 closed 3 months ago
Hi Maik,
that error message does ring a bell. Did you check out the "nuttx-12.3.0" tag and not compiling with the latest HEAD?
-michael
Hi Michael,
yes i used the tag "-b nuttx-12.3.0", as specified in the instructions.
Maik
Strange. Unfortunately, I cannot test it right now because I'm busy with other stuff. Did you clone this repo? Then, the gh actions (incl the image build) should also be cloned. Can you check it that worked?
FWIW, I've used debian. But the GH action use an ubuntu image.
Doh. I just see the GH actions use the nuttx-12.2.1 tag. So maybe I was (and the README is) wrong. Could you please check that tag?
With the 12.2.1 tag the same warnings appear but at the end the image is created:
LD: nuttx
CP: nuttx.hex
CP: nuttx.bin
I'll try it out and give you some feedback.
Thanks Maik.
Yeah, the warnings are "normal" probably due to a new compiler which will throw more warnings. Or maybe nuttx isn't warning free anyway. The same goes for mbusd.
btw if you only want to have the binary there is also: https://github.com/mwalle/shinelanx-modbus/releases/tag/r0
After i change the IP configuration to use static IP i downloaded the bin to the stick. This works, and i plugged the stick in the inverter. Now i can ping my static ip, but there is no modbus port available (502...)
nmap -p 502 192.168.xxx.xxx
Nmap scan report for 192.168.xxx.xxx
Host is up (0.0030s latency).
PORT STATE SERVICE
502/tcp closed mbap
I want to use the iobroker modbus adapter, but I get a socket error, because i get no connection.
Looks like the mbusd isn't started (or the network isn't available when it starts). You don't have access to the serial console by chance, do you? You'll need to solder two Testpoints to a TTL level UART converter. Unfortunately, for now there is no easy way to get debugging over network. You could also play with this sleep here: https://github.com/mwalle/shinelanx-modbus/blob/main/apps/shinelanx-modbus-gw/main.c#L155
btw. for there is also pymodbus which you can use for modbus tcp testing, if you don't like the full iobroker stack for testing. but you're right, the port should be available first ;)
Hi. I have set sleep to 10s. Now it works. Mbus is running, the port is open.
Nmap scan report for 192.168.xx.xxx
Host is up (0.0030s latency).
PORT STATE SERVICE
502/tcp open mbap
MAC Address: xx:xx:xx:xx:xx:xx (Unknown)
Nmap done: 1 IP address (1 host up) scanned in 0.20 seconds
Now i play a little bit with the register in iobroker. Thanks for your support. Maik.
Ok, it works as desired. I get all the information from the inverter :-)
Best regards Maik
Hi.
When i want to compile Nuttx i get the follwing error on Ubuntu 24.04 (especially the last four lines):
Thanks & Greetings Maik