Javascript interface with RS-232 serial port

I am currently working on a project that includes a 4-port A / V switch. This switch can be controlled via RS-232.

The computer that will interact with the switch starts Vista. I would like to create a sidebar gadget with 4 buttons - 1 for each switch port. When the user clicks the button, he switches to this port.

I have worked a little with the search engine and it seems that there is no good way to interact between javascript and rs-232.

Does anyone have any suggestions for me?

Thanks!

+5
source share
9 answers

Do you like minimized hacks?

-. CGI, Python, PHP, Perl - -.

-.

+8

, Java Active-X . JavaScript () .

+6

Javascript , - ? ? (IE Firefox?) Firefox, XUL + javascript, , - XPCOM ( ActiveX/COM) RS232.

JSDB - ( ). RS232 JSDB:

c:\>jsdb
js>S=new Stream('com1://115200');
com1
js>S.write('\x00');    // send ASCII character 0 to the serial port
1
js>

, //, http://localhost:9999/comport/1, 9999 - # JSDB, , "1" - . JSDB RS232 GET .

+3

RealTerm COM JavaScript . SourceForge 2.0.0.57 i2cchip.com 2.0.0.70.

"examples", , JavaScript.

, JavaScript, , 4 , , .

+3

, .

  • Java- .
  • RXTX (Java Serial COM API)
  • jre/ext. .

, javascript , HTA, .

+2

- V8 C, .

+1

ActiveX RS-232, , javascript . , ActiveX, JScript, Microsoft, , Javascript.

+1

, - , .

Sidebar Vista . , , html- javascript, , . , , .Net - .

. - , .

+1

AFAIK, the Gadget Vista runtime supports the use of signed ActiveX controls. You can also use Java. You can create an ActiveX wrapper for .Net that has sufficient support for serial devices. For the most part, ActiveX + Serial Communications is limited to commercial controls.

0
source

All Articles