User Tools

Site Tools


oak:serialupdate

Oak Serial Update

If all else fails, when your wifi network just won't work with the inital update (all should work after that), a serial update is the surest easy way to get an Oak updated.

We recommend CH340G based serial to usb adapters - such as these: http://www.ebay.com/itm/USB2-0-To-TTL-Serial-6Pin-Converter-CH340G-f-STC-Arduino-PRO-replace-PL2303-N136-/111937225684 or these https://www.seeedstudio.com/CH340G-USB-to-Serial-(TTL)-Module%26amp%3BAdapter-p-2359.html

If you are using that adapter install the windows driver: http://www.arduined.eu/ch340-windows-8-driver-download/ or OSX driver: https://github.com/adrianmihalko/ch340g-ch34g-ch34x-mac-os-x-driver

Connect your Oak to the adapter as shown:

Then plug it in to your computer.

Download this zip file: OakEasySerialUpdate.zip

Unzip and enter that directory.

On Windows: Double click on update.bat - when prompted enter the COM port of the USB-Serial adapter you have connected. (You can find this in device manager). You need to enter the complete name of the port, not just the number… i.e. COM3, not just 3.

On OSX/Linux: Open a command line in that folder and execute the following commands:

chmod +x update

and then

./update

When prompted enter the path of the USB-Serial adapter you have connected - ex: /dev/ttyUSB0. (dmesg | grep ttyUSB should tell you the name)

If you receive an error message similar to the below message, you need to install python serial (sudo apt-get install python-serial is the typical command line install command).

Traceback (most recent call last):
  File "esptool.py", line 22, in <module>
    import serial
ImportError: No module named serial

After the update go back to this tutorial - http://digistump.com/wiki/oak/tutorials/connecting - and register the Oak with the Particle Cloud - but you will not have to update it.

oak/serialupdate.txt · Last modified: 2017/01/27 18:42 by pfeerick