Simple one wire protocol for microcontrollers communication. Protocol was designed for avr tiny in mind, but can be used for any microcontroller like pic16 or stm . Only one 8bit timer and one on-change pin IRQ required.
Features:
- No master required. All devices may talk each other
- Only one wire needed in simple mode. LVDS may be used for long lines
- Small footprint as about 700k
- Collision resolving
- ISO/IEC CD 30141 compatible
MIT License . See the file 'LICENSE' for licensing terms.
src and include directories - no surprise, precisely what its name suggests. source and include files for wirebus project
devices - directory where units projects placed. Each project has mcu and architecture in its name. noarc says device may be compiled for any supported architecture (avr,pic,stm)
connectors - Devices to connect wirebus network to external. For now uart to connect to host devices like Raspberry, or PC using TTL to USB converter. esp8266 - connects to WiFi network (under havy development)
arduino - exactly what it says. Wirebus port for Arduino
See scripts/platforms.dat for supported MCUs
You may use simple bash script to create new project
Useage : ./createproject.sh --mcu=stm8s --name test1234
After project created examine devices/firmware-test1234-stm directory to add your code.
UUID_MAJOR/UUID_MINOR pair my be requested from device using WIREBUS_CMD_GETDEVICEINFO command. By this pair maintainer knows Company/Type/Special needs for specified device. You don't need register this pair if you not plaining to release device to public.
Just pull request for your project to be included in device tree. We will check the code and send you pair or range if your device will be accepted.
- In some cases packet buffer overflow may be possible. Controller will be resetted by watchdog
- Attiny13 transport not completly tested
- STM8 support not complete yet
23.02.17 Version 2.1b. Full code refactoring
23.01.17 STM8 support added, not tested
22.12.16 PIC12 support added
12.11.16 Attiny85 support added
12.09.16 Draft version released on the wild