Serial Link not starting? [SOLVED]
-
- Posts: 53
- Joined: Wed Jul 03, 2019 1:32 am
- Location: Central Virginia, USA
Re: Serial Link not starting?
So remarkably enough, after all that abuse, once I connect a TTL-level serial cable the STM32 communicates just fine. Tough little chip!
Chaz Fisher
Slowly creeping up on that e-motorcycle.
Slowly creeping up on that e-motorcycle.
Re: Serial Link not starting? [SOLVED]
User proof ... will put some kind of "friendly reminder" message into the GUI to use USB-RS232-TTL adapter.
-
- Posts: 53
- Joined: Wed Jul 03, 2019 1:32 am
- Location: Central Virginia, USA
-
- Posts: 52
- Joined: Wed Feb 27, 2019 7:03 am
- Location: Belorussia. Borisov
- Has thanked: 15 times
- Been thanked: 1 time
- Contact:
Re: Serial Link not starting?
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)))
P.S I understand that the problem is in setting up the PC? And sorry for Google translator)))
Re: Serial Link not starting?
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
-
- Posts: 52
- Joined: Wed Feb 27, 2019 7:03 am
- Location: Belorussia. Borisov
- Has thanked: 15 times
- Been thanked: 1 time
- Contact:
Re: Serial Link not starting?
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
- Attachments
-
- Posts: 52
- Joined: Wed Feb 27, 2019 7:03 am
- Location: Belorussia. Borisov
- Has thanked: 15 times
- Been thanked: 1 time
- Contact:
Re: Serial Link not starting?
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?
It is a permission issue, try with sudo or this command before you run
No time to work on Linux, tested with Windows and Mac. Feel free to fix it.
EDIT: Linux Fixed
Code: Select all
sudo stty -F /dev/ttyUSB0 115200 -parenb cs8 cstopb
EDIT: Linux Fixed