Chrome Extension JAVASCRIPT LIB_USB
- or -
Post a project like this2038
€500(approx. $534)
- Posted:
- Proposals: 6
- Remote
- #2119062
- Completed
Description
Experience Level: Expert
Estimated project duration: less than 1 week
Project Scope :
Developing a secured javascript chrome extension.
The Chrome extension for communicating with an USB accessory / device in javascript
https://github.com/tessel/node-usb
Project Expected results :
PHASE 1 :
clicking a button/url on a https page,
verify that the necessary chrome extension is installed.
if YES
open the Chrome extension https url in a new window
(like a pop-up, without address bar, without toolbar, without navigation bar, without source code view,)....
Display an image representing the CONNECTED DEVICE.
if NO (out of scope)
open the Chrome Store to install the necessary Chrome extension
function newWindow(url) {
properties = "top=0,left=0,resizable=no, status=no, directories=no, addressbar=no, toolbar=no, scrollbars=no, menubar=no, location=no, statusbar=no"
properties += ",width=" + screen.availWidth + ",height=" + screen.availHeight;
win = window.open(url,"myUsbDevice", properties)
}
DetectedDevices Windows / Mac / Linux
=> Secure the Chrome extension
https://developer.chrome.com/extensions/security
=> Validation Test
Check if the DEVICE is recognized in the system
=> Mac
Connect the DEVICE to USB
Click the apple icon in the upper-left of the desktop
Click About this mac > System Report
In the Hardware-menu click USB
In the USB-Device tree check that the SkyBox is listed.
If not try other USB ports or reboot the system. As soon as your DEVICE is listed continue with Step 1.
Step 1:
Ensure that your DEVICE is connected to USB
Open the Chrome App
If the application displays "No DEVICE Detected" although your DEVICE is connected please wait some time. If the message stays even after waiting 1 minutes
Windows
Connect the DEVICE to USB
Windows 7/8/10: The DEVICE must be visible in control panel > Hardware and Sound > Devices and Printers and the device status must report that there are no problems with the device.
For Windows XP and alternatively for Windows 7: The DEVICE must be listed in the Device Manager under Input devices (Human interface devices) as HID compliant device (just unplug and replug the DEVICE to see the changes.
If the DEVICE is listed and reported to work without problems
If not please try other USB ports or try to become an admin if you're not already.
If this still doesn't succeed please try it with another computer to verify that DEVICE isn't damaged.
As soon as your DEVICE is listed continue with Step 1.
Step 1:
Ensure that your DEVICE is connected to USB
Open the Chrome App
If the application displays "No SkyBox Detected" although your DEVICE is connected please wait some time. If the message stays even after waiting 1 minutes
Linux
Mandatory steps before using the DEVICE on your linux system:
1) define udev rules for the DEVICE
Figure out where the udev rules are located on your system.
usually: /etc/udev/rules.d/
Place the following file in it: 99-tprogrammer.rules
The file is named '99-tprogrammer.rules' (the numbering prefix and the '.rules' suffix are essential)
The file contains several rules which give the DEVICE the necessary privileges
Then restart the udev service.
e.g. for Ubuntu the command is: sudo service udev restart
Then reconnect the DEVICE
Troubleshooting
When you've completed the steps above and your DEVICE still doesn't work please follow this guide:
Connect your DEVICE via USB
Open console and type lsusb
Then you should see one of the following entries:
ID 0483:5750 SGS Thomson Microelectronics
ID 0483:A0E7 SGS Thomson Microelectronics
ID 0483:A0E8 SGS Thomson Microelectronics
ID 16D0:0B1A MCS
If not there might be a problem with your USB connection. Please try to connect other USB devices and check whether the output of lsusb changes.
If you see the entry continue.
Then check that file /etc/udev/rules.d/99-tprogrammer.rules exists. If its missing please create it
Reconnect the DEVICE
If you completed all the tasks the DEVICE should run now with the chrome app on your system!
PHASE 2 :
Identify / Authentify the detected USB accessory/ device
Developing a secured javascript chrome extension.
The Chrome extension for communicating with an USB accessory / device in javascript
https://github.com/tessel/node-usb
Project Expected results :
PHASE 1 :
clicking a button/url on a https page,
verify that the necessary chrome extension is installed.
if YES
open the Chrome extension https url in a new window
(like a pop-up, without address bar, without toolbar, without navigation bar, without source code view,)....
Display an image representing the CONNECTED DEVICE.
if NO (out of scope)
open the Chrome Store to install the necessary Chrome extension
function newWindow(url) {
properties = "top=0,left=0,resizable=no, status=no, directories=no, addressbar=no, toolbar=no, scrollbars=no, menubar=no, location=no, statusbar=no"
properties += ",width=" + screen.availWidth + ",height=" + screen.availHeight;
win = window.open(url,"myUsbDevice", properties)
}
DetectedDevices Windows / Mac / Linux
=> Secure the Chrome extension
https://developer.chrome.com/extensions/security
=> Validation Test
Check if the DEVICE is recognized in the system
=> Mac
Connect the DEVICE to USB
Click the apple icon in the upper-left of the desktop
Click About this mac > System Report
In the Hardware-menu click USB
In the USB-Device tree check that the SkyBox is listed.
If not try other USB ports or reboot the system. As soon as your DEVICE is listed continue with Step 1.
Step 1:
Ensure that your DEVICE is connected to USB
Open the Chrome App
If the application displays "No DEVICE Detected" although your DEVICE is connected please wait some time. If the message stays even after waiting 1 minutes
Windows
Connect the DEVICE to USB
Windows 7/8/10: The DEVICE must be visible in control panel > Hardware and Sound > Devices and Printers and the device status must report that there are no problems with the device.
For Windows XP and alternatively for Windows 7: The DEVICE must be listed in the Device Manager under Input devices (Human interface devices) as HID compliant device (just unplug and replug the DEVICE to see the changes.
If the DEVICE is listed and reported to work without problems
If not please try other USB ports or try to become an admin if you're not already.
If this still doesn't succeed please try it with another computer to verify that DEVICE isn't damaged.
As soon as your DEVICE is listed continue with Step 1.
Step 1:
Ensure that your DEVICE is connected to USB
Open the Chrome App
If the application displays "No SkyBox Detected" although your DEVICE is connected please wait some time. If the message stays even after waiting 1 minutes
Linux
Mandatory steps before using the DEVICE on your linux system:
1) define udev rules for the DEVICE
Figure out where the udev rules are located on your system.
usually: /etc/udev/rules.d/
Place the following file in it: 99-tprogrammer.rules
The file is named '99-tprogrammer.rules' (the numbering prefix and the '.rules' suffix are essential)
The file contains several rules which give the DEVICE the necessary privileges
Then restart the udev service.
e.g. for Ubuntu the command is: sudo service udev restart
Then reconnect the DEVICE
Troubleshooting
When you've completed the steps above and your DEVICE still doesn't work please follow this guide:
Connect your DEVICE via USB
Open console and type lsusb
Then you should see one of the following entries:
ID 0483:5750 SGS Thomson Microelectronics
ID 0483:A0E7 SGS Thomson Microelectronics
ID 0483:A0E8 SGS Thomson Microelectronics
ID 16D0:0B1A MCS
If not there might be a problem with your USB connection. Please try to connect other USB devices and check whether the output of lsusb changes.
If you see the entry continue.
Then check that file /etc/udev/rules.d/99-tprogrammer.rules exists. If its missing please create it
Reconnect the DEVICE
If you completed all the tasks the DEVICE should run now with the chrome app on your system!
PHASE 2 :
Identify / Authentify the detected USB accessory/ device
Marc V.
100% (8)Projects Completed
6
Freelancers worked with
5
Projects awarded
64%
Last project
24 Mar 2020
Belgium
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies