Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google Chrome Extension serial port on website

I use chrome.serial to communicate with device on COM port and i need provide basic api for javascript on my web-site. First try was with content_script + messaging, but i can't use serial permission with content_script because one of them require extension to be packaged app, and another to be extension. Can i solve this issue?

like image 971
striker Avatar asked Jan 04 '13 09:01

striker


1 Answers

You can solve this by a chrome extension to support Content Scripts and packaged app for serial port communication with External Message Communication

Fetch your Extension Id's using management API and establish connection for single message communication.

On Message External is fired when a message is sent from another extension.

References

  • Content Scripts
  • Serial API
  • Packaged APP
  • Chrome Extensions
  • Management API
  • Extension API
like image 170
Sudarshan Avatar answered Sep 19 '22 12:09

Sudarshan