Asked
— Edited

I have a device that is sending information in on a serial port. I want to evaluate the incoming string then if it = a specific value to set a system variable. Something like this:
If the serial input = "MOTION" then system variable Motion = "1"
Thanks.
Alan
There are no script commands to support that at this time.
Do you know how to program in .NET? If so, you can write a simple serial reader that uses the EZ-B SDK to write data to an EZ-B variable.
Other options are (again, through some coding) writing to a file and using the readfile functions, writing to a web page and using the http functions, enabling the TCP terminal and sending from an app via TCP/IP socket (telnet) to the script interface, probably more I am not thinking of, but all would involve some external code.
What was the original application? do you have the source code, or documentation of what it can do with the data?
Alan
Buttttttttttttttttttt (that's a big BUT)
Code:
The GetControlValue script option might, maybe, possibly, (don't hold your breath) work. This at least ran for me, but I don't have anything to read from a serial port on my PC, so, I'm not sure. If you look up GetControlValue in the script manual, in the example you'll see "pause" is the condition it was looking for...how that would work for what is incoming in the serial terminal I am again not sure.
That might just work.
Alan
I would like having this feature myself. But, rather than waiting on it to be added (maybe) to ARC, one option is to use an external application custom made to pass the value onto ARC. OR, if your device has an option to send data via UDP....like with an IP address, ARC does have a scripted function for that.
If you are reading motion...is that from a motion sensor? Perhaps an alarm or security system?
In short I was hoping to more easily integrate the EZ-B4 into my existing systems. I have many systems that R2 can do many things by him self. He will look in the direction where he sees motion, talk when hearse you talk. But I can see how the EZ-B4 could really improve his ability's. A total re wire... well ummm..... The below picture may put this into perspective.
Richard R. and Thetechguru and JustinRatliff Thanks for your help.
Take a look at this thread where Luis interfaces to an Arduino to drive an LCD display. Sending instead of receiving data, but concepts are similar and would certainly work (if you look at his other posts, I think he has done some 2-way integration with another device too).
http://www.ez-robot.com/Community/Forum/Thread?threadId=6577
Here is a thread where Luis hooked up several ping sensors and a compass to an Arduino and is reading the data into the V4 using the UART port.
http://www.ez-robot.com/Community/Forum/Thread?threadId=6491
Alan
Thanks I'll look into that. Sounds like the way to go.
Richard R,
Nice robot. I love those hands, did you make them?
you can have a look here inMoov project if you're interested...
Would you consider a new thread for Inmoov and document a little of what you have done. I've just started and want to ask you questions but don't want to hijack this thread. Did you put arduinos in the arms? I see the EzB in the back. I'm amazed at how quickly you have built this.
Cheers