Draft: Programming the MC HCK

My first MC HCK

My first MC HCK

The MC HCK is so tiny that you can easily carry one with you and program a bit when you’re bored. At least I do so.

Assessing the USB serial interface on the PC

Linux

Run dmesg to find the correct device:

[chris@thinkpad ~]$  dmesg
...
[470198.346134] usb 2-1.1: new full-speed USB device number 13 using ehci-pci
[470198.433248] usb 2-1.1: New USB device found, idVendor=2323, idProduct=0003
[470198.433257] usb 2-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[470198.433262] usb 2-1.1: Product: hello world
[470198.433266] usb 2-1.1: Manufacturer: mchck.org
[470198.433269] usb 2-1.1: SerialNumber: ffff00500023001124404e45
[470198.433925] cdc_acm 2-1.1:1.0: ttyACM3: USB ACM device
[chris@thinkpad ~]$

Use screen to open the serial port:

[chris@thinkpad ~]$ sudo screen /dev/ttyACM3
Hello World!
Hello World!
Hello World!
Hello World!
Hello World!
[screen is terminating]
[chris@thinkpad ~]$

Windows

To be continued...