Forum

No Success with the...
 
Notifications
Clear all

No Success with the serial communication

2 Posts
2 Users
0 Likes
141 Views
Forum 1
 Dan
(@dan)
New Member
Joined: 3 months ago
Posts: 1
Topic starter  

Hi,

      I have  problem with the serial communication.

- SoloPy successfully installed to venv on Raspberry Pi 3B 

- for test I want to read the voltage ... your example:

import SoloPy as solo
import time

mySolo = solo.SoloMotorControllerUart("/dev/ttyS0", 0, solo.UART_BAUD_RATE.RATE_937500)

while True:
       busVoltage, error = mySolo.get_bus_voltage()
       print("Read from SOLO: " + str(busVoltage))
       print("Error: " + str(error))
       time.sleep(1)
mySolo.disconnect()  

 

- but the result is:

Voltage: -1

Error:ERROR.GENERAL_ERROR

 

- the serial communication tested successfully between Raspberry and PC (over RS485) on 115200 Baud - no problem

- PICO card has no problem with  "MotionTerminal" too

 

Any advice welcome!

 

Thank you!


   
Quote
SOLO_Francesco
(@solo_francesco)
Chief Member
Joined: 2 years ago
Posts: 31
 

A couple of questions to understand the situation..

1) you want to connect your unit to Raspberry using USB cable or UART connection??

2) when you connect your PICO to Raspberry using the Motion Terminal what is the Port you use for connect to the PICO? (should be the same you use in your code example)

 

NOTE:

- Consider that you can have only 1 connection at the time if you are on USB so you need to disconnect your unit from Motion Terminal before try to use the script

- if you check https://github.com/Solo-FL/SoloPy read me there a couple of steps/suggestion for UART or USB on Raspberry too..


   
ReplyQuote
Share: