Hi.
I am developing a little aplication used for machine monitoring.
an external microcontroller get a data from real world and send it via serial to ppc
The ppc sends a 00h, 02h to wake the microcontroller
then, ppc send a temporized 00, 01 to request data to the microcontroller every 200 ms.
for every request, the microcontroller answers only one byte indicating the value of the measured parameter.
No handshaking, 9600,8,N,1
On comm enabled to handle received data
If the received byte is equal to 26 decimal, the program sends an error message:
unable to cast object of type 'system.int32' to type 'system.array'
I think this is a bug, because it only happens w 26 number, and ONLY on the desktop, once compiled runs fine on the ppc; however it could be a data type or handshaking handle error, I am not an expert on high level programming.
Could you advice?
Regards.
PD. Excuse my spelling, I am from Mexico
I am developing a little aplication used for machine monitoring.
an external microcontroller get a data from real world and send it via serial to ppc
The ppc sends a 00h, 02h to wake the microcontroller
then, ppc send a temporized 00, 01 to request data to the microcontroller every 200 ms.
for every request, the microcontroller answers only one byte indicating the value of the measured parameter.
No handshaking, 9600,8,N,1
On comm enabled to handle received data
If the received byte is equal to 26 decimal, the program sends an error message:
unable to cast object of type 'system.int32' to type 'system.array'
I think this is a bug, because it only happens w 26 number, and ONLY on the desktop, once compiled runs fine on the ppc; however it could be a data type or handshaking handle error, I am not an expert on high level programming.
Could you advice?
Regards.
PD. Excuse my spelling, I am from Mexico