Page 2 of 2

Re: Serial Link not starting?

Posted: Sat Aug 31, 2019 10:52 pm
by ChazFisher
So remarkably enough, after all that abuse, once I connect a TTL-level serial cable the STM32 communicates just fine. Tough little chip!

Re: Serial Link not starting?  [SOLVED]

Posted: Wed Sep 04, 2019 4:46 pm
by dima
User proof :D ... will put some kind of "friendly reminder" message into the GUI to use USB-RS232-TTL adapter.

Re: Serial Link not starting?

Posted: Sun Sep 08, 2019 12:47 am
by ChazFisher
;)

Re: Serial Link not starting?

Posted: Tue Feb 04, 2020 3:31 pm
by Yahha777
Hello! I don’t know if I am writing, but I have a similar problem. I have a 2nd version board, the bootloader and the main program are flashed. The green LED blinks pleasantly, the board communicates via Wi-Fi - but the truth is that the ping comes as if from Mars))) but nonetheless, the controller configuration is visible. But there is no connection with the USB-TTL board. / dev / ttyUSB0 is enabled, the user is in the dialout group, the minicom utility has configured the port speed of 115200 8n2. when you click the reset button in minicom, the 2D response comes. The json command sent sends the configuration. when you click the reset button in minicom, the 2D response comes. The json command sent sends the configuration. In the browser - nothing is displayed.
P.S I understand that the problem is in setting up the PC? And sorry for Google translator)))

Re: Serial Link not starting?

Posted: Tue Feb 04, 2020 4:42 pm
by dima
Cannot just run it from a web server, you need to run "preparation script" -> "Huebner Inverter.sh" it will place proper ttyUSB into /Web/js/serial.json. It uses "php -S" command as a webserver on port 8080. The web interface will be http://127.0.0.1:8080

Re: Serial Link not starting?

Posted: Tue Feb 04, 2020 5:44 pm
by Yahha777
dima wrote: Tue Feb 04, 2020 4:42 pm Cannot just run it from a web server, you need to run "preparation script" -> "Huebner Inverter.sh" it will place proper ttyUSB into /Web/js/serial.json. It uses "php -S" command as a webserver on port 8080. The web interface will be http://127.0.0.1:8080

Re: Serial Link not starting?

Posted: Tue Feb 04, 2020 7:43 pm
by dima
Do not run minicom and web interface at the same time.

Re: Serial Link not starting?

Posted: Wed Feb 05, 2020 6:11 am
by Yahha777
I used the minicom utility only for observing the comport to eliminate its malfunction. But the fact is that without it in the browser, the data of the microcontroller does not display.

Re: Serial Link not starting?

Posted: Wed Feb 05, 2020 9:48 pm
by dima
It is a permission issue, try with sudo or this command before you run

Code: Select all

sudo stty -F /dev/ttyUSB0 115200 -parenb cs8 cstopb
No time to work on Linux, tested with Windows and Mac. Feel free to fix it.


EDIT: Linux Fixed