开发者

Access to serial port from web browser

I'm trying to access serial port through web browser. The reason is for downloading firmware to a device that is connected to the same machine that is running the browser (via USB to rs-232).

I'v searched around and have seen that this is doable via Silverlight, but this is Windows only centric since it requires COM support, while my main operating system is Linux, then Windows and then Mac.

I know it's easy to develop JavaFX / QT / Mono / AIR cross platform applications, but those require installing a huge runtime binaries and only then run the application. I'm trying to keep it really simple, plug your device, visit a开发者_运维问答 web site and it will auto install your application.

Do you guys think it's possible?

Thanks.


https://code.google.com/p/java-simple-serial-connector/

Since Java is cross platform, this would be the only thing required to get the serial support you need in browser.

(not exactly a security nightmare as @"awm" proposed) You could implement a websocket on the localhost, expose a port that is rarely used and call that websocket to open the serial port and feed data to the device to upgrade the firmware.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜