Loading...
Pages: [1]   Go Down
Author Topic: Port/Serial issues with PHP/Shell  (Read 201 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 38
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: 38
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: 311
Posts: 35470
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: 38
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: 50
Posts: 6530
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
any Ideas?

Possibly bad code or flawed expectations.
Logged

Why I like my 2005 rio yellow Honda S2000 with the top down, and more!
GOOGLE ADVANCED FORUM SEARCH BELOW!  
Go to:  http://www.google.com/advanced_search?hl=en
put in key search words,
use site or domain:  http://arduino.cc/forum
or in a google search box put key words site:http://arduino.cc/forum

Pages: [1]   Go Up
Print
 
Jump to: