You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

README 2.9KB

3 years ago
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. The MIT License (MIT)
  2. Copyright (c) 2015 Thomas Stewart
  3. Permission is hereby granted, free of charge, to any person obtaining a copy
  4. of this software and associated documentation files (the "Software"), to deal
  5. in the Software without restriction, including without limitation the rights
  6. to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
  7. copies of the Software, and to permit persons to whom the Software is
  8. furnished to do so, subject to the following conditions:
  9. The above copyright notice and this permission notice shall be included in all
  10. copies or substantial portions of the Software.
  11. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  12. IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  13. FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  14. AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  15. LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  16. OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
  17. SOFTWARE.
  18. Acknowledgements:
  19. This driver was written by Tom Stewart under the supervision of
  20. Dr. Tomasz M. Rutkowski in the University of Tsukuba's BCI Laboratory
  21. http://bci-lab.info/
  22. Installation:
  23. The driver was developed using gtec's Linux C API 1.14.02. For it build properly,
  24. the install.sh supplied with the gtec API needs to have been run which should
  25. have created the following files:
  26. /usr/lib/libgusbampapiso.so.1.14.02
  27. /usr/include/gAPI.h
  28. /etc/gtec/filter_files/DSPfilter.bin
  29. /etc/gtec/filter_files/DSPNotchfilter.bin
  30. To access the USB without being root, you'll need to add yourself to the
  31. plugdev group and write a udev rule.
  32. To do that, first check if there is a plugdev group:
  33. $ groups
  34. If there isn't already a plugdev group, then add it using:
  35. $ sudo groupadd plugdev
  36. Now execute the following:
  37. $ sudo usermod -a -G plugdev <your-username>
  38. If you're not sure what your username is, check it with:
  39. $ whoami
  40. Next create a file named /etc/udev/rules.d/10-gusbamp-usb.rules
  41. $ sudo touch /etc/udev/rules.d/10-gusbamp-usb.rules
  42. And open it with nano editor
  43. $ sudo nano /etc/udev/rules.d/10-gusbamp-usb.rules
  44. Now paste the following line into the editor:
  45. ATTRS{idProduct}=="0001", ATTRS{idVendor}=="153c", MODE="666", GROUP="plugdev"
  46. The values for idProduct and idVendor should match the ones that show up just
  47. after you've plugged in the amplifier and executed:
  48. $ dmesg
  49. Lastly, be sure to log out and back in.
  50. Useage:
  51. The driver gives access to everything in the API with the exception of the channel
  52. calibration and asynchronous configuration for digital outputs.
  53. To run multiple gUSBAmps in parallel, use multiple instances of the acquisition server
  54. and configure each instance as Master / Slave according to gtec's documentation. When
  55. starting the acquisition, first connect to all the devices then press play on each device
  56. starting with the master.