Table of Contents

UKHASnet Gateway Dongle

A USB dongle built by Matt which receives UKHASnet packets and relays them to the ukhas.net backend server using an inbuilt wifi client device.

Firmware

Binaries here (most recent first)

Stable (for use with v1.40 ESP SDK firmware)

19/03/17 - e238e48

14/04/16 - d388884

30/03/16 - 38f7419

Building firmware

  1. Switch to the chibi branch and cd into firmware-basestation/.
  2. Fetch ChibiOS with $ git submodule update --init
  3. Ensure you have gcc-arm-embedded available and type $ make to build the firmware

Flashing firmware

The easiest way to flash the firmware is via DFU.

  1. Hold down the “BOOT” button on the board whilst plugging it into a USB port.
  2. Check the device is seen by dfu-util with $ dfu-util --list
  3. Flash with: $ dfu-util -a 0 -s 0x08000000 -d 0483:df11 -D path/to/firmware.bin

LEDs

Reporting (temperature/humidity)

Serial Terminal Usage

Connect to the USB serial terminal: screen /dev/tty.usbmodem301 (or use whatever terminal you wish).

You can type help to get a list of commands.

Setting node name

Connecting to wifi

The green LED will be solid on when the wifi is associated.

You may need to reset the ESP a couple of times after joining a new wifi network: esp reset.

Showing IP address

Viewing packets

Dongle firmware version

Updating ESP firmware

Type esp ver to see the current ESP SDK version number.

The dongle can be used to put the ESP into bootloader mode and pass through the serial terminal so that you can just point esptool at it.

You will need to reboot (unplug/plug) the dongle to return to normal operation.

v0.9.2.2

This is obsolete, use a newer version

Download: v0.9.2.2firmware.zip

For dongle firmwares up to and including e3444ef

v1.40

This is the most recent ESP firmware that retains support for 4MBit (512k) flash ESP8266 devices, which most (all?) of the dongles are. (Check that irom0text.bin is 240kB or less - it's around 350kB in later firmwares).

Download: at_v0.50_on_esp_iot_sdk_v1.4.0_150918.zip

You need to flash:

If using esptool, use:

python esptool.py --port /dev/tty.usbmodem301 write_flash 0 at/noboot/eagle.flash.bin 0x40000 at/noboot/eagle.irom0text.bin 0x3e000 at/blank.bin 0x7e000 at/blank.bin 0x7c000 at/esp_init_data_default.bin

Dongle firmware (major) changelog

Some git sha1s and the corresponding change log is here, in chronological order (most recent last).