LoraWan with Rak811 - tolialmeida/LORA GitHub Wiki

Rak811 board:

MCU= STM32L151GBU6??? STM32L1xxx6(8/B)A + SX1276 32K RAM 128KB FLASH Create a file

  • git clone https://github.com/Ebiroll/RAK811_BreakBoard
  • this page had add all files necesary to compile via platformio: first he want to create new module to platformio: rak811 with stm32 procesador, then there be a file to ststm32 in ~/.platformio/platforms/ if not: pio platform install ststm32. After that make a rak811.json (similar other json into board from ststm32) and cp rak811.json ~/.platformio/platforms/ststm32/boards/rak811.json.
  • Pio run to compile, the file binary is in .pioenvs/rak811/firmware.bin
  • Install stm32flash (the before clone there are with file with this program, intro and make, mak install).
  • All conect is OK??? Conect rak811 uart(3,3v) vcc (3,3v) and gnd: picocom -b 115200 --echo /dev/ttyUSB0 and start on rak811---> can see information from Rak, at+version crtl+m ctr+j to send data.
  • Go to on a pin 2 PA12--->GpioWrite( &Led1, 1 ); in the main file, compile (pio run)
  • Turn off RAK, put boot pin (12) to vcc to program it: stm32flash -w .pioenvs/rak811/firmware.bin -v -g 0x0 /dev/ttyUSB0, sometimes no program---> problem with wire....
  • if all it is ok, measure pin 2 vcc=3,3v *turn off rak,Nor we want to see printout of program: without pin 12 to vcc (to the air), picocom -b 115200 --echo /dev/ttyUSB0 and turn on: you can see Terminal ready LIS3DH no ack LIS3DH is not found! RAK811 BreakBoard soft version: 1.0.2

Selected LoraWAN 1.0.2 Region: EU868

OTAA: Dev_EUI: 60 C5 A8 FF EE 00 00 20 AppEui: 70 B3 D5 7E D0 00 86 E2 AppKey: 19 A1 E6 F6 77 C4 BE 5E AC DE 57 29 1F 86 8C 3B OTAA Join Start...

OTAA: Dev_EUI: 60 C5 A8 FF EE 00 00 20 AppEui: 70 B3 D5 7E D0 00 86 E2 AppKey: 19 A1 E6 F6 77 C4 BE 5E AC DE 57 29 1F 86 8C 3B OTAA Join Start...

OTAA: Dev_EUI: 60 C5 A8 FF EE 00 00 20 AppEui: 70 B3 D5 7E D0 00 86 E2 AppKey: 19 A1 E6 F6 77 C4 BE 5E AC DE 57 29 1F 86 8C 3B OTAA Join Start...