C.H.I.P. (by Next Thing Co) Notes

Just some notes.

chip_pinouts

To reinstall (upgrade) the OS, go here:

flash.getchip.com

You’re going to need a USB cable, and a jumper wire/paperclip. Ground the FEL line before plugging it in to your PC. If you’re on Linux, you’ll also have to follow some funny instructions to give your account permission to access the USB port via the Chrome web browser. For me the variable that’s supposed to be your login name wasn’t working, so I just used my login name directly.

The upgrade is all-or-nothing. Kernels can’t be updated with apt-get (yet).

If you go headless, getting WiFi configured can be a pain, especially if you have a hidden SSID. Common instructions are here:

https://bbs.nextthing.co/t/setting-up-chip-as-a-headless-server-with-minimal-tools/1505

The key thing is the command: nmtui

You can *almost* do everything in it. Manually adding a hidden SSID didn’t want to take for me.

SSID IS CASE SENSITIVE (also no matter how many times you type in an incorrect SSID, it wont work, *cough*).

Much further down in the post is some guy that talks about how to do it entirely from the command line. This is what you need.

https://bbs.nextthing.co/t/setting-up-chip-as-a-headless-server-with-minimal-tools/1505/36

nmcli con add con-name your_connection_name ifname wlan0 type wifi autoconnect no save yes ssid your_hidden_ssid

nmcli con modify your_connection_name wifi.hidden true wifi-sec.key-mgmt wpa-psk wifi-sec.psk your_passwd

# To connect
nmcli con up your_connection_name

# If it’s good, permanently make it autoconnect
nmcli con modify your_connection_name autoconnect yes
# or use the GUI (nmtui)

# To disconnect
nmcli con down your_connection_name

SSH comes preinstalled on 4.4. AVAHI (zeroconf) is preconfigured to give it the network name ‘chip’ (and chip.local), so you should be able to connect like so:

Getting the IP address is not ifconfig (though you can do sudo ifconfig).

Instead, use: ip addr

To not drive yourself crazy, make an alias for ll.

Install NodeJS.

https://github.com/nodesource/distributions#debinstall

Setup a simple web server.

http://stackoverflow.com/a/8427954/5678759

AVAHI (Zeroconf) is also pre-configured. You should be able to connect to the server like so:

http://chip:8080

1 Wire

According to the “DIP” docs, the 1 Wire bus is located on LCD_D2 on pin header U13.

http://docs.getchip.com/dip.html#dip-identification