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

how to store each raw data received from $serial->readPort() #17

Open
GoogleCodeExporter opened this issue Dec 1, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

Now, I am able to send and receive data serially from arduino to raspberry pi 
and vice versa. 
one more thing I notice is.
I am sending  [Carriage Return(CR) character(0x0D)] [LineFeed(LF) 
character(0x0A)] after the string as shown in attached pic(serialrawdata.png),
but it shows [0x0A][0x0A] in serialphp as shown in pic(phpoutput.png)

I am facing another problem.
I am sending raw data from arduino to raspberry pi.
all regular char ( A to Z , a to z , 0 to 9 ) can be received normally in $read 
= $serial->readPort();
problem is when arduino sends 0x7F , one char is being deleted from $read.
I need to store each raw data.
how to solve this problem..?

Original issue reported on code.google.com by [email protected] on 13 Mar 2013 at 5:00

Attachments:

@GoogleCodeExporter
Copy link
Author

If you haven't already, look at issue 16.  

I have had similar issues and were able to solve them by using setting the port 
to the raw state using stty.  'stty -F /dev/portToSetup raw' 

See stty man for more info.  

I realize this post is nearly a year old but others may find this useful.

Original comment by [email protected] on 29 Dec 2013 at 2:20

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

No branches or pull requests

1 participant