WIP: DIY nRF82540 NiceRF 868 4.2 Inch ePaper

I have updated my prototype currently powered via USB-C 5V and changed to using the Waveshare LoRa module

Here is the 12 parts below used, headers and wire to connect up, used a hand drill to make opening for the coil on the 3.3V rail

The Waveshare Core1262-868M Anti-Interference SX1262 LoRa Module is better than the NiceRF LoRa used with the first prototype as it adds TXEN and RXEN ability (ability to enable and disable transmit and receive) and has uFL to SMA antenna connection

Also this just requires a small change to the current firmware variant.h file

#define SX126X_TXEN    (32 + 13)      // TXEN        P1.13 NiceRF 868 dont use
#define SX126X_RXEN    (32 + 10)      // RXEN        P1.10 NiceRF 868 dont use
#define SX126X_E22

This change has been merged

Currently testing with fw 1.2.63 (backported)


Raspberry Pi Proto Hat Shield Extension Board also for Raspberry Pi Model

DESPI-C02 E-Paper board

nRF52840-pca10059-v1 (Nordic USB Dongle)

Waveshare Core1262-868M Anti-Interference SX1262 LoRa Module, EU868 Band

USB C Connector Breakout with Headers

6.For 3.V Rail Power
Coil 33UH Inductor

  1. LoRa bypass capacitor
    Capacitor Ceramic 100nF (10 Pack)
    https://www.robotics.org.za/100NF-10?search=100NF-10

  2. LoRa bypass capacitor
    10uF Capacitor
    https://www.robotics.org.za/CAPKIT?search=CAPKIT

  3. Power
    AMS1117-5V-to-3V-Regulator-Module
    5V to 3.3V Step-Down Power Supply - Bot Shop

SMA Female to uFL u.FL IPX IPEX Extension Cable

868 Mhz Antenna

4.2inch 400x300 e-Paper (GDEW042T2) -

I am busy testing these 2 options for power from LiPo 18650 batteries

  1. 2 x LiPo 18650 for 7.4v (currently testing)
  1. 5v 2 x 18650 boost board (still todo)

The 2 x 18650 LiPo 7.4v batteries lasted just over 64 hours and at 71 hours the voltage dropped too low to keep the device powered (the 3.3 Voltage regulator requires 4.3V or more too still operate)

1 Like

For such kind of low power, if integrate all those stuffs in to one PCB and place it into waterproof case. The power switch may not necessary anymore.

1 Like

The 5v 2 x 18650 boost board lasted about 50 hours

I received another dual battery charger to try out next
It even offers 3.3v output

image


DF Robot 2 x 18650 Holder - 3.3V & 5V Out

This DF Robot is quite nice as it has a power on off button and can charge via USB-C or Micro-USB

In order to get some more battery usage statistics, i bought a RIDEN® UM24C USB 2.0 Color LCD Display Tester Voltage Current Meter

This allows power usage monitoring over Bluetooth

I starting using


but im yet to see the Accumulated value increase ?

As I just started I will see if it increase later

I see the accumulated value is actually available on the UM24C’s screen

1 Like

The accumulated usage starts to show connected to the M5 CoreInk

M5 CoreInk peaks at 180mA whilst the nRF82540 only peaks 90mA usage

Here is a 4 x 18650 Cell version I recently received

image

HI @mark.birss

This is truly a fascinating variant. Love your design!

Recently, I tried to follow your steps and make a diy version.
but some how it stuck on bluetooth pairing

I’m also using pca10059 dongle, already cleared / replace the original bootloader to Adafruit’s version (tried 0.6.3~0.9.0)

even modify variant.h for multiple pin combination, and have successful compile & upload to my NRF dongle.
but, it always freeze when I try to pair with my phone.

I had already make a few variant with Adafruit Feather nRF52840 Express or nRF52840 MDK USB Dongle and they work just fine.

pca10059 is the only hardware I can’t make it work!

Any suggestion we be appreciated !
I’m guessing it’s a bootloder issue

Best,

Sean

1 Like

Been a while since i flashed/used my own varaint. What does the logs show regarding paring ?

It should not be a bootloader issue in my opinion.
I have seen at the moment some user mentioned ble issues on discord not sure if it related

Could you try and downgrade bootloader any further to test anyway ?

Oh wow, thanks for your reply.

I’m defiantly going to check the discord channel.

This is my debug log

//\ E S H T /\ S T / C

DEBUG | ??:??:?? 2 Filesystem files:
DEBUG | ??:??:?? 2  channels.proto (57 Bytes)
DEBUG | ??:??:?? 2  db.proto (314 Bytes)
DEBUG | ??:??:?? 2  meshtastic.txt (792 Bytes)
DEBUG | ??:??:?? 2 Using analog input -1 for battery level
INFO  | ??:??:?? 2 Scanning for i2c devices...
DEBUG | ??:??:?? 2 Scanning for i2c devices on port 1
INFO  | ??:??:?? 2 No I2C devices found
DEBUG | ??:??:?? 2 acc_info = 0
INFO  | ??:??:?? 2 Meshtastic hwvendor=255, swver=2.3.7.3826116f
DEBUG | ??:??:?? 2 Reset reason: 0x0
DEBUG | ??:??:?? 2 Setting random seed 3665351069
INFO  | ??:??:?? 2 Initializing NodeDB
INFO  | ??:??:?? 2 Loading /prefs/db.proto
INFO  | ??:??:?? 2 Loaded /prefs/db.proto successfully
INFO  | ??:??:?? 2 Loaded saved devicestate version 22, with nodecount: 1
INFO  | ??:??:?? 2 File /prefs/config.proto not found
INFO  | ??:??:?? 2 Installing default LocalConfig
INFO  | ??:??:?? 2 Setting default channel and radio preferences!
DEBUG | ??:??:?? 2 Expanding short PSK #1
INFO  | ??:??:?? 2 Wanted region 0, using UNSET
INFO  | ??:??:?? 2 File /prefs/module.proto not found
INFO  | ??:??:?? 2 Installing default ModuleConfig
INFO  | ??:??:?? 2 Loading /prefs/channels.proto
INFO  | ??:??:?? 2 Loaded /prefs/channels.proto successfully
INFO  | ??:??:?? 2 Loaded saved channelFile version 22
INFO  | ??:??:?? 2 File /oem/oem.proto not found
DEBUG | ??:??:?? 2 cleanupMeshDB purged 0 entries
DEBUG | ??:??:?? 2 Using nodenum 0xbfc6ba50 
DEBUG | ??:??:?? 2 Expanding short PSK #1
INFO  | ??:??:?? 2 Wanted region 0, using UNSET
DEBUG | ??:??:?? 2 Using GPIO38 for button
DEBUG | ??:??:?? 2 AmbientLightingThread disabling due to moduleConfig.ambient_lighting.led_state OFF
DEBUG | ??:??:?? 2 Set Timezone to GMT0
DEBUG | ??:??:?? 2 NeighborInfoModule is disabled
INFO  | ??:??:?? 2 External Notification Module Disabled
DEBUG | ??:??:?? 2 SX126xInterface(cs=31, irq=29, rst=47, busy=2)
DEBUG | ??:??:?? 2 SX126X_DIO3_TCXO_VOLTAGE defined, using DIO3 as TCXO reference voltage at 1.800000 V
INFO  | ??:??:?? 2 Starting meshradio init...
DEBUG | ??:??:?? 2 (bw=250, sf=11, cr=4/5) packet symLen=8 ms, payloadSize=0, time 231 ms
DEBUG | ??:??:?? 2 (bw=250, sf=11, cr=4/5) packet symLen=8 ms, payloadSize=253, time 2115 ms
INFO  | ??:??:?? 2 Radio freq=906.875, config.lora.frequency_offset=0.000
INFO  | ??:??:?? 2 Set radio: region=UNSET, name=LongFast, config=0, ch=19, power=30
INFO  | ??:??:?? 2 Radio myRegion->freqStart -> myRegion->freqEnd: 902.000000 -> 928.000000 (26.000000 mhz)
INFO  | ??:??:?? 2 Radio myRegion->numChannels: 104 x 250.000kHz
INFO  | ??:??:?? 2 Radio channel_num: 20
INFO  | ??:??:?? 2 Radio frequency: 906.875000
INFO  | ??:??:?? 2 Slot time: 42 msec
INFO  | ??:??:?? 2 Set radio: final power level=22
INFO  | ??:??:?? 13 SX126x init result -2
WARN  | ??:??:?? 13 Failed to find LLCC68 radio
ERROR | ??:??:?? 13 NOTE! Recording critical error 3 at src\main.cpp:928
INFO  | ??:??:?? 13 PowerFSM init, USB power=1
DEBUG | ??:??:?? 13 Enter state: BOOT
DEBUG | ??:??:?? 13 [Power] Battery: usbPower=0, isCharging=0, batMv=0, batPct=0
INFO  | ??:??:?? 13 [RangeTestModule] Range Test Module - Disabled
DEBUG | ??:??:?? 16 [PowerFSM] Initializing NRF52 Bluetooth
INFO  | ??:??:?? 16 [PowerFSM] Initialize the Bluefruit nRF52 module
INFO  | ??:??:?? 16 [PowerFSM] Bluetooth pin set to '123456'
INFO  | ??:??:?? 16 [PowerFSM] Configuring the Device Information Service
INFO  | ??:??:?? 16 [PowerFSM] Configuring the Battery Service
INFO  | ??:??:?? 16 [PowerFSM] Configuring the Mesh bluetooth service
INFO  | ??:??:?? 16 [PowerFSM] Setting up the advertising payload(s)
INFO  | ??:??:?? 16 [PowerFSM] Advertising
INFO  | ??:??:?? 32 [NodeInfoModule] Sending our nodeinfo to mesh (wantReplies=1)
INFO  | ??:??:?? 32 [NodeInfoModule] sending owner !bfc6ba50/Meshtastic ba50/ba50
DEBUG | ??:??:?? 32 [NodeInfoModule] Initial packet id 453963693, numPacketId 4294967295
DEBUG | ??:??:?? 32 [NodeInfoModule] Update DB node 0xbfc6ba50, rx_time=0
ERROR | ??:??:?? 32 [NodeInfoModule] Error=4, returning NAK and dropping packet.
ERROR | ??:??:?? 32 [NodeInfoModule] Alloc an err=4,to=0xbfc6ba50,idFrom=0x1b0eefaf,id=0x1b0eefb0
DEBUG | ??:??:?? 32 [NodeInfoModule] Enqueued local (id=0x1b0eefb0 fr=0x50 to=0x50, WantAck=0, HopLim=3 Ch=0x0 Portnum=5 requestId=1b0eefaf priority=120)
DEBUG | ??:??:?? 32 [Router] Rx someone rebroadcasting for us (id=0x1b0eefb0 fr=0x50 to=0x50, WantAck=0, HopLim=3 Ch=0x0 Portnum=5 requestId=1b0eefaf priority=120)
DEBUG | ??:??:?? 32 [Router] didn't find pending packet
DEBUG | ??:??:?? 32 [Router] Add packet record (id=0x1b0eefb0 fr=0x50 to=0x50, WantAck=0, HopLim=3 Ch=0x0 Portnum=5 requestId=1b0eefaf priority=120)
DEBUG | ??:??:?? 32 [Router] handleReceived(REMOTE) (id=0x1b0eefb0 fr=0x50 to=0x50, WantAck=0, HopLim=3 Ch=0x0 Portnum=5 requestId=1b0eefaf priority=120)
DEBUG | ??:??:?? 33 [Router] Module 'canned' wantsPacket=1
DEBUG | ??:??:?? 33 [Router] Module 'canned' considered
DEBUG | ??:??:?? 33 [Router] Module 'routing' wantsPacket=1
INFO  | ??:??:?? 33 [Router] Received routing from=0xbfc6ba50, id=0x1b0eefb0, portnum=5, payloadlen=2
DEBUG | ??:??:?? 33 [Router] Routing sniffing (id=0x1b0eefb0 fr=0x50 to=0x50, WantAck=0, HopLim=3 Ch=0x0 Portnum=5 requestId=1b0eefaf priority=120)
DEBUG | ??:??:?? 33 [Router] Received a nak for 0x1b0eefaf, stopping retransmissions
DEBUG | ??:??:?? 33 [Router] Delivering rx packet (id=0x1b0eefb0 fr=0x50 to=0x50, WantAck=0, HopLim=3 Ch=0x0 Portnum=5 requestId=1b0eefaf priority=120)
DEBUG | ??:??:?? 33 [Router] Update DB node 0xbfc6ba50, rx_time=0
DEBUG | ??:??:?? 33 [Router] Forwarding to phone (id=0x1b0eefb0 fr=0x50 to=0x50, WantAck=0, HopLim=3 Ch=0x0 Portnum=5 requestId=1b0eefaf priority=120)
DEBUG | ??:??:?? 33 [Router] Module 'routing' considered
DEBUG | ??:??:?? 33 [Power] Battery: usbPower=0, isCharging=0, batMv=0, batPct=0
INFO  | ??:??:?? 47 [DeviceTelemetryModule] (Sending): air_util_tx=0.000000, channel_utilization=0.000000, battery_level=0, voltage=0.000000, uptime=47
DEBUG | ??:??:?? 47 [DeviceTelemetryModule] updateTelemetry LOCAL
DEBUG | ??:??:?? 47 [DeviceTelemetryModule] Node status update: 1 online, 1 total
INFO  | ??:??:?? 47 [DeviceTelemetryModule] Sending packet to mesh
DEBUG | ??:??:?? 47 [DeviceTelemetryModule] Update DB node 0xbfc6ba50, rx_time=0
ERROR | ??:??:?? 47 [DeviceTelemetryModule] Error=4, returning NAK and dropping packet.
ERROR | ??:??:?? 47 [DeviceTelemetryModule] Alloc an err=4,to=0xbfc6ba50,idFrom=0x1b0eefb1,id=0x1b0eefb2
DEBUG | ??:??:?? 47 [DeviceTelemetryModule] Enqueued local (id=0x1b0eefb2 fr=0x50 to=0x50, WantAck=0, HopLim=3 Ch=0x0 Portnum=5 requestId=1b0eefb1 priority=120)
DEBUG | ??:??:?? 47 [Router] Rx someone rebroadcasting for us (id=0x1b0eefb2 fr=0x50 to=0x50, WantAck=0, HopLim=3 Ch=0x0 Portnum=5 requestId=1b0eefb1 priority=120)
DEBUG | ??:??:?? 47 [Router] didn't find pending packet
DEBUG | ??:??:?? 48 [Router] Add packet record (id=0x1b0eefb2 fr=0x50 to=0x50, WantAck=0, HopLim=3 Ch=0x0 Portnum=5 requestId=1b0eefb1 priority=120)
DEBUG | ??:??:?? 48 [Router] handleReceived(REMOTE) (id=0x1b0eefb2 fr=0x50 to=0x50, WantAck=0, HopLim=3 Ch=0x0 Portnum=5 requestId=1b0eefb1 priority=120)
DEBUG | ??:??:?? 48 [Router] Module 'canned' wantsPacket=1
DEBUG | ??:??:?? 48 [Router] Module 'canned' considered
DEBUG | ??:??:?? 48 [Router] Module 'routing' wantsPacket=1
INFO  | ??:??:?? 48 [Router] Received routing from=0xbfc6ba50, id=0x1b0eefb2, portnum=5, payloadlen=2
DEBUG | ??:??:?? 48 [Router] Routing sniffing (id=0x1b0eefb2 fr=0x50 to=0x50, WantAck=0, HopLim=3 Ch=0x0 Portnum=5 requestId=1b0eefb1 priority=120)
DEBUG | ??:??:?? 48 [Router] Received a nak for 0x1b0eefb1, stopping retransmissions
DEBUG | ??:??:?? 48 [Router] Delivering rx packet (id=0x1b0eefb2 fr=0x50 to=0x50, WantAck=0, HopLim=3 Ch=0x0 Portnum=5 requestId=1b0eefb1 priority=120)
DEBUG | ??:??:?? 48 [Router] Update DB node 0xbfc6ba50, rx_time=0
DEBUG | ??:??:?? 48 [Router] Forwarding to phone (id=0x1b0eefb2 fr=0x50 to=0x50, WantAck=0, HopLim=3 Ch=0x0 Portnum=5 requestId=1b0eefb1 priority=120)
DEBUG | ??:??:?? 48 [Router] Module 'routing' considered
DEBUG | ??:??:?? 53 [Power] Battery: usbPower=0, isCharging=0, batMv=0, batPct=0
DEBUG | ??:??:?? 73 [Power] Battery: usbPower=0, isCharging=0, batMv=0, batPct=0
DEBUG | ??:??:?? 93 [Power] Battery: usbPower=0, isCharging=0, batMv=0, batPct=0
DEBUG | ??:??:?? 113 [Power] Battery: usbPower=0, isCharging=0, batMv=0, batPct=0
INFO  | ??:??:?? 133 BLE Connected to Pixel 8 Pro
INFO  | ??:??:?? 133 BLE pairing process started with passkey 123 456
INFO  | ??:??:?? 133 BLE passkey pairing: match_request=0
DEBUG | ??:??:?? 133 [Power] Battery: usbPower=0, isCharging=0, batMv=0, batPct=0
INFO  | ??:??:?? 139 BLE connection secured

I’ve tried several version of Adafruit_nRF52_Bootloader
with 0.6.3 / 0.7.0 / 0.8.3 /0.9.0
but, it all got the same bluetooth problem

but this issue doesn’t happen on the makerdiary dongle?
they’re basically the same chip, weird.

I tried the makerdiary bootloader on pca10059, and that’s how I bricked 2 of my boards…
still trying to find a proper J-link to fix them, my J-link OB doesn’t work.

Thanks you!

Your radio has not initialised correctly here

J-link OB doesn’t work.

Mine also stopped working after if failed fw update (says it a clone)

Using a simple RP2040 Pico as SWD device ?

https://forums.raspberrypi.com/viewtopic.php?t=313342
https://www.raspberrypi.com/documentation/microcontrollers/debug-probe.html

SWDCLK GP2
SWDIO GP2

you can try pyocd or openocd

Erase and flash bootloader example

BTLDR="bootloader-0.9.0-2-g836c8dc_s140_6.1.1.hex";
TGT="nrf52840";

pyocd cmd -c "reset init" --target $TGT;
pyocd cmd -c "halt" --target $TGT
pyocd erase --mass --target $TGT;
pyocd flash $BTLDR --target $TGT;
1 Like

The bootloader specifies button and led which might be conflict when you load bootloader to a different device

I added official Adafruit nRF52 bootloader support for the other MakerDiary -

The issue often with adding support is the VENDOR:PRODUCT USBids

But i have not yet made my own device with this yet but like the design of the board

if you refer to the changes you can see how support is added

HI @mark.birss

Thanks again!

I’m aware of my radio hasn’t been initialized correctly (because I didn’t connect my lora chip yet)
but this shouldn’t be an issue for bleutooth freeze, right?

I’ve tried the same code & bootloader version on my Adafruit Feather nRF52840 Express and nRF52840 MDK USB Dongle
they both can be connected to my phone even without lora module
(I still will get a sx126x init result -2 but it doesn’t effect the program running).

This is the log from my nRF52840 MDK , I didn’t connect the lora chip on this, but it still behave as a Meshtastic device should be.

//\ E S H T /\ S T / C

DEBUG | ??:??:?? 1 Filesystem files:
DEBUG | ??:??:?? 1  db.proto (312 Bytes)
DEBUG | ??:??:?? 1  channels.proto (57 Bytes)
DEBUG | ??:??:?? 1 Using analog input -1 for battery level
INFO  | ??:??:?? 1 Scanning for i2c devices...
DEBUG | ??:??:?? 1 Scanning for i2c devices on port 1
INFO  | ??:??:?? 1 No I2C devices found
DEBUG | ??:??:?? 1 acc_info = 0
INFO  | ??:??:?? 1 Meshtastic hwvendor=255, swver=2.3.7.3826116f
DEBUG | ??:??:?? 1 Reset reason: 0x0
DEBUG | ??:??:?? 1 Setting random seed 1339792189
INFO  | ??:??:?? 1 Initializing NodeDB
INFO  | ??:??:?? 1 Loading /prefs/db.proto
INFO  | ??:??:?? 1 Loaded /prefs/db.proto successfully
INFO  | ??:??:?? 1 Loaded saved devicestate version 22, with nodecount: 1
INFO  | ??:??:?? 1 File /prefs/config.proto not found
INFO  | ??:??:?? 1 Installing default LocalConfig
INFO  | ??:??:?? 1 Setting default channel and radio preferences!
DEBUG | ??:??:?? 1 Expanding short PSK #1
INFO  | ??:??:?? 1 Wanted region 0, using UNSET
INFO  | ??:??:?? 1 File /prefs/module.proto not found
INFO  | ??:??:?? 1 Installing default ModuleConfig
INFO  | ??:??:?? 1 Loading /prefs/channels.proto
INFO  | ??:??:?? 1 Loaded /prefs/channels.proto successfully
INFO  | ??:??:?? 1 Loaded saved channelFile version 22
INFO  | ??:??:?? 1 File /oem/oem.proto not found
DEBUG | ??:??:?? 1 cleanupMeshDB purged 0 entries
DEBUG | ??:??:?? 1 Using nodenum 0x3040541 
DEBUG | ??:??:?? 1 Expanding short PSK #1
INFO  | ??:??:?? 1 Wanted region 0, using UNSET
DEBUG | ??:??:?? 1 Using GPIO38 for button
DEBUG | ??:??:?? 1 AmbientLightingThread disabling due to moduleConfig.ambient_lighting.led_state OFF
DEBUG | ??:??:?? 1 Set Timezone to GMT0
DEBUG | ??:??:?? 1 NeighborInfoModule is disabled
INFO  | ??:??:?? 1 External Notification Module Disabled
DEBUG | ??:??:?? 1 SX126xInterface(cs=31, irq=29, rst=47, busy=2)
DEBUG | ??:??:?? 1 SX126X_DIO3_TCXO_VOLTAGE defined, using DIO3 as TCXO reference voltage at 1.800000 V
INFO  | ??:??:?? 1 Starting meshradio init...
DEBUG | ??:??:?? 1 (bw=250, sf=11, cr=4/5) packet symLen=8 ms, payloadSize=0, time 231 ms
DEBUG | ??:??:?? 1 (bw=250, sf=11, cr=4/5) packet symLen=8 ms, payloadSize=253, time 2115 ms
INFO  | ??:??:?? 1 Radio freq=906.875, config.lora.frequency_offset=0.000
INFO  | ??:??:?? 1 Set radio: region=UNSET, name=LongFast, config=0, ch=19, power=30
INFO  | ??:??:?? 1 Radio myRegion->freqStart -> myRegion->freqEnd: 902.000000 -> 928.000000 (26.000000 mhz)
INFO  | ??:??:?? 1 Radio myRegion->numChannels: 104 x 250.000kHz
INFO  | ??:??:?? 1 Radio channel_num: 20
INFO  | ??:??:?? 1 Radio frequency: 906.875000
INFO  | ??:??:?? 1 Slot time: 42 msec
INFO  | ??:??:?? 1 Set radio: final power level=22
INFO  | ??:??:?? 12 SX126x init result -2
WARN  | ??:??:?? 12 Failed to find LLCC68 radio
ERROR | ??:??:?? 12 NOTE! Recording critical error 3 at src\main.cpp:928
INFO  | ??:??:?? 12 PowerFSM init, USB power=1
DEBUG | ??:??:?? 12 Enter state: BOOT
DEBUG | ??:??:?? 12 [Power] Battery: usbPower=0, isCharging=0, batMv=0, batPct=0
INFO  | ??:??:?? 12 [RangeTestModule] Range Test Module - Disabled
DEBUG | ??:??:?? 15 [PowerFSM] Initializing NRF52 Bluetooth
INFO  | ??:??:?? 15 [PowerFSM] Initialize the Bluefruit nRF52 module
INFO  | ??:??:?? 15 [PowerFSM] Bluetooth pin set to '123456'
INFO  | ??:??:?? 15 [PowerFSM] Configuring the Device Information Service
INFO  | ??:??:?? 15 [PowerFSM] Configuring the Battery Service
INFO  | ??:??:?? 15 [PowerFSM] Configuring the Mesh bluetooth service
INFO  | ??:??:?? 15 [PowerFSM] Setting up the advertising payload(s)
INFO  | ??:??:?? 15 [PowerFSM] Advertising
INFO  | ??:??:?? 31 [NodeInfoModule] Sending our nodeinfo to mesh (wantReplies=1)
INFO  | ??:??:?? 31 [NodeInfoModule] sending owner !03040541/Meshtastic 0541/0541
DEBUG | ??:??:?? 31 [NodeInfoModule] Initial packet id 130105932, numPacketId 4294967295
DEBUG | ??:??:?? 31 [NodeInfoModule] Update DB node 0x3040541, rx_time=0
ERROR | ??:??:?? 31 [NodeInfoModule] Error=4, returning NAK and dropping packet.
ERROR | ??:??:?? 31 [NodeInfoModule] Alloc an err=4,to=0x3040541,idFrom=0x7c1424e,id=0x7c1424f
DEBUG | ??:??:?? 31 [NodeInfoModule] Enqueued local (id=0x07c1424f fr=0x41 to=0x41, WantAck=0, HopLim=3 Ch=0x0 Portnum=5 requestId=7c1424e priority=120)
DEBUG | ??:??:?? 31 [Router] Rx someone rebroadcasting for us (id=0x07c1424f fr=0x41 to=0x41, WantAck=0, HopLim=3 Ch=0x0 Portnum=5 requestId=7c1424e priority=120)
DEBUG | ??:??:?? 31 [Router] didn't find pending packet
DEBUG | ??:??:?? 31 [Router] Add packet record (id=0x07c1424f fr=0x41 to=0x41, WantAck=0, HopLim=3 Ch=0x0 Portnum=5 requestId=7c1424e priority=120)
DEBUG | ??:??:?? 31 [Router] handleReceived(REMOTE) (id=0x07c1424f fr=0x41 to=0x41, WantAck=0, HopLim=3 Ch=0x0 Portnum=5 requestId=7c1424e priority=120)
DEBUG | ??:??:?? 31 [Router] Module 'canned' wantsPacket=1
DEBUG | ??:??:?? 31 [Router] Module 'canned' considered
DEBUG | ??:??:?? 31 [Router] Module 'routing' wantsPacket=1
INFO  | ??:??:?? 31 [Router] Received routing from=0x3040541, id=0x7c1424f, portnum=5, payloadlen=2
DEBUG | ??:??:?? 31 [Router] Routing sniffing (id=0x07c1424f fr=0x41 to=0x41, WantAck=0, HopLim=3 Ch=0x0 Portnum=5 requestId=7c1424e priority=120)
DEBUG | ??:??:?? 32 [Router] Received a nak for 0x7c1424e, stopping retransmissions
DEBUG | ??:??:?? 32 [Router] Delivering rx packet (id=0x07c1424f fr=0x41 to=0x41, WantAck=0, HopLim=3 Ch=0x0 Portnum=5 requestId=7c1424e priority=120)
DEBUG | ??:??:?? 32 [Router] Update DB node 0x3040541, rx_time=0
DEBUG | ??:??:?? 32 [Router] Forwarding to phone (id=0x07c1424f fr=0x41 to=0x41, WantAck=0, HopLim=3 Ch=0x0 Portnum=5 requestId=7c1424e priority=120)
DEBUG | ??:??:?? 32 [Router] Module 'routing' considered
DEBUG | ??:??:?? 32 [Power] Battery: usbPower=0, isCharging=0, batMv=0, batPct=0
INFO  | ??:??:?? 46 [DeviceTelemetryModule] (Sending): air_util_tx=0.000000, channel_utilization=0.000000, battery_level=0, voltage=0.000000, uptime=46
DEBUG | ??:??:?? 46 [DeviceTelemetryModule] updateTelemetry LOCAL
DEBUG | ??:??:?? 46 [DeviceTelemetryModule] Node status update: 1 online, 1 total
INFO  | ??:??:?? 46 [DeviceTelemetryModule] Sending packet to mesh
DEBUG | ??:??:?? 46 [DeviceTelemetryModule] Update DB node 0x3040541, rx_time=0
ERROR | ??:??:?? 46 [DeviceTelemetryModule] Error=4, returning NAK and dropping packet.
ERROR | ??:??:?? 46 [DeviceTelemetryModule] Alloc an err=4,to=0x3040541,idFrom=0x7c14250,id=0x7c14251
DEBUG | ??:??:?? 46 [DeviceTelemetryModule] Enqueued local (id=0x07c14251 fr=0x41 to=0x41, WantAck=0, HopLim=3 Ch=0x0 Portnum=5 requestId=7c14250 priority=120)
DEBUG | ??:??:?? 46 [Router] Rx someone rebroadcasting for us (id=0x07c14251 fr=0x41 to=0x41, WantAck=0, HopLim=3 Ch=0x0 Portnum=5 requestId=7c14250 priority=120)
DEBUG | ??:??:?? 46 [Router] didn't find pending packet
DEBUG | ??:??:?? 46 [Router] Add packet record (id=0x07c14251 fr=0x41 to=0x41, WantAck=0, HopLim=3 Ch=0x0 Portnum=5 requestId=7c14250 priority=120)
DEBUG | ??:??:?? 46 [Router] handleReceived(REMOTE) (id=0x07c14251 fr=0x41 to=0x41, WantAck=0, HopLim=3 Ch=0x0 Portnum=5 requestId=7c14250 priority=120)
DEBUG | ??:??:?? 46 [Router] Module 'canned' wantsPacket=1
DEBUG | ??:??:?? 46 [Router] Module 'canned' considered
DEBUG | ??:??:?? 47 [Router] Module 'routing' wantsPacket=1
INFO  | ??:??:?? 47 [Router] Received routing from=0x3040541, id=0x7c14251, portnum=5, payloadlen=2
DEBUG | ??:??:?? 47 [Router] Routing sniffing (id=0x07c14251 fr=0x41 to=0x41, WantAck=0, HopLim=3 Ch=0x0 Portnum=5 requestId=7c14250 priority=120)
DEBUG | ??:??:?? 47 [Router] Received a nak for 0x7c14250, stopping retransmissions
DEBUG | ??:??:?? 47 [Router] Delivering rx packet (id=0x07c14251 fr=0x41 to=0x41, WantAck=0, HopLim=3 Ch=0x0 Portnum=5 requestId=7c14250 priority=120)
DEBUG | ??:??:?? 47 [Router] Update DB node 0x3040541, rx_time=0
DEBUG | ??:??:?? 47 [Router] Forwarding to phone (id=0x07c14251 fr=0x41 to=0x41, WantAck=0, HopLim=3 Ch=0x0 Portnum=5 requestId=7c14250 priority=120)
DEBUG | ??:??:?? 47 [Router] Module 'routing' considered
DEBUG | ??:??:?? 52 [Power] Battery: usbPower=0, isCharging=0, batMv=0, batPct=0
DEBUG | ??:??:?? 72 [Power] Battery: usbPower=0, isCharging=0, batMv=0, batPct=0
DEBUG | ??:??:?? 92 [Power] Battery: usbPower=0, isCharging=0, batMv=0, batPct=0
INFO  | ??:??:?? 102 BLE Connected to Pixel 8 Pro
INFO  | ??:??:?? 102 BLE pairing process started with passkey 123 456
INFO  | ??:??:?? 102 BLE passkey pairing: match_request=0
INFO  | ??:??:?? 106 BLE connection secured
INFO  | ??:??:?? 107 BLE pairing success
INFO  | ??:??:?? 110 toRadioWriteCb data 0x2001b112, len 2
INFO  | ??:??:?? 110 Client wants config, nonce=2
INFO  | ??:??:?? 110 Starting API client config
INFO  | ??:??:?? 110 CCCD Updated: 1
INFO  | ??:??:?? 110 fromNum 'Notify' enabled
INFO  | ??:??:?? 111 getFromRadio=STATE_SEND_MY_INFO
DEBUG | ??:??:?? 111 encoding toPhone packet to phone variant=3, 11 bytes
INFO  | ??:??:?? 111 getFromRadio=STATE_SEND_METADATA
DEBUG | ??:??:?? 111 encoding toPhone packet to phone variant=13, 30 bytes
INFO  | ??:??:?? 111 getFromRadio=STATE_SEND_NODEINFO
INFO  | ??:??:?? 111 nodeinfo: num=0x3040541, lastseen=0, id=!03040541, name=Meshtastic 0541
DEBUG | ??:??:?? 111 encoding toPhone packet to phone variant=4, 62 bytes
INFO  | ??:??:?? 111 getFromRadio=STATE_SEND_NODEINFO
INFO  | ??:??:?? 111 Done sending nodeinfos
INFO  | ??:??:?? 111 getFromRadio=STATE_SEND_CHANNELS
DEBUG | ??:??:?? 111 encoding toPhone packet to phone variant=10, 13 bytes
INFO  | ??:??:?? 111 getFromRadio=STATE_SEND_CHANNELS
DEBUG | ??:??:?? 111 encoding toPhone packet to phone variant=10, 6 bytes
INFO  | ??:??:?? 111 getFromRadio=STATE_SEND_CHANNELS
DEBUG | ??:??:?? 111 encoding toPhone packet to phone variant=10, 6 bytes
INFO  | ??:??:?? 112 getFromRadio=STATE_SEND_CHANNELS
DEBUG | ??:??:?? 112 encoding toPhone packet to phone variant=10, 6 bytes
INFO  | ??:??:?? 112 getFromRadio=STATE_SEND_CHANNELS
DEBUG | ??:??:?? 112 encoding toPhone packet to phone variant=10, 6 bytes
DEBUG | ??:??:?? 112 [Power] Battery: usbPower=0, isCharging=0, batMv=0, batPct=0
INFO  | ??:??:?? 112 getFromRadio=STATE_SEND_CHANNELS
DEBUG | ??:??:?? 112 encoding toPhone packet to phone variant=10, 6 bytes
INFO  | ??:??:?? 112 getFromRadio=STATE_SEND_CHANNELS
DEBUG | ??:??:?? 112 encoding toPhone packet to phone variant=10, 6 bytes
INFO  | ??:??:?? 112 getFromRadio=STATE_SEND_CHANNELS
DEBUG | ??:??:?? 112 encoding toPhone packet to phone variant=10, 6 bytes
INFO  | ??:??:?? 112 getFromRadio=STATE_SEND_CONFIG
DEBUG | ??:??:?? 112 encoding toPhone packet to phone variant=5, 11 bytes
INFO  | ??:??:?? 112 getFromRadio=STATE_SEND_CONFIG
DEBUG | ??:??:?? 112 encoding toPhone packet to phone variant=5, 26 bytes
INFO  | ??:??:?? 112 getFromRadio=STATE_SEND_CONFIG
DEBUG | ??:??:?? 112 encoding toPhone packet to phone variant=5, 17 bytes
INFO  | ??:??:?? 112 getFromRadio=STATE_SEND_CONFIG
DEBUG | ??:??:?? 112 encoding toPhone packet to phone variant=5, 20 bytes
INFO  | ??:??:?? 112 getFromRadio=STATE_SEND_CONFIG
DEBUG | ??:??:?? 112 encoding toPhone packet to phone variant=5, 7 bytes
INFO  | ??:??:?? 112 getFromRadio=STATE_SEND_CONFIG
DEBUG | ??:??:?? 112 encoding toPhone packet to phone variant=5, 14 bytes
INFO  | ??:??:?? 113 getFromRadio=STATE_SEND_CONFIG
DEBUG | ??:??:?? 113 encoding toPhone packet to phone variant=5, 12 bytes
INFO  | ??:??:?? 113 getFromRadio=STATE_SEND_MODULECONFIG
DEBUG | ??:??:?? 113 encoding toPhone packet to phone variant=9, 53 bytes
INFO  | ??:??:?? 113 getFromRadio=STATE_SEND_MODULECONFIG
DEBUG | ??:??:?? 113 encoding toPhone packet to phone variant=9, 4 bytes
INFO  | ??:??:?? 113 getFromRadio=STATE_SEND_MODULECONFIG
DEBUG | ??:??:?? 113 encoding toPhone packet to phone variant=9, 4 bytes
INFO  | ??:??:?? 113 getFromRadio=STATE_SEND_MODULECONFIG
DEBUG | ??:??:?? 113 encoding toPhone packet to phone variant=9, 4 bytes
INFO  | ??:??:?? 113 getFromRadio=STATE_SEND_MODULECONFIG
DEBUG | ??:??:?? 113 encoding toPhone packet to phone variant=9, 4 bytes
INFO  | ??:??:?? 113 getFromRadio=STATE_SEND_MODULECONFIG
DEBUG | ??:??:?? 113 encoding toPhone packet to phone variant=9, 13 bytes
INFO  | ??:??:?? 113 getFromRadio=STATE_SEND_MODULECONFIG
DEBUG | ??:??:?? 113 encoding toPhone packet to phone variant=9, 4 bytes
INFO  | ??:??:?? 113 getFromRadio=STATE_SEND_MODULECONFIG
DEBUG | ??:??:?? 113 encoding toPhone packet to phone variant=9, 4 bytes
INFO  | ??:??:?? 113 getFromRadio=STATE_SEND_MODULECONFIG
DEBUG | ??:??:?? 113 encoding toPhone packet to phone variant=9, 4 bytes
INFO  | ??:??:?? 114 getFromRadio=STATE_SEND_MODULECONFIG
DEBUG | ??:??:?? 114 encoding toPhone packet to phone variant=9, 7 bytes
INFO  | ??:??:?? 114 getFromRadio=STATE_SEND_MODULECONFIG
DEBUG | ??:??:?? 114 encoding toPhone packet to phone variant=9, 12 bytes
INFO  | ??:??:?? 114 getFromRadio=STATE_SEND_MODULECONFIG
DEBUG | ??:??:?? 114 encoding toPhone packet to phone variant=9, 8 bytes
INFO  | ??:??:?? 114 getFromRadio=STATE_SEND_MODULECONFIG
DEBUG | ??:??:?? 114 encoding toPhone packet to phone variant=9, 4 bytes
INFO  | ??:??:?? 114 getFromRadio=STATE_SEND_COMPLETE_ID
DEBUG | ??:??:?? 114 encoding toPhone packet to phone variant=7, 2 bytes
INFO  | ??:??:?? 114 getFromRadio=STATE_SEND_PACKETS
DEBUG | ??:??:?? 114 encoding toPhone packet to phone variant=11, 9 bytes
INFO  | ??:??:?? 114 getFromRadio=STATE_SEND_PACKETS
DEBUG | ??:??:?? 114 encoding toPhone packet to phone variant=11, 9 bytes
INFO  | ??:??:?? 114 getFromRadio=STATE_SEND_PACKETS
DEBUG | ??:??:?? 114 phone downloaded packet (id=0x07c1424f fr=0x41 to=0x41, WantAck=0, HopLim=3 Ch=0x0 Portnum=5 requestId=7c1424e priority=120)
DEBUG | ??:??:?? 114 encoding toPhone packet to phone variant=2, 34 bytes
INFO  | ??:??:?? 114 getFromRadio=STATE_SEND_PACKETS
DEBUG | ??:??:?? 114 phone downloaded packet (id=0x07c14250 fr=0x41 to=0xff, WantAck=0, HopLim=3 Ch=0x0 Portnum=67 priority=10)
DEBUG | ??:??:?? 114 encoding toPhone packet to phone variant=2, 36 bytes
INFO  | ??:??:?? 114 getFromRadio=STATE_SEND_PACKETS
DEBUG | ??:??:?? 114 phone downloaded packet (id=0x07c14251 fr=0x41 to=0x41, WantAck=0, HopLim=3 Ch=0x0 Portnum=5 requestId=7c14250 priority=120)
DEBUG | ??:??:?? 114 encoding toPhone packet to phone variant=2, 34 bytes
INFO  | ??:??:?? 115 toRadioWriteCb data 0x2001b112, len 39
DEBUG | ??:??:?? 115 PACKET FROM PHONE (id=0x9b5ae8bd fr=0x00 to=0x41, WantAck=0, HopLim=3 Ch=0x0 Portnum=3 priority=10)
DEBUG | ??:??:?? 115 Enqueued local (id=0x9b5ae8bd fr=0x00 to=0x41, WantAck=0, HopLim=3 Ch=0x0 Portnum=3 priority=10)
INFO  | ??:??:?? 115 Telling client we have new packets 6
INFO  | ??:??:?? 115 BLE notify fromNum
DEBUG | ??:??:?? 115 [Router] Add packet record (id=0x9b5ae8bd fr=0x00 to=0x41, WantAck=0, HopLim=3 Ch=0x0 Portnum=3 priority=10)
DEBUG | ??:??:?? 115 [Router] handleReceived(REMOTE) (id=0x9b5ae8bd fr=0x00 to=0x41, WantAck=0, HopLim=3 Ch=0x0 Portnum=3 priority=10)
DEBUG | ??:??:?? 115 [Router] Module 'position' wantsPacket=1
INFO  | ??:??:?? 115 [Router] Received position from=0x0, id=0x9b5ae8bd, portnum=3, payloadlen=17
DEBUG | ??:??:?? 115 [Router] Incoming update from MYSELF
DEBUG | ??:??:?? 115 [Router] Setting local position: latitude=250410685, longitude=1216147898, time=1717140976, timestamp=0
DEBUG | ??:??:?? 115 [Router] POSITION node=03040541 l=17 latI=250410685 lonI=1216147898 msl=53 hae=0 geo=0 pdop=0 hdop=0 vdop=0 siv=0 fxq=0 fxt=0 pts=0 time=1717140976
DEBUG | ??:??:?? 115 [Router] Upgrading time to quality NTP
INFO  | 07:36:16 115 [Router] updatePosition REMOTE node=0x3040541 time=1717140976, latI=250410685, lonI=1216147898
DEBUG | 07:36:16 115 [Router] Node status update: 0 online, 1 total
DEBUG | 07:36:16 115 [Router] Module 'position' considered
DEBUG | 07:36:16 115 [Router] Module 'routing' wantsPacket=1
INFO  | 07:36:16 115 [Router] Received routing from=0x0, id=0x9b5ae8bd, portnum=3, payloadlen=17
DEBUG | 07:36:16 115 [Router] Routing sniffing (id=0x9b5ae8bd fr=0x00 to=0x41, WantAck=0, HopLim=3 Ch=0x0 Portnum=3 priority=10)
DEBUG | 07:36:16 115 [Router] Module 'routing' considered
INFO  | 07:36:16 115 getFromRadio=STATE_SEND_PACKETS
DEBUG | 07:36:16 115 encoding toPhone packet to phone variant=11, 8 bytes
INFO  | 07:36:17 117 [PositionModule] Sending pos@0:6 to mesh (wantReplies=1)
DEBUG | 07:36:17 117 [PositionModule] Sending location with precision 32
INFO  | 07:36:17 117 [PositionModule] Providing time to mesh 1717140977
INFO  | 07:36:17 117 [PositionModule] Position reply: time=1717140977, latI=250410685, lonI=1216147898
DEBUG | 07:36:17 117 [PositionModule] Update DB node 0x3040541, rx_time=1717140977
ERROR | 07:36:17 117 [PositionModule] Error=4, returning NAK and dropping packet.
ERROR | 07:36:17 117 [PositionModule] Alloc an err=4,to=0x3040541,idFrom=0x7c14252,id=0x7c14253
DEBUG | 07:36:17 117 [PositionModule] Enqueued local (id=0x07c14253 fr=0x41 to=0x41, WantAck=0, HopLim=3 Ch=0x0 Portnum=5 requestId=7c14252 rxtime=1717140977 priority=120)
INFO  | 07:36:17 117 Telling client we have new packets 8
INFO  | 07:36:17 117 BLE notify fromNum
DEBUG | 07:36:17 117 [Router] Rx someone rebroadcasting for us (id=0x07c14253 fr=0x41 to=0x41, WantAck=0, HopLim=3 Ch=0x0 Portnum=5 requestId=7c14252 rxtime=1717140977 priority=120)
DEBUG | 07:36:17 117 [Router] didn't find pending packet
DEBUG | 07:36:17 117 [Router] Add packet record (id=0x07c14253 fr=0x41 to=0x41, WantAck=0, HopLim=3 Ch=0x0 Portnum=5 requestId=7c14252 rxtime=1717140977 priority=120)
DEBUG | 07:36:17 117 [Router] handleReceived(REMOTE) (id=0x07c14253 fr=0x41 to=0x41, WantAck=0, HopLim=3 Ch=0x0 Portnum=5 requestId=7c14252 rxtime=1717140977 priority=120)
DEBUG | 07:36:17 117 [Router] Module 'canned' wantsPacket=1
DEBUG | 07:36:17 117 [Router] Module 'canned' considered
DEBUG | 07:36:17 117 [Router] Module 'routing' wantsPacket=1
INFO  | 07:36:17 117 [Router] Received routing from=0x3040541, id=0x7c14253, portnum=5, payloadlen=2
DEBUG | 07:36:17 117 [Router] Routing sniffing (id=0x07c14253 fr=0x41 to=0x41, WantAck=0, HopLim=3 Ch=0x0 Portnum=5 requestId=7c14252 rxtime=1717140977 priority=120)
DEBUG | 07:36:17 117 [Router] Received a nak for 0x7c14252, stopping retransmissions
DEBUG | 07:36:17 117 [Router] Delivering rx packet (id=0x07c14253 fr=0x41 to=0x41, WantAck=0, HopLim=3 Ch=0x0 Portnum=5 requestId=7c14252 rxtime=1717140977 priority=120)
DEBUG | 07:36:17 117 [Router] Update DB node 0x3040541, rx_time=1717140977
DEBUG | 07:36:17 117 [Router] Forwarding to phone (id=0x07c14253 fr=0x41 to=0x41, WantAck=0, HopLim=3 Ch=0x0 Portnum=5 requestId=7c14252 rxtime=1717140977 priority=120)
DEBUG | 07:36:17 117 [Router] Module 'routing' considered
INFO  | 07:36:17 117 Telling client we have new packets 9
INFO  | 07:36:17 117 BLE notify fromNum
INFO  | 07:36:17 117 getFromRadio=STATE_SEND_PACKETS
DEBUG | 07:36:17 117 encoding toPhone packet to phone variant=11, 9 bytes
INFO  | 07:36:17 117 getFromRadio=STATE_SEND_PACKETS
DEBUG | 07:36:17 117 phone downloaded packet (id=0x07c14252 fr=0x41 to=0xff, WantAck=0, HopLim=3 Ch=0x0 Portnum=3 WANTRESP rxtime=1717140977 priority=10)
DEBUG | 07:36:17 117 encoding toPhone packet to phone variant=2, 54 bytes
INFO  | 07:36:17 117 getFromRadio=STATE_SEND_PACKETS
DEBUG | 07:36:17 117 phone downloaded packet (id=0x07c14253 fr=0x41 to=0x41, WantAck=0, HopLim=3 Ch=0x0 Portnum=5 requestId=7c14252 rxtime=1717140977 priority=120)
DEBUG | 07:36:17 117 encoding toPhone packet to phone variant=2, 39 bytes
INFO  | 07:36:22 121 BLE Disconnected, reason = 0x13
DEBUG | 07:36:32 132 [Power] Battery: usbPower=0, isCharging=0, batMv=0, batPct=0

the nRF52480 MDK have no issue connecting through bluetooth
while pca10059 stop after this line:

INFO  | ??:??:?? 106 BLE connection secured

Thanks for providing Adafruit nRF52 bootloader support for the MakerDiary
I’ll look into it.

but right now I think I’ll stick with MakerDiary’s bootloader and try to find out why pca10059 doesn’t work.

I’m very thankful for your reply! you’re the best!

Thanks

1 Like

Yes, the ble part should not matter wihtout lora being initialised.

The only other thing known is the PCA100059 boards did undergo some revisions, so we could compare my used revision with yours

1 Like

I got N52840 QIAAF0 for my pca10059
it’s Revision 3 according to the Nordic document

and interestingly, I have N52840 QIAAD0 for my nRF52840 MDK
it’s Revision 2

never have thought of this will make a huge different

Thank you :slight_smile:

Ok, so the revision changes might also include for the actual pcb of the PCA10059

see details bottom

https://infocenter.nordicsemi.com/index.jsp?topic=%2Fstruct_nrf52%2Fstruct%2Fnrf52840_errata.html&cp=5_0_1

https://infocenter.nordicsemi.com/index.jsp?topic=%2Ferrata_nRF52840_Rev3%2FERR%2FnRF52840%2FRev3%2Flatest%2Ferr_840_changelog.html