Powermax log request hang
Posted: Sat May 09, 2015 11:25 am
This may turn out to be an error in my code or perhaps some peculiarity with my connection but having spent a day scratching my head, I thought I'd ask here in case there is a problem with the panel itself.
I have a Visonic PowerMax Complete with the RS232 interface fitted and I am playing with the protocol as described in another thread here. The interface is connected to a NetCom 413 serial ethernet device. I'm using the port as a TCP raw server and working using sockets in Java.
The Visonic commands I have so far are: "Start conversation", Arm/Disarm, Request Status and Request Log. Everything works fine until I request the log. I get all the rows of responses but I usually can't do anything after that. Sometimes it is OK after but say 9/10 times It sort of behaves as if I've missed to send an ack but attempting to send an additional ack or to restart the conversation does not work. The only resolution I've found is to reset the TCP connection in Java. As far as my program is concerned, the only difference between the status and log requests should be a different set of bytes sent.
So my question is: Does anyone know of this sort of issue with this panel/rs232 interface?
I have a Visonic PowerMax Complete with the RS232 interface fitted and I am playing with the protocol as described in another thread here. The interface is connected to a NetCom 413 serial ethernet device. I'm using the port as a TCP raw server and working using sockets in Java.
The Visonic commands I have so far are: "Start conversation", Arm/Disarm, Request Status and Request Log. Everything works fine until I request the log. I get all the rows of responses but I usually can't do anything after that. Sometimes it is OK after but say 9/10 times It sort of behaves as if I've missed to send an ack but attempting to send an additional ack or to restart the conversation does not work. The only resolution I've found is to reset the TCP connection in Java. As far as my program is concerned, the only difference between the status and log requests should be a different set of bytes sent.
So my question is: Does anyone know of this sort of issue with this panel/rs232 interface?