more G-Labs products

Author Topic: TcpClient help needed  (Read 739 times)

January 26, 2015, 02:28:30 AM
Read 739 times

enterprised

  • ****
  • Information
  • Sr. Member
  • Posts: 101
  • Things are only impossible until they are not
I'm trying to connect to my Honeywell alarm system over TCP.

Using the code below (and some more borrowed from an example by Gene) I do connect to the alarm system, but it requires a login password to fully connect/get in to the system. This is where I struggle.

Can someone please advice on what code to add for the password. Lets assume the password is: user

TcpClient.EndOfLine = "\r\n";
TcpClient
  .OnMessageReceived( HandleMessageReceived )
  .Service( "10,1,1,11" )
  .Connect( 4025 );

3rd party TPI tells me to send data as hex ascii code in following format:

command + data+ checksum+CR/LF

command:  30 30 35 (005)
data:           75 73 65 72 (user)
checksum:  41 43 (8 bit checksum for 30 30 35 75 73 65 72)
cr/lf:            0D 0A

so string to send is: 30 30 35 75 73 65 72 41 43 0D 0A

« Last Edit: January 26, 2015, 04:15:01 AM by enterprised »
4a 75 73 74 20 61 20 70 65 72 73 6f 6e 20 68 61 76 69 6e 67 20 66 75 6e 20 77 69 74 68 20 68 6f 6d 65 20 61 75 74 6f 6d 61 74 69 6f 6e
enterprised == guytpetj


There are no comments for this topic. Do you want to be the first?