Pages: [1]   Go Down
Author Topic: Port/Serial issues with PHP/Shell  (Read 359 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 40
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi guys, so I've been having an issue that's been baffling me. So I'm basically using code to shoot a nerf gun and I started out trying to use serial PHP and it would hang up and freeze stuff up so I switch to a shell script, it worked great. Then I tried to use serialphp class again and got it to work. I then try to alter the code slightly and it started doing the same thing again, hanging up. now I can't even get it back to where it was or simply working with the shell script, which hasn't changed.

When I send a command with shell it just blinks the 13 pin led twice and does nothing. If I try to use the shell or php script it locks up the arduino software and doesn't allow me to upload a new sketch, it just get's stuck on uploading. It seems like there's an interference on the port, any Ideas?
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 40
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

It seems like the only thing that works is if I first communicate with the arduino through the serial monitor then I can use php or shell... very strange..
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 610
Posts: 49077
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

This might contain useful information:
http://arduino.cc/forum/index.php/topic,116629.msg877687.html#msg877687
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 40
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

While it makes some sense, that wouldnt explain why it wouldn't work in shell file. The shell file is behaving exactly the same as the php.serial class.
Logged

0
Offline Offline
Tesla Member
***
Karma: 141
Posts: 9549
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
any Ideas?

Possibly bad code or flawed expectations.
Logged

Consider the daffodil. And while you're doing that, I'll be over here, looking through your stuff.   smiley-cool

Pages: [1]   Go Up
Jump to: