Serial Link not starting?  [SOLVED]

ChazFisher
Posts: 53
Joined: Wed Jul 03, 2019 1:32 am
Location: Central Virginia, USA

Re: Serial Link not starting?

Post 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!
Chaz Fisher
Slowly creeping up on that e-motorcycle.
User avatar
dima
Posts: 157
Joined: Sun Dec 09, 2018 9:35 pm
Location: Canada

Re: Serial Link not starting?  [SOLVED]

Post by dima »

User proof :D ... will put some kind of "friendly reminder" message into the GUI to use USB-RS232-TTL adapter.
ChazFisher
Posts: 53
Joined: Wed Jul 03, 2019 1:32 am
Location: Central Virginia, USA

Re: Serial Link not starting?

Post by ChazFisher »

;)
Chaz Fisher
Slowly creeping up on that e-motorcycle.
Yahha777
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?

Post 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)))
Attachments
127.0.0.1.png
User avatar
dima
Posts: 157
Joined: Sun Dec 09, 2018 9:35 pm
Location: Canada

Re: Serial Link not starting?

Post 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
Yahha777
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?

Post 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
Attachments
At the same time, minicom prints data exchange commands in the console
At the same time, minicom prints data exchange commands in the console
this happens through a call by the command: Huebner Inverter.sh
this happens through a call by the command: Huebner Inverter.sh
User avatar
dima
Posts: 157
Joined: Sun Dec 09, 2018 9:35 pm
Location: Canada

Re: Serial Link not starting?

Post by dima »

Do not run minicom and web interface at the same time.
Yahha777
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?

Post 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.
Attachments
shell launch and attempt to call the controller config
shell launch and attempt to call the controller config
User avatar
dima
Posts: 157
Joined: Sun Dec 09, 2018 9:35 pm
Location: Canada

Re: Serial Link not starting?

Post 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
Post Reply