Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arduino sending \n #64

Open
WalterPrech opened this issue Nov 3, 2017 · 2 comments
Open

Arduino sending \n #64

WalterPrech opened this issue Nov 3, 2017 · 2 comments

Comments

@WalterPrech
Copy link

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)"?

@Overdrivr
Copy link
Owner

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

@WalterPrech
Copy link
Author

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants