jewelranaduet / php-serial

Automatically exported from code.google.com/p/php-serial
0 stars 0 forks source link

Was using your scripts and was having trouble connecting my Arduino #8

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Ubuntu
2. /dev/ttyACM0
3. not knowing how to script very well or at all in php

What is the expected output? What do you see instead?
Serial output from Arduino, tested in Ubuntu with serial monitor from the 
Arduino development software that runs on Java. 

What version of the product are you using? On what operating system?
Ubuntu 11.10 32-bit

Please provide any additional information below.

Serial port used is /dev/ttyACM0. I modified the class from /dev/ttyS to 
/dev/ttyS and also all the ttyS to ttyACM, to no avail.

Original issue reported on code.google.com by oswin...@gmail.com on 4 Jan 2012 at 8:33

GoogleCodeExporter commented 8 years ago
/dev/ttyS to /dev/ttyACM rather... :P

Original comment by oswin...@gmail.com on 4 Jan 2012 at 8:44

GoogleCodeExporter commented 8 years ago
Have you added you apache user to your serial group. I think for ubuntu it is 
the User: www-data and Group: dailout. If so "sudo adduser www-data dialout" 
may help or removing the permissions on /dev/ttyACM0 "sudo chmod 777 
/dev/ttyACM0"

Original comment by mawmil...@gmail.com on 19 Jan 2012 at 11:03

GoogleCodeExporter commented 8 years ago
Having a similar issue on Windows. The Arduino is getting only some of the 
characters being sent my the PHP code. I'm just trying to send "Hello World " 
and instead receive "Helloorl". I thought maybe the baudrate of 19200 was too 
high, so I knocked it down to 9600 with no change. I'm using the example code 
but removed the line to read from the device as my communication is only 
one-way.

I'm running PHP from the command line, so Apache isn't at play at all right now.

Original comment by rdunajew...@gmail.com on 25 Mar 2012 at 11:10