I am trying to write a Chrome app that would support printing to old printers connected to the computer via the parallel port. I found out that Chrome apps can not use any kind of NPAPI plugins so those are out of the question. The remaining option seems to be NaCl or PPAPI plugin. But does PPAPI or pepper or NaCl (I am not very familiar with any of them and am probably using them in the wrong context) support access to the parallel port? Can a PPAPI plugin be written, which supports parallel port communication? Thanks for your time and efforts.
相关问题
- Keep receiving Login Required error when trying to
- chrome.runtime.reload blocking the extension
- How to wait for page to finish loading all content
- Detect Custom Protocol handler in chrome 86
- Why chrome.sockets.tcp.create() does not work in a
相关文章
- Google Chrome extension: How to find out if a user
- Do 'Chrome Apps for Mobile' use native web
- Testing Chrome In App Payments
- Can I access USB HID device via a Chrome App?
- What is the correct redirect URL for chrome.identi
- 'fileSystem' is only allowed for packaged
- How do you display a filesystem URL in a Chrome ap
- Google chrome extension : is it possible to get co
Packaged apps have access to the USB ports, along with serial ports. http://developer.chrome.com/apps/api_index If you are writing a javascript app, you might be able to access this functionality without writing a native client app, however if you are writing in C/C++ a subset of these APIs are available using the Pepper APIs.
You can usually write to the parallel port like to a file. (it's a few decades since I did this the last time myself though)
in Linux use
/dev/lp0
as file namesee also https://superuser.com/questions/301753/how-do-i-print-directly-to-lpt-port-in-ubuntu
in Windows
LPT0
see also
* https://developers.google.com/native-client/dev/devguide/coding/file-io
EDIT
I thought chrome packaged apps are allowed to access the local file system.
If that is limited to a sandboxed area it may not allow access to the parallel port.
Using NaCl seems to support unlimited access to local files, so this will probably work.