Monday, January 7, 2008

Re: [oopic] Interpreting serial data.

Are you sending ASCII characters in both directions? You simply use a
"case" or "switch" construct to compare with the data being sent to the
ooPIC. There are literally thousands of examples showing this kind of
simple control structures. You need to write down specifically what you
want to do and organize how you want to do it. Do you have much
experience with programming? If not it will be to your benefit to check
out some books or C or BASIC programming to learn how to use those types
of constructs.

Welcome to embedded programming! :)

DLC

aravind_2917 wrote:
> hello,
>
> Iam trying to communicate with oopic from my mobile over the serial
> port using bluetooth dongle...everything is working fine...i can make
> out that data is being transmitted to the oopic and oopic is receiving
> the data...
>
> Iam sending single character from the mobile...like 's' for example...i
> can even send a single byte from the mobile..
>
> Now,how do i interpret the data received by OOPIC...am using
> oSerialPort object...
>
> oSerailPort sp=new oSerialPort;
> sp.Operate=1;
>
> i want to compare the values received ,with predefined values and carry
> out other tasks accordingly...like ,start a motor if 's' is
> received..stop the motor if 't' is received...How do i do that?..what
> are the conversions and comparisions involved?
>
>
>
>
>
> Yahoo! Groups Links
>
>
>
>

--
------------------------------------------------------
Dennis Clark ooPIC Tech Support
www.oopic.com
------------------------------------------------------


Yahoo! Groups Links

<*> To visit your group on the web, go to:

http://groups.yahoo.com/group/oopic/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:

http://groups.yahoo.com/group/oopic/join

(Yahoo! ID required)

<*> To change settings via email:
mailto:oopic-digest@yahoogroups.com
mailto:oopic-fullfeatured@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
oopic-unsubscribe@yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:

http://docs.yahoo.com/info/terms/

No comments:

Post a Comment