wcomp-raspberry

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
wcomp-raspberry [2015/03/25 18:05]
Stéphane Lavirotte
wcomp-raspberry [2015/03/26 14:40] (current)
Stéphane Lavirotte [Install sensors libraries on Raspberry Pi]
Line 2: Line 2:
  
 {{:​public_namespace:​raspberrypi.png?​65|}} As on Linux platform, WComp needs Mono to execute C# code. Current Raspberry Pi distribustion (Raspbian) are compiled for ARM with support for "hard float" which means that float computation are done directly by the processor and not by a soft evaluation. {{:​public_namespace:​raspberrypi.png?​65|}} As on Linux platform, WComp needs Mono to execute C# code. Current Raspberry Pi distribustion (Raspbian) are compiled for ARM with support for "hard float" which means that float computation are done directly by the processor and not by a soft evaluation.
 +
 +{{:​public_namespace:​target:​raspberrypib.jpg?​200|}} {{:​public_namespace:​target:​raspberrypibplus.jpg?​200|}}
  
 ===== Install Mono on Raspberry Pi ===== ===== Install Mono on Raspberry Pi =====
Line 34: Line 36:
 As the last step of the overall process, to install WComp, you juste have to unzip ''​SharpWCompContainerMonoLinux.zip''​ where you want, to be able to us it. To get WComp for Linux, you can [[contact_us|contact us]]. We do not deliver Linux over the Web. As the last step of the overall process, to install WComp, you juste have to unzip ''​SharpWCompContainerMonoLinux.zip''​ where you want, to be able to us it. To get WComp for Linux, you can [[contact_us|contact us]]. We do not deliver Linux over the Web.
  
-===== Install sensors ​library ​on Raspberry Pi=====+===== Install sensors ​libraries ​on Raspberry Pi=====
  
 On Raspberry Pi, you can use different king of sensor libraries with WComp. You can use Goove, Phidgets, Electronic Brick. Moreover, we are currently working one a unified way to access to all these set of sensors and actuators for you to be able to create propotypes with differents sets. On Raspberry Pi, you can use different king of sensor libraries with WComp. You can use Goove, Phidgets, Electronic Brick. Moreover, we are currently working one a unified way to access to all these set of sensors and actuators for you to be able to create propotypes with differents sets.
  
-==== Install ​Groove ​Pi ====+  * [[raspberry-grove|Install ​Grove Pi on Raspberry Pi]] 
 +  * [[raspberry-phidget|Install Phidget on Raspberry Pi]] 
 +  * [[raspberry-ebrick|Install Electronic Brick on Raspberry Pi]] 
 +  * [[raspberry-enocean|Install EnOcean on Raspberry Pi]]
  
-To be able to use Groove sensors and actuators, you will have to install some extra software. You can read the following procedure to setup the software to use Groove Pi on Raspberry Pi. 
-  * [[http://​www.dexterindustries.com/​GrovePi/​get-started-with-the-grovepi/​setting-software/​|Setup software for Groove Pi]] 
-  * [[http://​www.dexterindustries.com/​GrovePi/​get-started-with-the-grovepi/​updating-firmware/​|Setup firmware for Groove Pi]] (only do that to upgrade the GroovePi firware to the last release) 
- 
-When every software part is installed, you have to patch the wiringPi library in order to be able to use it with WComp. You just have to download the following zip file, extract it and and launch the installer to patch and install a patch wiringPi library on your Raspberry Pi. 
- 
- * Download {{:​telechargement:​wiringpi_patch.zip|}} 
- 
-<​code>​ 
-unzip wiringpi_patch.zip 
-cd WiringPi\ Patch 
-chmod +x install.sh 
-sudo ./​install.sh 
-</​code>​ 
- 
-==== Install Phidgets ==== 
- 
-First of all, you have to download and compile the C phidget library to be able to use it on Raspberry. 
-<​code>​ 
-sudo apt-get install libusb-1.0.0-dev 
-wget http://​www.phidgets.com/​downloads/​libraries/​libphidget.tar.gz 
-cd libphidget-* ; # * could be 2.1.8.20150207 
-./configure 
-make 
-sudo make install 
-</​code>​ 
- 
-Then you have to add Phidget available for Mono. 
-<​code>​ 
-sudo gacutil -i phidget21-windevel/​Phidget21.NET.dll 
-sudo ln -s /​usr/​lib/​mono/​gac/​Phidget21.NET/​*/​* /​usr/​lib/​mono/​2.0/​Phidget21.NET.dll 
-</​code>​ 
- 
-==== Give access to USB InterfaceKit ==== 
- 
-Last step to be able to use the Phidget InterfaceKit on Raspberry Pi is a problem of permissions on files; only root can access to data of usb pluged devices. So for any program working with Phidget InterfaceKit,​ you would need to run it as root user (with a sudo). Of course, this is not the right solution. 
- 
-You have to have the right file permissions on /dev/ to be able to access data of the Phidget InterfaceKit 8/8/8. ''/​dev''​ files are created using udev on Raspberry. So all files are dynamically created when the platform detect an hardware component (when you plug a USB device for example). So you have to create an udev file to specify what king of device you connect and what type of permissions you give to this device. 
- 
-Create a file in ''/​etc/​udev/​rules.d''​ with the suffix ''​.rules'',​ e.g. ''​local.rules'',​ and add a line like this to it: 
-<​code>​ 
-ATTRS{idVendor}=="​06c2",​ ATTRS{idProduct}=="​0045",​ SUBSYSTEMS=="​usb",​ ACTION=="​add",​ MODE="​0660",​ GROUP="​usb"​ 
-</​code>​ 
- 
-With this line in file, you will detect any InterfaceKit (vendor tag is 06c2 and product id is 0045). You can verify with ''​lsusb''​ than you have these numbers with your InterfaceKit (you will have a result like the following one). 
-<​code>​ 
-Bus 001 Device 004: ID 06c2:0045 Phidgets Inc. (formerly GLAB) PhidgetInterface Kit 8-8-8 
-</​code>​ 
- 
-As you added a new rule, you have to restart the udev service. 
-<​code>​ 
-sudo service udev restart 
-</​code>​ 
- 
-This will now create the right file in /dev with permission of ''​rw''​ for owner (root) and for group ''​usb''​. The last step is to add your user to the ''​usb''​ group. 
-<​code>​ 
-sudo addgroup usb 
-sudo adduser pi usb 
-</​code>​ 
  • wcomp-raspberry.1427303117.txt.gz
  • Last modified: 2015/03/25 18:05
  • by Stéphane Lavirotte