Rak811 Tracker Board

(Bingo600) #208

Just a Hint on those cheap BluePill , that i use a lot too.

Check that R10 is 1k5 , there have been series (including mine) that had either 10K or 4K7 as R10. This prevents USB from working correctly as it won’t be detected with certainty.

I changed R10 on 12 of my BP’s in 30 min , using a Metcal w. the desolder “pincet”


(Ebreyit) #209

Have seen mentions a few times elsewhere of resistor value issues. Good to note it here too to remind me and other to check it out as I for one will no doubt forget at some point and waste time scratching my head.

(Bingo600) #210

Just made a BMP out of a Bluepill

I had to use this guide (needs a ST-link) , and use st-flash , due to the combined bootloader & bin being > 64K if made w. my arm-compiler

Edit: Seems like there is a “trick” on the bottom of the page to combine the bootloader + blackmagic program , then you should be able to program it via “Serial” , and doesn’t need a st-link.

If you have a smaller image , and do the dfu-util to load the blackmagic code via the bootloader. Then the dfu-util 0.5 , that was in my Linux mint 17.3 repos , wasn’t new enough.

Build 0.9 from source here

See here for STM BMP Pin defs - SRST-PIN might come in handy (Or full JTAG)

Latest stm32flash hides here (git)
git clone https://git.code.sf.net/p/stm32flash/code stm32flash-code


(Coeus) #211

Anyone knows how to change the region for this board? The user manual gave very little information.
I am using Platform IO on a Mac - based on the information provided in this thread and successfully compile, flash and test the trackboard on EU868.

(Coeus) #212

To answer my own questions - if anyone follow above instructions to setup your IDE based on PlatformIO, changing the region frequency is as simple as changing the build flag in you platformio.ini file in the project under PlatformIO.

Now my RAK811 Trackerboard is talking to my RAK831 gateway with the changed frequency.


(Lufti Iot) #214

Mine working in 40-50mA range, how is for the others here? please share your power consumption. Do you succeed to make it on sleepmode?

(Erik the VKing) #215

Mine draws 32 mA all the time. Need to get this sleep mode working !

(Rchaudet) #216

Hi guys,
You won’t be able to access low power on this board since GPS power switch has a wiring issue in schematics: a missing pull-up resistor makes GPS always on (this issue seems to be corrected on the other tracker board Rak815). A power led is also hard wired and won’t allow you to reach µA consumption anyway. and I’m not sure voltage regulators reaches low power mode (if they have one…). Thus this board cannot properly benefits from LoRa advantages.
Also, current source code doesnt allow you to reach low power mode: it checks for power supply type and is coded to always be “USB_POWER” (in timer.c TImerLowPowerHandler() ). just remove this condition or define “BATTERY_POWER” in GetBoardPowerSource(). Once you have done that, low power will work but LoRa connectivity won’t, because the board is put in deep sleep straight after starting joining process. What I did is replacing DeviceState = DEVICE_STATE_SLEEP after printf(“OTAA Join Start… \r\n”) by another state I added in enum eDeviceState: DEVICE_STATE_WAITCONFIRM. Sleep mode works properly, MCU consumes almost nothing but since others components like GPS are always ON despite of that, the board will still consume more than 20 mA in best cases.

(Coeus) #217

That’s really bad news

(Jobroe) #218

@rchaudet Is it possible to manually modify the hardware to get rid of those low power issues ?
For example, unsolder the LED …

Maybe someone may need it, I ported the current version of the stack. It’s not finalized the GPS and MEM sensor are not working yet. See here: https://github.com/jobroe/loramac-node-rak811

(Bingo600) #219


Can you be more specific wrt. the wiring issue in the gps power ?

On the 811 board , the TPS27082LDDC R1/C1 pin is connected via R8 (470K) to the MCU power control pin PA15.

On the 815 board the R1/C1 pin is pulled to GND via R22 (470K )
Is that the issue or ??? - Seems like R1/C1 is slewrate control

Besides that, the 815 GPS has SCL2 & SDA2 connected to the MCU


(Russ Nelson) #221

There are two bits of software. One (which only seems available as binaries in “Firmware upgrade” in “RAK811-AT-Command”) reads from the keyboard and forwards your keystrokes to the RAK811, and forwards received characters from the RAK811 back to your screen. That code is more or less useless for tracking because it doesn’t read the GPS. It does, however, let you play with the RAK811.

The other (RAK811_BreakBoard) reads devices and (as you’ve seen) prints the status to the screen. It also tries to send what it reads up to Cayenne. Unfortunately, that code as programmed into your RAK811 Tracker is more or less useless because it doesn’t have your application’s id or key hard-coded into it.

In order to read the GPS and upload data to TTN, you need to recompile.

(Russ Nelson) #222

@rchaudet Yes, R8 needs to go to pin 4, not pin 5. Oops.
@bingo600 Pulled to GND? But that’s the function of the NMOS transistor. It should be a pullup, not a pulldown. See http://www.ti.com/lit/ds/symlink/tps27082l.pdf for details, and http://docs.rakwireless.com/en/RAK811%20TrackerBoard/HardWare%20Design/RAK811%20TrackerBoard%20Schematics_20171013.pdf for the schematic.

(Russ Nelson) #223

The code that handles the AT commands is only talking to the RAK811. In order to read the GPS, you need software running on the tracker’s microprocessor. That means flashing a custom binary, because the authentication details are hard-coded into the program.

(Russ Nelson) #224

Having read all the posts on this thread, I recommend that you go read the post I’m replying to. It has the best instructions on how to recompile the code on Windows. Mac users are using platformio. I just successfully used platformio on Ubuntu.

(Russ Nelson) #226

It’s working!! https://ttnmapper.org/special.php?node=crynwr-rak-1&date=2018-04-23&alldates=on&gateways=on&lat=-76.36&lon=42.38

Code is here: https://github.com/RussNelson/gps-node-examples
I’ve contributed my changes back to Javier, who collected code from @OlofAst and merged it into the ttnmapper code.

With my changes, this should work fine in both EU868 and US915.

(Lufti Iot) #227

@rchaudet thanks for the information.
Related to :

  1. GPS :
    a. Can I use Power Saving Mode (PSM) triggered by command via GPS serial port to reduce power consumption? Maybe you haven’t done this, but please share if you have some insight.
    b. On 811 board, I saw the GPS power is controlled by TPS27082 chip, and I can control to power off the GPS using PA15. I already test it using manual coding to turn On/Off the PA15 and checking the Power Consuption reduction. My application only required GPS position during Power Start, it’s not for mobility, so I think I can use this solution. Any comment maybe?
  2. Power LED - I’m planning to just desolder this.
  3. Other LED - I’m modifying the code to disable all status LED.
    I will try your input for the DEVICE_STATE code modification. Thanks

(Russ Nelson) #228

@lufti-iot What is the current consumption with PA15 high and with it low?

(Olof Ast) #229

Hello.I saw the code and jcaridadhdez changed commisioning.

Does your code send LAT/LON coordinates directly to ttn-mapper or do you have to have the android-APP running also?

(Russ Nelson) #230

Directly to ttn-mapper once you install the ttn-mapper integration.