Welcome new user! You can search existing questions and answers without registering, but please register to post new questions and receive answers. Note that due to large amounts of spam attempts, your first three posts will be manually moderated, so please be patient.
We have moved to a new forum at http://jevois.usc.edu, please check it out. The forum at jevois.org/qa will not allow new user registrations but is maintained alive for its useful past questions and answers.
Welcome to JeVois Tech Zone, where you can ask questions and receive answers from other members of the community.

How to change hard serial baud rate?

0 votes
I'm using software serial on an Arduino to read the data from JeVois, and it chokes on 115200. How can I change the Hard Serial baud rate of JeVois to 9600?
asked Apr 29, 2017 in Hardware Questions by zlite (300 points)

1 Answer

+2 votes
 
Best answer
Uncomment the baudrate line in JEVOIS:/config/params.cfg, that'll change the baudrate for every module (alternatively you can change it for just one module by making a params.cfg file in the module directory.)

Depending on what you're doing I'd not go all the way down to 9600, though. There's also 14400, 19200, 38400 or 57600. Go with the highest your arduino code can reliably handle.
answered Apr 30, 2017 by pelrun (2,330 points)
selected Apr 30, 2017 by zlite
I note that you must also uncomment the other lines or it won't boot

serialdev=/dev/ttyS0
serial:baudrate=38400
serial:linestyle=LF
BTW, is this documented anywhere? I couldn't find it, so it might be a good addition to the Wiki
This doesn't appear to be documented very well just yet. The configuration files are listed on http://jevois.org/doc/JeVoisDaemon.html, and the parameters themselves are declared the same way as in modules (the JEVOIS_DECLARE_PARAMETER macros) and can be looked up in the documentation. Only the Engine and Serial core classes appear to have them, all other parameters are defined in individual modules.
...