by stevethomas » Thu Jul 28, 2011 5:16 pm
I am currently implementing some software to control the H104 remotely, using LabWindows/CVI. The information in the manual is a bit sketchy, and keeps referring to example software that doesn't seem to exist. Having immersed myself fully in the manual, the only things I'm still uncertain about are maximum lengths to allocate for strings in commands and responses. In particular, I've not been able to find the value of ARRAYSZ_SSS_PASSWORD (page 137, data associated with the session start command...)
Still struggling with this. I've now got hold of the example software (Thanks Matthew) and the string I'm sending to the HAL is 00100000000E000000000000000000000000000037CB, with a carriage return on the end (no password).
No response is received. I've tried copying this string into Hyperterminal and sending it from there, but still nothing.
Baud rate is 9600, data bits 8, stop bits 1, no parity. The HAL is in its default power-up state.
If I calculate the crc16 including the two crc bytes, the result is 0000, so I know the crc16 calculation is working as expected.
Has anyone managed to get a response from the HAL?
I've just been looking at this at home (we don't have VC++ 9 at work), and I realised that my code doesn't send the "\x11\x11\x01\x02\x03\x01\x02\x03" sequence first. I'll try this when I get into the office tomorrow. I'll also try using a non-zero sequence number.