I can't load the sample in API for Linux into SDC2150

7 years 9 months ago #29530860 by gerardotosc
I downloaded the API provided by Roboteq and i am trying to use it to compile and load the sample into the SDC2150 using the serial port, the thing is that after i compile (everything cool until here) i can't run the program, i'm really new in the Linux world but the way i understand, the API comunicate with the controller, but it just says: "opening port... failed". I've tried to modificate sample.cpp with every port (ttyS0, ttyS1, ttyS2...) but doesn't work, how do I connect?

Please Log in or Create an account to join the conversation.

7 years 9 months ago #29530861 by gerardotosc
I found what i was doing wrong, it was a problem of permissions, i had to run the sample.o using sudo because the serial port needs root, also, the port I used was not ttyACM0 but ttyS0 wich is the one that works in my computer. I was becoming green with this problem and i hope this will help to anyone who is as lost as me.

Please Log in or Create an account to join the conversation.

Moderators: tonysantoni
Time to create page: 0.075 seconds