FORUM

Changing default UA...
 
Notifications
Clear all

[Solved] Changing default UART/serial line

3 Posts
2 Users
0 Likes
518 Views
Forum 1
(@wrcman555)
Eminent Member
Joined: 1 year ago
Posts: 13
Topic starter  

Hello,

I've been able to have my Solo unit communicate with an Arduino Mega via serial, and then use another serial line to transmit data to my PC for logging. To do this, I used two UART ports on my Mega, and had to change the ExeCmd function in the solo c++ library. I changed Serial to Serial1, and in the function, and then ensured the Serial instance in my code was used to talk to my PC, and not the Serial1 instance.

I there a more appropriate way to do this without modifying the Solo library?


   
SOLO Team reacted
Quote
SOLO Team
(@milad)
Illustrious Member Admin
Joined: 3 years ago
Posts: 502
 

Hi @wrcman555,

You are right, at the moment the library doesn't have the flexibility for changing the serial port with just passing input to initialization functions, however, we are working on that, and in our near future Arduino library release, there will be the possibility to pass the desired Serial port for multi-UART port Arduinos.

We will keep you updated on the newsletter once a new release goes out.

Milad

If you found the answers helpful and you could solve your problems, please kindly verify here to help others in the future.


   
ReplyQuote
SOLO Team
(@milad)
Illustrious Member Admin
Joined: 3 years ago
Posts: 502
 

Hi @wrcman555,

now our library support multi-port UART capability, please have a look at the below link:

https://github.com/Solo-FL/SOLO-motor-controllers-ARDUINO-library/blob/main/examples/ReadingTemperature_AuxiliarySerial.ino

Regards
Milad

If you found the answers helpful and you could solve your problems, please kindly verify here to help others in the future.


   
ndemarco reacted
ReplyQuote
Share: