Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sudo apt update
- sudo apt install build-essential
- sudo apt upgrade
- sudo reboot
- sudo apt install linux-headers-$(uname -r)
- sudo su
- uname -a
- pwd
- cd Downloads
- cp linux_driver_source_3.2.12.1_64bit.zip ~
- cd ~
- unzip linux_driver_source_3.2.12.1_64bit.zip
- cd linux_driver_source_3.2.12.1_64bit
- cd drivers/driver_base/src/lnx_ko
- make
- cd ../../../usb5800dio/src/lnx_ko
- make
- mkdir /lib/modules/$(uname -r)/biodaq
- cd ../../../
- cp bin/*.ko /lib/modules/$(uname -r)/biodaq
- depmod
- vi /etc/modules
- **append (G to jump to end)
- biokernbase
- bio5800dio
- :wq (write file and quit)
- **plug in USB
- dmesg | grep bio
- lsmod | grep bio
- cd ../libs
- cp * /usr/lib
- cd ../inc
- cp bdaqctrl.h /usr/include
- mkdir /usr/share/advantech
- cp Automation.BDaq.jar /usr/share/advantech
- chmod 444 /usr/share/advantech/Automation.BDaq.jar
- cd ../examples/C++_Console/DO_StaticDO
- cat /sys/class/daq/daq0/desc (copy or write down the string)
- vi StaticDO.cpp
- :%s/ Ctrl-V Ctrl-M //g (without the spaces before and after "Ctrl-V Ctrl-M")
- /Device (find the device string)
- xx to delete DemoDevice
- type in string from cat which is "USB-5830,BID#0" in this example
- :wq (write file and quit)
- make
- ./StaticDO
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement