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.

Changing the baudrate for the hardserial do not function

0 votes
I want to change the baudrate of the Hardserial for the communication with my Arduino. In the decription I found out that I have to do the following:

For changing the baudrate to 38400 in the Inventor I have to enter in the params.cfg the following lines:

serialdev = / dev / ttyS0

seriell: Baudrate = 38400

seriell: linestyle = LF

I did it and I got in ervery line the Error: No Parameter named serialdev or seriell:baudrate or seriell:linestyle.

Where is my mistake?

Please be so kind and help me.

Regards Peter
asked Feb 27, 2019 in Programmer Questions by Peter (580 points)

1 Answer

0 votes
yes, you cannot do this in the inventor, as the file you need to edit is the system-global params.cfg, not your own module's params.cfg. The system-global params.cfg is parsed once when jevois boots up. It is not available in the Inventor because any changes in this file will likely break communication between the Inventor and JeVois, so the system-global params.cfg is for advanced users only. In contrast, a module's params.cfg is parsed each time that module is loaded.

To access it: insert your microSD into your PC using an adapter (card reader). You need a Mac or Linux machine, Windows only detects the first partition of SD cards, but the file is on the third partition (called JEVOIS). Alternatively, in the Inventor go to the System tab and enable exporting the microSD inside JeVois as a virtual flash drive. The JEVOIS partition will then appear on your computer as if you had attached a flash drive. Then edit the file:

JEVOIS:/config/params.cfg

using a plain text editor.
answered Feb 28, 2019 by JeVois (46,580 points)
A very good answer. I could change the baud rate. But it did not solve my problem. It seems that the function parseSerial(self, str)  only works with 115200. If I change the baud rate all the comands from the Arduino comes with the answer: Error unknown Comand.
...