2021-05-20 04:38 PM
Hi,
My custom board has an STM32G474RE with an RS-485 port that I would like to use to communicate with the Motor Pilot software. Is it possible? I tried to use the STM32CubeMX to activate the UART5 hardware flow control (DE) but the connection failed.
2021-05-27 06:09 AM
Hello,
Could you describe the RS-485 transceiver do you use ?
The new Motor control protocol provided from the 5.Y release makes use of UART full duplex capabilities.
Regards
Cedric
2021-05-27 04:05 PM
Hi. Cedric
I use the SN65HVD08. Its a generic RS-485 transceiver. I'm sure that is working.
I found that the protocol used by the Motor Pilot software was synchronous. The Motor Pilot sends a command to the Microcontroller and waits for a response. In this case, it shouldn't make any difference to use UART full-duplex (RS-232) or RS-485. As the MC Workbench does not allow configuring the UART with hardware flow control, I opened the code generated in the STM32CubeMX and modified the UART configuration, generated the code again, but the connection failed.
2021-05-28 05:36 AM
Hello,
The protocol used by the Motor Pilot is synchronous if you do not use the data log capabilities, accessible through the "Async config" tab.
Datalog are not mandatory to control the motor, it allows you to dump data produced at PWM frequency like current measured, like an oscilloscope.
So, without Datalog, your transceiver should be OK.
Would you be able to do an oscilloscope screenshot of DE,RE,D and R signals ?
Regards
Cedric
2023-12-05 03:45 AM
HI
Asantos
Did you succeed with rs485?? i am facing the same issue