manual:chapter1:usbcomms

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
manual:chapter1:usbcomms [2017/12/27 14:49]
claudio created
manual:chapter1:usbcomms [2019/11/19 15:42]
jojo1973 Reformatted
Line 1: Line 1:
-===== USB Communications setup =====+===== USB communications setup =====
  
-newRPL devices can communicate with **newRPL Desktop** by connecting the calculator to the host with a USB cable. There's some additional steps needed on various operating systems in order to communicate with the calculator:+**newRPL** devices can communicate with **newRPL Desktop** by connecting the calculator to the host with a USB cable. There's some additional steps needed on various operating systems in order to communicate with the calculator:
  
 **Windows** **Windows**
 +
 No additional steps needed, just plug it. No additional steps needed, just plug it.
  
 **Linux** **Linux**
-The current user (the user newRPL Desktop is running as) needs to have read/write permissions to USB devices. 
-Create a new group ''usbdevices'', then add the current user to that group. 
-Next, create a file (as root) ''/etc/udev/rules.d/50-HIDDevices.rules'', containing the following two lines: 
  
 +The current user (the user **newRPL Desktop** is running as) needs to have read/write permissions to USB devices.
 +
 +  - Create a new group ''usbdevices'', then add the current user to that group;
 +  - create a file (as root) ''/etc/udev/rules.d/50-HIDDevices.rules'', containing the following lines<code>
   KERNEL=="hidraw*", SUBSYSTEM=="hidraw", MODE="0664", GROUP="usbdevices"   KERNEL=="hidraw*", SUBSYSTEM=="hidraw", MODE="0664", GROUP="usbdevices"
   SUBSYSTEM=="usb", ATTR{bInterfaceClass}=="03", MODE="0664", GROUP="usbdevices"   SUBSYSTEM=="usb", ATTR{bInterfaceClass}=="03", MODE="0664", GROUP="usbdevices"
- +</code>This will indicate the system to assign the group ''usbdevices'' to all new HID devices, and permits read/write to members of that group
-This will indicate the system to assign the group usbdevices to all new HID devices, and permits read/write to members of that group.+  - finally, restart the system for the new permissions to take effect.
  
 **freeBSD** **freeBSD**
-The current user (the user newRPL Desktop is running as) needs to have read/write permissions to USB devices. 
-Create a new group ''usbdevices'', then add the current user to that group. 
-Next, create a file (as root) ''/etc/devfs.rules'', containing the following: 
- 
-  [localrules=5] 
-  add path 'ugen*' mode 0660 group usbdevices 
-  add path 'usb/*' mode 0660 group usbdevices 
-  add path 'uhid*' mode 0660 group usbdevices 
- 
-Finally, edit the file (as root) ''/etc/rc.conf'' and add a line at the end: 
  
-  devfs_system_ruleset="localrules" +The current user (the user **newRPL Desktop** is running as) needs to have read/write permissions to USB devices.
-  +
  
 +  - Create a new group ''usbdevices'', then add the current user to that group;
 +  - create a file (as root) ''/etc/devfs.rules'', containing the following lines<code>
 +[localrules=5]
 +add path 'ugen*' mode 0660 group usbdevices
 +add path 'usb/*' mode 0660 group usbdevices
 +add path 'uhid*' mode 0660 group usbdevices
 +</code>
 +  - edit the file (as root) ''/etc/rc.conf'' and add this line at the end<code>
 +devfs_system_ruleset="localrules"</code>
 +  - finally, restart the system for the new permissions to take effect.
  • manual/chapter1/usbcomms.txt
  • Last modified: 2019/11/19 15:42
  • by jojo1973