Page 1 of 1

string from device

Posted: Thu Aug 31, 2006 11:11 pm
by andre
Hi, i want to send and receive strings to my rs232 device (PIC), first i create a Hardware interface, then the hardware definition, then the command configuration, after that someone explain me how i create Propety Value to pass the values (string) that i want, associated with the command that i create in the command configuration ?, then how i configure HB to receive strings from the device ?. please explain me step by step
Thanks

Posted: Fri Sep 01, 2006 9:32 am
by Timoh
When you create your device based on your serial interface, the property "Received Data" is what is coming in from the serial port.

I created another property for sending data. You will need to map some values of the property to some commands of the interface. This can be done with commands tab of the property in the serial device. (Not the interface.)

I found it confusing at first between interfaces and devices. If you take out the script and the task in the example I sent you, all you are left with is the interface which has some commands in it and a device (for that interface) which has the default received data and the new property I created "sent data" with some values mapped to commands on the commands tab.

Tim

Posted: Sat Sep 02, 2006 6:47 am
by Richard Naninck
Maybe in the link below you will find some answers to your questions.

http://www.cebotics.com/phpbb2/viewtopi ... c&start=15