jmanuelcota
Joined: 17 Nov 2007 Posts: 4
|
Posted: Mon Jan 14, 2008 9:47 pm Post subject: Reading client side serial port in a web application. |
|
|
I am working with a web application in Visual Studio 2005, which needs receives information from peripheral devices connected to the serial port of the client’s pc. It is needed to obtain the information of the above mentioned devices to realize certain processes and to display it on screen.
I’m working with an ActiveX for the managing of the serial port. This part was developed in Javascript.
I send or receive commands like this:
F0 F1 0B 19 02 00 00 00 00 03 05 02 0F
Problem:
The problem is that due to the fact that in Javascript all strings are zero-terminated, Javascript considered the sixth byte (00) to be an end of the string and cut off the rest of it.
If someone knows some solution to this problem already be with JavaScript, VBScript or components .NET would be of great help … Thank you |
|