Skip to content

Pack Thingsquare

Javier Sanchez edited this page Feb 3, 2017 · 6 revisions

Thingsquare

What do I need?

To build the application you will need:

Downloads

Select Zolertia RE-Mote device and Zolertia Orion Router. And select Frequency band. The frequency band depends on the application.

2.4GHz

The 2.4Ghz technology for middle edge range designed to in-door. This band it's a worldwide band.

SubGHz

The SubGHz technology is recommended for more long range than 2.4GHz. If it's your choice, select 868MHz for Europe and 915MHz for EEUU.

Program devices

Program our image on Orion router using:

../contiki$ python tools/cc2538-bsl/cc2538-bsl.py -e -w -v -a 0x00200000 -b 460800 -p /dev/ttyUSB0 ../../../orion-868mhz.bin 

Changing directories. The output are similar than:

Opening port /dev/ttyUSB0, baud 460800
Reading data from ../../../orion-868mhz.bin
Firmware file: Raw Binary
Connecting to target...
CC2538 PG2.0: 512KB Flash, 32KB SRAM, CCFG at 0x0027FFD4
Primary IEEE Address: 00:12:4B:00:06:0D:68:12
Erasing 524288 bytes starting at address 0x00200000
    Erase done
Writing 524288 bytes starting at address 0x00200000
Write 16 bytes at 0x0027FFF0F8
    Write done                                
Verifying by comparing CRC32 calculations.
    Verified (match: 0xb038bca9)

In case of RE-Mote is the same but only need change the name of binary

../contiki$ python tools/cc2538-bsl/cc2538-bsl.py -e -w -v -a 0x00200000 -b 460800 -p /dev/ttyUSB0 ../../../remote-868mhz.bin 

Plug Ethernet cable and supply by PoE or USB. RE-Mote can by supplied by USB or internal Battery

Now open App and connect device on the same network than Orion Router, go to Nearby Devices. Apears like that:

We will invite nearby devices, given the RE-Mote is connected.

Waiting... and pairing automatically.

Clone this wiki locally