| Home | News | Products | Support | Download | Sales | library | Guests | Contact | WebCam | Links | |
| LanBox-Talk mail archive | |
| By date: Prev | Next | Index | By thread: Prev | Next | Index | ||||||
On Tue, Jun 10, 2003 at 10:02:11PM +0200, Sebastian Oschatz wrote: is anyone having a source code in c, vb or delphi to control the lcx?No, but communicating with the LanBox is fairly easy: what tcp-port do i need to use? what initialization sequence is needed to switch the box into manual mode? how is the password protection implemented?You connect to TCP port 777. The LanBox will ask for a password (just match for 'ssword' or so). Send the password as plaintext string, followed by a CR (char 13). The lanbox should reply 'connected' or 'access denied'. After this you can send commands and receive replies. Each command consists of an asterisk (*), the hex-encoded command byte, zero or more hex-encoded data bytes, and finally a hash (#). For the commands you'll be using, the reply is either a 'prompt' (>) or a question mark (?). You should discard any other characters you receive. A question mark indicates the command failed. Note that on the LCX you can safely "overlap" multiple commands. The replies will be in the same order as the commands. (note that you shouldn't push this too far.. the input buffer is limited to a few KB) As example, here are two commands you'll need: *65FF# // switch to 16-bit mode .. the first thing you should do *C9010001FF# // set channel 1 of layer A to 100% I'll dissect that second command: C9 - command number for ChannelSetData 01 - layer A (2 is B, etc) 0001 - channel 1 (16-bit, big endian) FF - value 255 (100%) Note that the ChannelSetData command supports multiple channel/value pairs: *C9010001FF0002FF0003FF# // set channels 1 thru 3 of layer A to 100% Hope this explains things a bit. You can find more information in the command reference included with LCedit+. hth -- Matthijs van Duin -- May the Forth be with you!
| |||||||
| By date: Prev | Next | Index | By thread: Prev | Next | Index | ||||||