I am trying this out with a Mega 2560 board, having last night got it working with a standard UNO.
With the mega, it connects successfully - and i can ping it, but no inputs or outputs work. After a minute or so it goes to status Connection Failed. In the log window i see:
New UDP Text Recieved = 1 I 1 1
Error = Exception in BuildComList : Array index is out of range.
Error = Exception in BuildComList : Array index is out of range.
Error = Exception in BuildComList : Array index is out of range.
Error = Exception in BuildComList : Array index is out of range.
over and over, and eventually
Disconnected from Board No:1 at ip address 192.168.0.50 Port No:8900
Couple more bits of info. That error message keeps appearing every second even with the arduino disconnected.
Also it DOES actually work as soon as reset but only for a split second on reset. If i connect my inputs on the arduino, then hit reset on the arduino, the values of those get populated into the HS devices a second later, but no further changes. Same with output pins - after reset the pins on the arduino take the values from the HS devices, but no further changes make any difference.
Any idea what am i doing wrong?
This is using ethernet connection on a home troller-sel.
Any help appreciated!
LOG FILE ENTRIES:
Date/Time Pri Type/Error Message/Source
Dec-09 21:15:17 Arduino Plugin Sent to IP:192.168.0.50 Port No:8900 = 1 K ,Keep Alive Command
Dec-09 21:15:17 Arduino Plugin Sent to IP:192.168.0.50 Port No:8900 = 1 C ,Connect Command
Dec-09 21:15:17 Arduino Plugin Warning = Board: 1 has a connection ERROR. Retrying.
Dec-09 21:15:17 Arduino Plugin Keeping Board: 1 Comport Alive.
Dec-09 21:15:17 Arduino Plugin Sent to IP:192.168.0.50 Port No:8900 = 1 K ,Keep Alive Command
Dec-09 21:14:47 Arduino Plugin Keeping Board: 1 Comport Alive.
Dec-09 21:14:47 Arduino Plugin Sent to IP:192.168.0.50 Port No:8900 = 1 K ,Keep Alive Command
Dec-09 21:14:22 Arduino Plugin Error = Exception in BuildComList : Array index is out of range.
Dec-09 21:14:20 Arduino Plugin Error = Exception in BuildComList : Array index is out of range.
Dec-09 21:14:18 Arduino Plugin Error = Exception in BuildComList : Array index is out of range.
Dec-09 21:14:17 Arduino Plugin New UDP Text Recieved = 1 I 1 1
Dec-09 21:14:17 Arduino Plugin Sent to IP:192.168.0.50 Port No:8900 = 1 h ,Ack Command
Dec-09 21:14:17 Arduino Plugin Data Received:1 I 1 1
Dec-09 21:14:17 Arduino Plugin New UDP Text Recieved = Connected 1
Dec-09 21:14:17 Arduino Plugin Sent to IP:192.168.0.50 Port No:8900 = 1 c ,Connection established Command
Dec-09 21:14:17 Arduino Plugin Sent to IP:192.168.0.50 Port No:8900 = 1 O 26 0 ,Output Set Command
Dec-09 21:14:17 Arduino Plugin Updating Values on Board No: 1
Dec-09 21:14:17 Arduino Plugin Sent to IP:192.168.0.50 Port No:8900 = 1 I 1 2 ,Input Pinset Command
Dec-09 21:14:17 Arduino Plugin Sent to IP:192.168.0.50 Port No:8900 = 1 H 27 ,Alive Pinset Command
Dec-09 21:14:17 Arduino Plugin Sent to IP:192.168.0.50 Port No:8900 = 1 X ,Pin Reset Command
Dec-09 21:14:17 Arduino Plugin Updating pins on Board No: 1
Dec-09 21:14:17 Arduino Plugin Connected to Board No:1 at ip address 192.168.0.50 Port No:8900
Dec-09 21:14:17 Arduino Plugin Data Received:Connected 1
Dec-09 21:14:16 Arduino Plugin Error = Exception in BuildComList : Array index is out of range.
Dec-09 21:14:16 Arduino Plugin New UDP Text Recieved = Version 1 1.0.0.99 HS3
Dec-09 21:14:16 Arduino Plugin Board 1 Version 1.0.0.99 and Plugin Version 1.0.0.99 are compatible.
Dec-09 21:14:16 Arduino Plugin Data Received:Version 1 1.0.0.99 HS3
Dec-09 21:14:16 Arduino Plugin New UDP Text Recieved = Connect 1
Dec-09 21:14:16 Arduino Plugin Sent to IP:192.168.0.50 Port No:8900 = 1 C ,Connect Command
Dec-09 21:14:16 Arduino Plugin Connecting Board No:1 at ip address 192.168.0.50 Port No:8900
Dec-09 21:14:16 Arduino Plugin Data Received:Connect 1
With the mega, it connects successfully - and i can ping it, but no inputs or outputs work. After a minute or so it goes to status Connection Failed. In the log window i see:
New UDP Text Recieved = 1 I 1 1
Error = Exception in BuildComList : Array index is out of range.
Error = Exception in BuildComList : Array index is out of range.
Error = Exception in BuildComList : Array index is out of range.
Error = Exception in BuildComList : Array index is out of range.
over and over, and eventually
Disconnected from Board No:1 at ip address 192.168.0.50 Port No:8900
Couple more bits of info. That error message keeps appearing every second even with the arduino disconnected.
Also it DOES actually work as soon as reset but only for a split second on reset. If i connect my inputs on the arduino, then hit reset on the arduino, the values of those get populated into the HS devices a second later, but no further changes. Same with output pins - after reset the pins on the arduino take the values from the HS devices, but no further changes make any difference.
Any idea what am i doing wrong?
This is using ethernet connection on a home troller-sel.
Any help appreciated!
LOG FILE ENTRIES:
Date/Time Pri Type/Error Message/Source
Dec-09 21:15:17 Arduino Plugin Sent to IP:192.168.0.50 Port No:8900 = 1 K ,Keep Alive Command
Dec-09 21:15:17 Arduino Plugin Sent to IP:192.168.0.50 Port No:8900 = 1 C ,Connect Command
Dec-09 21:15:17 Arduino Plugin Warning = Board: 1 has a connection ERROR. Retrying.
Dec-09 21:15:17 Arduino Plugin Keeping Board: 1 Comport Alive.
Dec-09 21:15:17 Arduino Plugin Sent to IP:192.168.0.50 Port No:8900 = 1 K ,Keep Alive Command
Dec-09 21:14:47 Arduino Plugin Keeping Board: 1 Comport Alive.
Dec-09 21:14:47 Arduino Plugin Sent to IP:192.168.0.50 Port No:8900 = 1 K ,Keep Alive Command
Dec-09 21:14:22 Arduino Plugin Error = Exception in BuildComList : Array index is out of range.
Dec-09 21:14:20 Arduino Plugin Error = Exception in BuildComList : Array index is out of range.
Dec-09 21:14:18 Arduino Plugin Error = Exception in BuildComList : Array index is out of range.
Dec-09 21:14:17 Arduino Plugin New UDP Text Recieved = 1 I 1 1
Dec-09 21:14:17 Arduino Plugin Sent to IP:192.168.0.50 Port No:8900 = 1 h ,Ack Command
Dec-09 21:14:17 Arduino Plugin Data Received:1 I 1 1
Dec-09 21:14:17 Arduino Plugin New UDP Text Recieved = Connected 1
Dec-09 21:14:17 Arduino Plugin Sent to IP:192.168.0.50 Port No:8900 = 1 c ,Connection established Command
Dec-09 21:14:17 Arduino Plugin Sent to IP:192.168.0.50 Port No:8900 = 1 O 26 0 ,Output Set Command
Dec-09 21:14:17 Arduino Plugin Updating Values on Board No: 1
Dec-09 21:14:17 Arduino Plugin Sent to IP:192.168.0.50 Port No:8900 = 1 I 1 2 ,Input Pinset Command
Dec-09 21:14:17 Arduino Plugin Sent to IP:192.168.0.50 Port No:8900 = 1 H 27 ,Alive Pinset Command
Dec-09 21:14:17 Arduino Plugin Sent to IP:192.168.0.50 Port No:8900 = 1 X ,Pin Reset Command
Dec-09 21:14:17 Arduino Plugin Updating pins on Board No: 1
Dec-09 21:14:17 Arduino Plugin Connected to Board No:1 at ip address 192.168.0.50 Port No:8900
Dec-09 21:14:17 Arduino Plugin Data Received:Connected 1
Dec-09 21:14:16 Arduino Plugin Error = Exception in BuildComList : Array index is out of range.
Dec-09 21:14:16 Arduino Plugin New UDP Text Recieved = Version 1 1.0.0.99 HS3
Dec-09 21:14:16 Arduino Plugin Board 1 Version 1.0.0.99 and Plugin Version 1.0.0.99 are compatible.
Dec-09 21:14:16 Arduino Plugin Data Received:Version 1 1.0.0.99 HS3
Dec-09 21:14:16 Arduino Plugin New UDP Text Recieved = Connect 1
Dec-09 21:14:16 Arduino Plugin Sent to IP:192.168.0.50 Port No:8900 = 1 C ,Connect Command
Dec-09 21:14:16 Arduino Plugin Connecting Board No:1 at ip address 192.168.0.50 Port No:8900
Dec-09 21:14:16 Arduino Plugin Data Received:Connect 1
Comment