admin管理员组文章数量:1406937
I have a cloud web app using asp web api and angular. Both hosted on azure. I need my angular app to be able to municate to serial port (read/write). How can I do this?
I've read that chrome apps can connect to usb/serial, but i'm still confused of how it works. Should i rebuild my apps to chrome apps, or should i create a seperate apps or can i just write chrome apps that open my actual web and access the serial from my current app?
I have a cloud web app using asp web api and angular. Both hosted on azure. I need my angular app to be able to municate to serial port (read/write). How can I do this?
I've read that chrome apps can connect to usb/serial, but i'm still confused of how it works. Should i rebuild my apps to chrome apps, or should i create a seperate apps or can i just write chrome apps that open my actual web and access the serial from my current app?
Share asked Mar 2, 2016 at 2:15 ReynaldiReynaldi 1,1854 gold badges20 silver badges44 bronze badges1 Answer
Reset to default 3You don't have to rewrite your app. Just create a chrome app and use webview for your actual cloud app. Basicaly you have to write the serial port munication in the chrome app context and pass the data to your webview context in your chrome app which is actually the app loaded from your cload.
Other approach is to write your whole application in an offline chrome app and municate with your cloud server trought ajax or websocket.
Another thing might help is nw.js. With this you can create desktop like apps with web technology. Basicaly in your nw.js app you will use a node.js serial modul for serial munication.
Or binate these methods.
I suggest one of the chrome app way cuz I have good experience with its serial module.
本文标签: javascriptHow can my web app communicate with serial portStack Overflow
版权声明:本文标题:javascript - How can my web app communicate with serial port - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745052960a2639763.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论