Pages: [1]   Go Down
Author Topic: Serial output to linux commands  (Read 274 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I am having trouble figuring out how to convert my Arduino's serial output to actual software commands. I have no problems getting the computer to read serial input, but I don't know how to convert that to commands. Hypothetically, if I were to script something that would make the computer execute a command whenever it received serial input, how would I go about doing that?
Logged

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

Quote
Hypothetically, if I were to script something that would make the computer execute a command whenever it received serial input, how would I go about doing that?
Hypothetically, you would parse the serial data, extract the command and arguments, and call the appropriate API.

Practically, put your hands in your pockets while you ask the question. All that hand-waving is communicating nothing.
Logged

Pages: [1]   Go Up
Jump to: