Using the Mark-10
prep the host machine in a virtualbox environment
- Download and install drivers from the mark 10 website
- plug in and turn on mark 10. make sure it is set to usb mode. Go through and write down baud rate
- set communication preferences in mark 10 menu
- open virtualbox and enable filter for mark-10 in usb
-
start up virtualbox
-
download source code for silabs uart-to-usb chip
- extract zip
- modify source according to the mark-10 linux install instructions provided below
- open terminal
-
navigate to extracted directory
bash make sudo cp cp210x.ko /lib/modules/5.3.0-46-generic/kernel/drivers/usb/serial sudo insmod /lib/modules/5.3.0-46-generic/kernel/drivers/usb/serial/usbserial.ko sudo insmod /lib/modules/5.3.0-46-generic/kernel/drivers/usb/serial/cp210x.ko -
to remove driver (usually not necessary -- only if you need to fix a mistake or start over):
bash cd /lib/modules/5.3.0-46-generic/kernel/drivers/usb/serial sudo rmmod cp210x sudo rmmod usbserial
-
Compile and run test
bash ./cp210x_gpio_example
Links
https://www.mark-10.com/downloads.html https://www.silabs.com/products/development-tools/software/usb-to-uart-bridge-vcp-drivers
| Item | Internal Link | External Link |
|---|---|---|
| silabs linux source | link | web page |
| mark-10 Mac Driver | link | link |
| mark-10 windows driver | link | link |
| mark-10 linux instructions | link | link |
| mark-10 series 4 datasheet | link | link |
| mark-10 series 4 user manual | link | link |
| mark-10 usb driver manual | link | link |
Related Info
- https://unix.stackexchange.com/questions/144029/command-to-determine-ports-of-a-device-like-dev-ttyusb0
- https://unix.stackexchange.com/questions/66901/how-to-bind-usb-device-under-a-static-name
- http://www.reactivated.net/writing_udev_rules.html
- for serial/usb devices working in windows to virtualbox (slightly different problem): https://jjmilburn.github.io/2016/04/04/ttyUSB-to-vagrant-virtualbox/
- about insmod and rmmod