Thanks for contacting us,
I believe ttyGS0 is not available on mraa. As you can see in this link http://iotdk.intel.com/docs/master/mraa/edison.html, the available UART interface is on /dev/ttyMFD1, so you might test using an FTDI cable connecting to TX (1) and RX (0) and then use a terminal to see the UART communication.
On the other hand, I would like to know how you are sending data from the Edison to PC.
I’ll be waiting your reply in order to help you.
Anyway I can't use the pin 0/1 serial because is busy for a serial sensor.
I'm surprised that I can't use the USB serial as communication to PC..
Anyway, about your previous question to send from Edison to PC with the USB serial port looks to work:
I'm using Eclipse tool, but if I use the Arduino IDE isn't the same than use Serial.print()?????
here the extract of init port:
uart = mraa_uart_init_raw("/dev/ttyGS0"); mraa_uart_set_baudrate(uart, 9600); mraa_uart_set_mode(uart, 8,MRAA_UART_PARITY_NONE , 1);
and here of send serial:
// send data return mraa_uart_write(uart, data, strlen(data));
Thanks for all the information that you have shared.
I made some tests using /dev/ttyGS0 port, and I’m having the same issue, I’m able to send data from the Edison to the PC, but vice-versa, I got the same behavior, sometimes the data is lost and others it is read. So, let me investigate a little bit more in order to help you with that.
I’ll appreciate your patience, also if you have any update, let me know please.
you'll need to kill clloader, there's a systemd service called galileo-target or similar running and use systemctl stop <servicename> and systemctl disable <servicename>. That should enable you to have two way communication.