Overdrivr / Telemetry

Data visualization and communication with embedded devices

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Arduino sending \n

WalterPrech opened this issue · comments

commented

I'm using the Arduino Library on an Arduino Uno.

For the first test, I want to send a simple integer value.
void loop() {
TM.pub_u8("abcd",10);
delay(1000);
}

The received data in Ubuntu on the serial port are:
\xF7\x01\x00""abcd\x00\n\x02}\x7F\x7F

Do you have an idea, what's wrong? Which data should be received for sending "pub_u8("abcd",10)"?

Sorry about the late answer, the data you're receiving looks ok. It matches the raw data format used by Telemetry. To turn this data into a human-readable form, you can either use:

  • pytelemetry for programmatic interaction (in Python)
  • pytelemetrycli to simply read/plot the data using a command line interface
commented

Thank you for verifiying the correctness of the data. I installed the pytelemetrycli and could plot the data that I send from the Arduino.

I want to integrate the c library (without python) in a Qt application on an embedded board (not mbed compatible). If I get right in understanding the library, I had to split the incoming data an read byte for byte and send each byte to the transport.read function?

Do you have a hint how to do this or a c++ file for getting these bytes from the serial port?