fetiu / lowusb

Low-power Wireless USB using CC2531 USB Dongle + Contiki-OS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LoWUSB

Low-power Wireless USB using CC2531 USB Dongle + Contiki-OS

Tested Environments

  • macOS Monterey 12.4

Setup

Clone the repository

git clone --recursive git@github.com:fetiu/lowusb.git

Prepare CC-Debugger tool

cd cc-tool
./bootstrap
./configure
make

Then, test flashing a example binary.

./cc-tool -ew ../CC2531ZNP-Prod.hex

If it succeeds, a serial port will be detected.

Now, please move binary to system directory for convenience.

mv cc-tool /usr/local/bin

Build SDCC Compiler

CC2531 USB Dongle is based on Intel 8051, so it requires special c compiler called SSDC.

cd sdcc
./sdcc-contiki.sh

Refer below for troubleshooting

Build LoWUSB2Serial exmaple

cd contiki/examples/cc2530dk/udp-ipv6
make
make flash

About

Low-power Wireless USB using CC2531 USB Dongle + Contiki-OS


Languages

Language:C 100.0%