2011-09-25 09:13 AM
has anybody tried accessing the iNEMO board from an embedded linux device using the usb interface? I am able to power the iNEMO from my device and also able to load a usb-serial driver. What I don't know is the correct serial interface parameters to use to open the port. I hope that somebody in this forum has already gone through this exercise.
thx! #inemo2011-09-28 05:09 AM
You can find useful information in the ''UM1017: STEVAL- MKI062V2 communication protocol'' available at ww.st.com/inemo.
Regards Fabio2011-09-28 01:35 PM
Hi Fabio,
I've read that document which is very helpful but I could not find any mention of serial parameters i need to use to open the port like (baud rate, data bits, stop bit, parity and flow control) settings. regards.2011-09-30 06:46 AM
There are no favorite settings for the virtual com over the usb (if you want you can set the bps 115200 and 8N1 with no control flow: hothese values are not used)
Best Regards iNEMO Team2011-10-04 04:57 PM
The following code works for me:
======== int fd; struct termios inemo; if((fd = open(port, O_NOCTTY|O_RDWR)) < 0){ perror(''open''); _exit(errno); } tcgetattr(fd, &inemo); inemo.c_iflag &= ~(IGNBRK | BRKINT | PARMRK | ISTRIP | INLCR | IGNCR | ICRNL | IXON); inemo.c_oflag &= ~OPOST; inemo.c_lflag &= ~(ECHO | ECHONL | ICANON | ISIG | IEXTEN); inemo.c_cflag &= ~(CSIZE | PARENB); inemo.c_cflag |= CS8; tcsetattr(fd, TCSANOW, &inemo); =======2011-10-04 09:15 PM
I was able to access the inemo board now. It turned out that I need to modify my usb2serial driver. Thx for the help anyways.
2012-09-27 02:14 PM
Hi there,
I have the same problem. I'm not able to talk with the device. Coul'd you please more detailed on ''modify my usbtoserial'' driver ? Thanks in advance.