I defined TX and RX of RAK4631 to 19 and 20. Then 5 and 4 for RAK11300.
I tried different baud rate and different Mode.
Any ideas?
Setiing I set for RAK11300 (RP2040)
TIA!
I defined TX and RX of RAK4631 to 19 and 20. Then 5 and 4 for RAK11300.
I tried different baud rate and different Mode.
Any ideas?
Setiing I set for RAK11300 (RP2040)
TIA!
for the RAK4631 try:
enabled true
echo true
rxd 15
txd 16
timeout 1000
mode TEXTMSG
Hi @AndreK ,
Thanks for the reply.
Pins 15 and 16 are used for GPS. If I do this, Serial will override the GPS on those UART pins?
correct. RAK4631 serial is TXD0/RXD0 (20 and 19) or TXD1/RXD1 (16 and 15), and the later will be occupied if you have a GPS attached.
If you own a RAK12500 GPS module, then the communication is over I2C and the RXD1/TXD1 is free. I’ve tested it in the past.
Thanks @lukipuki for confirming. This is based on the latest stable firmware right? Also, I still need to set the RX and TX in numbers 15 and 16 correct?
I will test later today. I’ll post update here
This is really strange. It appears that there is no attempt to enable serial - even if it is already enabled on the config.
These are the logs:
14:23:46.561 -> //\ E S H T /\ S T / C
14:23:46.561 ->
14:23:46.561 -> DEBUG | ??:??:?? 3 Filesystem files:
14:23:46.561 -> DEBUG | ??:??:?? 3 db.proto (383 Bytes)
14:23:46.561 -> DEBUG | ??:??:?? 3 config.proto (93 Bytes)
14:23:46.561 -> DEBUG | ??:??:?? 3 module.proto (125 Bytes)
14:23:46.561 -> DEBUG | ??:??:?? 3 channels.proto (102 Bytes)
14:23:46.561 -> DEBUG | ??:??:?? 3 Using analog input 5 for battery level
14:23:46.561 -> INFO | ??:??:?? 3 Scanning for i2c devices...
14:23:46.609 -> DEBUG | ??:??:?? 3 Scanning for i2c devices on port 1
14:23:46.609 -> DEBUG | ??:??:?? 3 I2C device found at address 0x3c
14:23:46.609 -> INFO | ??:??:?? 3 sh1106 display found
14:23:46.609 -> INFO | ??:??:?? 3 sh1106 display found
14:23:46.609 -> DEBUG | ??:??:?? 3 0x8 subtype probed in 2 tries
14:23:46.609 -> DEBUG | ??:??:?? 3 I2C device found at address 0x76
14:23:46.609 -> DEBUG | ??:??:?? 3 Wire.available() = 1
14:23:46.609 -> INFO | ??:??:?? 3 BME-680 sensor found at address 0x76
14:23:46.609 -> INFO | ??:??:?? 3 2 I2C devices found
14:23:46.656 -> DEBUG | ??:??:?? 3 acc_info = 0
14:23:46.656 -> DEBUG | ??:??:?? 3 found i2c sensor meshtastic_TelemetrySensorType_BME680
14:23:46.656 -> INFO | ??:??:?? 3 Meshtastic hwvendor=9, swver=2.2.17.dbac2b1
14:23:46.656 -> DEBUG | ??:??:?? 3 Reset reason: 0x0
14:23:46.748 -> DEBUG | ??:??:?? 3 Setting random seed 1127022494
14:23:46.748 -> INFO | ??:??:?? 3 Initializing NodeDB
14:23:46.748 -> INFO | ??:??:?? 3 Loading /prefs/db.proto
14:23:46.748 -> INFO | ??:??:?? 3 Loaded saved devicestate version 22
14:23:46.748 -> INFO | ??:??:?? 3 Loading /prefs/config.proto
14:23:46.748 -> INFO | ??:??:?? 3 Loaded saved config version 22
14:23:46.748 -> INFO | ??:??:?? 3 Loading /prefs/module.proto
14:23:46.748 -> INFO | ??:??:?? 3 Loaded saved moduleConfig version 22
14:23:46.748 -> INFO | ??:??:?? 3 Loading /prefs/channels.proto
14:23:46.748 -> INFO | ??:??:?? 3 Loaded saved channelFile version 22
14:23:46.748 -> INFO | ??:??:?? 3 No /oem/oem.proto preferences found
14:23:46.794 -> DEBUG | ??:??:?? 3 cleanupMeshDB purged 0 entries
14:23:46.794 -> WARN | ??:??:?? 3 Using nodenum 0xec7897d4
14:23:46.794 -> DEBUG | ??:??:?? 3 Expanding short PSK #1
14:23:46.794 -> INFO | ??:??:?? 3 Wanted region 1, using US
14:23:46.794 -> DEBUG | ??:??:?? 3 region=1, NODENUM=0xec7897d4, dbsize=4
14:23:46.842 -> INFO | ??:??:?? 3 Setting GPS power=1
14:23:46.842 -> DEBUG | ??:??:?? 3 WANT GPS=1
14:23:46.842 -> INFO | ??:??:?? 3 Setting GPS power=1
14:23:46.842 -> DEBUG | ??:??:?? 3 NeighborInfoModule is disabled
14:23:46.842 -> INFO | ??:??:?? 3 No /prefs/ringtone.proto preferences found
14:23:46.842 -> INFO | ??:??:?? 3 Initializing External Notification Module
14:23:46.842 -> INFO | ??:??:?? 3 Using Pin 36 in digital mode
14:23:46.889 -> INFO | ??:??:?? 3 Turning on screen
14:23:46.935 -> DEBUG | ??:??:?? 4 Module wants a UI Frame
14:23:46.935 -> WARN | ??:??:?? 4 SX126xInterface(cs=42, irq=47, rst=38, busy=46)
14:23:46.935 -> DEBUG | ??:??:?? 4 SX126X_DIO3_TCXO_VOLTAGE defined, using DIO3 as TCXO reference voltage at 1.800000 V
14:23:46.935 -> INFO | ??:??:?? 4 Starting meshradio init...
14:23:46.935 -> DEBUG | ??:??:?? 4 (bw=250, sf=11, cr=4/5) packet symLen=8 ms, payloadSize=0, time 231 ms
14:23:46.935 -> DEBUG | ??:??:?? 4 (bw=250, sf=11, cr=4/5) packet symLen=8 ms, payloadSize=253, time 2115 ms
14:23:46.935 -> INFO | ??:??:?? 4 Radio freq=915.000, config.lora.frequency_offset=0.000
14:23:46.935 -> INFO | ??:??:?? 4 Set radio: region=US, name=LongFast, config=0, ch=-1, power=30
14:23:46.935 -> INFO | ??:??:?? 4 Radio myRegion->freqStart -> myRegion->freqEnd: 902.000000 -> 928.000000 (26.000000 mhz)
14:23:46.935 -> INFO | ??:??:?? 4 Radio myRegion->numChannels: 104 x 250.000kHz
14:23:46.935 -> INFO | ??:??:?? 4 Radio channel_num: 0
14:23:46.935 -> INFO | ??:??:?? 4 Radio frequency: 915.000000
14:23:46.935 -> INFO | ??:??:?? 4 Slot time: 42 msec
14:23:46.935 -> INFO | ??:??:?? 4 Set radio: final power level=22
14:23:46.981 -> INFO | ??:??:?? 4 SX126x init result 0
14:23:46.981 -> INFO | ??:??:?? 4 Frequency set to 915.000000
14:23:46.981 -> INFO | ??:??:?? 4 Bandwidth set to 250.000000
14:23:46.981 -> INFO | ??:??:?? 4 Power output set to 22
14:23:46.981 -> DEBUG | ??:??:?? 4 Current limit set to 140.000000
14:23:46.981 -> DEBUG | ??:??:?? 4 Current limit set result 0
14:23:46.981 -> DEBUG | ??:??:?? 4 Setting DIO2 as RF switch
14:23:46.981 -> DEBUG | ??:??:?? 4 SX126X_RXEN not defined, defaulting to RADIOLIB_NC
14:23:46.981 -> DEBUG | ??:??:?? 4 SX126X_TXEN not defined, defaulting to RADIOLIB_NC
14:23:46.981 -> DEBUG | ??:??:?? 4 Using MCU pin -1 as RXEN and pin -1 as TXEN to control RF switching
14:23:46.981 -> INFO | ??:??:?? 4 Set RX gain to boosted mode; result: 0
14:23:46.981 -> INFO | ??:??:?? 4 SX1262 Radio init succeeded, using SX1262 radio
14:23:46.981 -> INFO | ??:??:?? 4 Not using Ethernet
14:23:46.981 -> DEBUG | ??:??:?? 4 (bw=250, sf=11, cr=4/5) packet symLen=8 ms, payloadSize=237, time 2000 ms
14:23:47.027 -> DEBUG | ??:??:?? 4 LoRA bitrate = 118.500000 bytes / sec
14:23:47.027 -> INFO | ??:??:?? 4 PowerFSM init, USB power=1
14:23:47.027 -> DEBUG | ??:??:?? 4 Enter state: BOOT
14:23:47.027 -> DEBUG | ??:??:?? 4 [Power] Battery: usbPower=1, isCharging=1, batMv=0, batPct=0
14:23:47.027 -> DEBUG | ??:??:?? 4 [Screen] Screen: Started...
14:23:47.027 -> DEBUG | ??:??:?? 4 [GPS] Since no problematic peripherals or interested modules were found, setting power save GPS_EN to pin 34
14:23:47.027 -> DEBUG | ??:??:?? 4 [GPS] Probing for GPS at 9600
14:23:48.434 -> WARN | ??:??:?? 5 [GPS] Failed to find UBlox & MTK GNSS Module using baudrate 9600
14:23:48.434 -> INFO | ??:??:?? 5 [SerialModule] Initializing serial peripheral interface
14:23:48.434 -> INFO | ??:??:?? 5 [RangeTestModule] Range Test Module - Disabled
14:23:50.023 -> INFO | ??:??:?? 7 [PowerFSM] Initialize the Bluefruit nRF52 module
14:23:50.116 -> INFO | ??:??:?? 7 [PowerFSM] Bluetooth pin set to '215246'
14:23:50.116 -> INFO | ??:??:?? 7 [PowerFSM] Configuring the Device Information Service
14:23:50.163 -> INFO | ??:??:?? 7 [PowerFSM] Configuring the Battery Service
14:23:50.163 -> INFO | ??:??:?? 7 [PowerFSM] Configuring the Mesh bluetooth service
14:23:50.163 -> INFO | ??:??:?? 7 [PowerFSM] Setting up the advertising payload(s)
14:23:50.163 -> INFO | ??:??:?? 7 [PowerFSM] Advertising
14:23:50.394 -> DEBUG | ??:??:?? 7 [GPS] Probing for GPS at 4800
14:23:51.840 -> WARN | ??:??:?? 8 [GPS] Failed to find UBlox & MTK GNSS Module using baudrate 4800
14:23:52.865 -> INFO | ??:??:?? 9 [Screen] Done with boot screen...
14:23:52.865 -> DEBUG | ??:??:?? 9 [Screen] showing standard frames
14:23:52.865 -> DEBUG | ??:??:?? 9 [Screen] Showing 0 module frames
14:23:52.865 -> DEBUG | ??:??:?? 9 [Screen] Total frame count: 103
14:23:52.865 -> DEBUG | ??:??:?? 9 [Screen] Added modules. numframes: 0
14:23:52.865 -> DEBUG | ??:??:?? 9 [Screen] Finished building frames. numframes: 5
14:23:53.845 -> DEBUG | ??:??:?? 10 [GPS] Probing for GPS at 38400
14:23:55.248 -> WARN | ??:??:?? 12 [GPS] Failed to find UBlox & MTK GNSS Module using baudrate 38400
14:23:57.257 -> DEBUG | ??:??:?? 14 [GPS] Probing for GPS at 57600
14:23:58.611 -> WARN | ??:??:?? 15 [GPS] Failed to find UBlox & MTK GNSS Module using baudrate 57600
14:24:00.617 -> DEBUG | ??:??:?? 17 [GPS] Probing for GPS at 115200
14:24:01.970 -> WARN | ??:??:?? 19 [GPS] Failed to find UBlox & MTK GNSS Module using baudrate 115200
14:24:03.975 -> DEBUG | ??:??:?? 21 [GPS] Probing for GPS at 9600
14:24:05.379 -> WARN | ??:??:?? 22 [GPS] Failed to find UBlox & MTK GNSS Module using baudrate 9600
14:24:07.014 -> DEBUG | ??:??:?? 24 [Power] Battery: usbPower=1, isCharging=1, batMv=4166, batPct=96
14:24:07.390 -> DEBUG | ??:??:?? 24 [GPS] Probing for GPS at 9600
14:24:08.785 -> WARN | ??:??:?? 25 [GPS] Failed to find UBlox & MTK GNSS Module using baudrate 9600
14:24:10.756 -> DEBUG | ??:??:?? 27 [GPS] Probing for GPS at 4800
14:24:12.205 -> WARN | ??:??:?? 29 [GPS] Failed to find UBlox & MTK GNSS Module using baudrate 4800
14:24:14.217 -> DEBUG | ??:??:?? 31 [GPS] Probing for GPS at 38400
14:24:15.572 -> WARN | ??:??:?? 32 [GPS] Failed to find UBlox & MTK GNSS Module using baudrate 38400
14:24:16.834 -> INFO | ??:??:?? 33 [NodeInfoModule] Sending our nodeinfo to mesh (wantReplies=1)
14:24:16.834 -> INFO | ??:??:?? 33 [NodeInfoModule] sending owner !ec7897d4/Meshtastic 97d4/97d4
14:24:16.834 -> DEBUG | ??:??:?? 33 [NodeInfoModule] Initial packet id 513566446, numPacketId 4294967295
14:24:16.834 -> DEBUG | ??:??:?? 33 [NodeInfoModule] Update DB node 0xec7897d4, rx_time=0, channel=0
14:24:16.834 -> DEBUG | ??:??:?? 33 [NodeInfoModule] handleReceived(LOCAL) (id=0x1e9c66f0 fr=0xd4 to=0xff, WantAck=0, HopLim=3 Ch=0x0 Portnum=4 WANTRESP priority=10)
14:24:16.834 -> DEBUG | ??:??:?? 33 [NodeInfoModule] No modules interested in portnum=4, src=LOCAL
14:24:16.834 -> DEBUG | ??:??:?? 33 [NodeInfoModule] localSend to channel 0
14:24:16.834 -> DEBUG | ??:??:?? 33 [NodeInfoModule] Add packet record (id=0x1e9c66f0 fr=0xd4 to=0xff, WantAck=0, HopLim=3 Ch=0x0 Portnum=4 WANTRESP priority=10)
14:24:16.834 -> DEBUG | ??:??:?? 33 [NodeInfoModule] Expanding short PSK #1
14:24:16.834 -> DEBUG | ??:??:?? 33 [NodeInfoModule] Using AES128 key!
14:24:16.834 -> DEBUG | ??:??:?? 33 [NodeInfoModule] nRF52 encrypt fr=ec7897d4, num=1e9c66f0, numBytes=50!
14:24:16.834 -> DEBUG | ??:??:?? 33 [NodeInfoModule] enqueuing for send (id=0x1e9c66f0 fr=0xd4 to=0xff, WantAck=0, HopLim=3 Ch=0x8 encrypted priority=10)
14:24:16.834 -> DEBUG | ??:??:?? 33 [NodeInfoModule] txGood=0,rxGood=0,rxBad=0
14:24:16.928 -> WARN | ??:??:?? 34 [RadioIf] Can not send yet, busyRx
14:24:17.022 -> WARN | ??:??:?? 34 [RadioIf] Can not send yet, busyRx
14:24:17.161 -> WARN | ??:??:?? 34 [RadioIf] Can not send yet, busyRx
14:24:17.255 -> WARN | ??:??:?? 34 [RadioIf] Can not send yet, busyRx
14:24:17.396 -> DEBUG | ??:??:?? 34 [RadioIf] Ignore false preamble detection.
14:24:17.442 -> DEBUG | ??:??:?? 34 [RadioIf] Starting low level send (id=0x1e9c66f0 fr=0xd4 to=0xff, WantAck=0, HopLim=3 Ch=0x8 encrypted priority=10)
14:24:17.442 -> DEBUG | ??:??:?? 34 [RadioIf] (bw=250, sf=11, cr=4/5) packet symLen=8 ms, payloadSize=66, time 722 ms
14:24:17.442 -> DEBUG | ??:??:?? 34 [RadioIf] AirTime - Packet transmitted : 722ms
14:24:17.582 -> DEBUG | ??:??:?? 34 [GPS] Probing for GPS at 57600
14:24:18.942 -> WARN | ??:??:?? 36 [GPS] Failed to find UBlox & MTK GNSS Module using baudrate 57600
14:24:18.942 -> DEBUG | ??:??:?? 36 [RadioIf] Completed sending (id=0x1e9c66f0 fr=0xd4 to=0xff, WantAck=0, HopLim=3 Ch=0x8 encrypted priority=10)
14:24:20.944 -> DEBUG | ??:??:?? 38 [GPS] Probing for GPS at 115200
14:24:22.341 -> WARN | ??:??:?? 39 [GPS] Failed to find UBlox & MTK GNSS Module using baudrate 115200
14:24:22.434 -> DEBUG | ??:??:?? 39 [RadioIf] (bw=250, sf=11, cr=4/5) packet symLen=8 ms, payloadSize=69, time 747 ms
14:24:22.434 -> DEBUG | ??:??:?? 39 [RadioIf] Lora RX (id=0x4e1e9a57 fr=0x87 to=0xd4, WantAck=0, HopLim=3 Ch=0x8 encrypted rxSNR=5.75 rxRSSI=-36)
14:24:22.480 -> DEBUG | ??:??:?? 39 [RadioIf] AirTime - Packet received : 747ms
14:24:22.480 -> DEBUG | ??:??:?? 39 [Router] Add packet record (id=0x4e1e9a57 fr=0x87 to=0xd4, WantAck=0, HopLim=3 Ch=0x8 encrypted rxSNR=5.75 rxRSSI=-36)
14:24:22.480 -> DEBUG | ??:??:?? 39 [Router] Using channel 0 (hash 0x8)
14:24:22.480 -> DEBUG | ??:??:?? 39 [Router] Expanding short PSK #1
14:24:22.480 -> DEBUG | ??:??:?? 39 [Router] Using AES128 key!
14:24:22.480 -> DEBUG | ??:??:?? 39 [Router] nRF52 encrypt fr=59a24a87, num=4e1e9a57, numBytes=53!
14:24:22.573 -> DEBUG | ??:??:?? 39 [Router] decoded message (id=0x4e1e9a57 fr=0x87 to=0xd4, WantAck=0, HopLim=3 Ch=0x0 Portnum=4 requestId=1e9c66f0 rxSNR=5.75 rxRSSI=-36)
14:24:22.573 -> DEBUG | ??:??:?? 39 [Router] handleReceived(REMOTE) (id=0x4e1e9a57 fr=0x87 to=0xd4, WantAck=0, HopLim=3 Ch=0x0 Portnum=4 requestId=1e9c66f0 rxSNR=5.75 rxRSSI=-36)
14:24:22.573 -> DEBUG | ??:??:?? 39 [Router] Module 'nodeinfo' wantsPacket=1
14:24:22.573 -> INFO | ??:??:?? 39 [Router] Received nodeinfo from=0x59a24a87, id=0x4e1e9a57, portnum=4, payloadlen=44
14:24:22.573 -> DEBUG | ??:??:?? 39 [Router] old user !59a24a87/Meshtastic 4a87/4a87
14:24:22.573 -> DEBUG | ??:??:?? 39 [Router] updating changed=0 user !59a24a87/Meshtastic 4a87/4a87
14:24:22.573 -> DEBUG | ??:??:?? 39 [Router] Module 'nodeinfo' considered
14:24:22.573 -> DEBUG | ??:??:?? 39 [Router] Module 'routing' wantsPacket=1
14:24:22.573 -> INFO | ??:??:?? 39 [Router] Received routing from=0x59a24a87, id=0x4e1e9a57, portnum=4, payloadlen=44
14:24:22.573 -> DEBUG | ??:??:?? 39 [Router] Routing sniffing (id=0x4e1e9a57 fr=0x87 to=0xd4, WantAck=0, HopLim=3 Ch=0x0 Portnum=4 requestId=1e9c66f0 rxSNR=5.75 rxRSSI=-36)
14:24:22.573 -> DEBUG | ??:??:?? 39 [Router] Received an ack for 0x1e9c66f0, stopping retransmissions
14:24:22.573 -> DEBUG | ??:??:?? 39 [Router] Delivering rx packet (id=0x4e1e9a57 fr=0x87 to=0xd4, WantAck=0, HopLim=3 Ch=0x0 Portnum=4 requestId=1e9c66f0 rxSNR=5.75 rxRSSI=-36)
14:24:22.573 -> DEBUG | ??:??:?? 39 [Router] Update DB node 0x59a24a87, rx_time=0, channel=0
14:24:22.619 -> DEBUG | ??:??:?? 39 [Router] Forwarding to phone (id=0x4e1e9a57 fr=0x87 to=0xd4, WantAck=0, HopLim=3 Ch=0x0 Portnum=4 requestId=1e9c66f0 rxSNR=5.75 rxRSSI=-36)
14:24:22.619 -> DEBUG | ??:??:?? 39 [Router] Module 'routing' considered
14:24:23.275 -> DEBUG | ??:??:?? 40 [RadioIf] (bw=250, sf=11, cr=4/5) packet symLen=8 ms, payloadSize=66, time 722 ms
14:24:23.275 -> DEBUG | ??:??:?? 40 [RadioIf] Lora RX (id=0x1e9c66f0 fr=0xd4 to=0xff, WantAck=0, HopLim=2 Ch=0x8 encrypted rxSNR=6.75 rxRSSI=-36)
14:24:23.275 -> DEBUG | ??:??:?? 40 [RadioIf] AirTime - Packet received : 722ms
14:24:23.275 -> DEBUG | ??:??:?? 40 [Router] Rx someone rebroadcasting for us (id=0x1e9c66f0 fr=0xd4 to=0xff, WantAck=0, HopLim=2 Ch=0x8 encrypted rxSNR=6.75 rxRSSI=-36)
14:24:23.275 -> DEBUG | ??:??:?? 40 [Router] didn't find pending packet
14:24:23.275 -> DEBUG | ??:??:?? 40 [Router] Found existing packet record for fr=0xec7897d4,to=0xffffffff,id=0x1e9c66f0
14:24:23.275 -> DEBUG | ??:??:?? 40 [Router] Found existing packet record for fr=0xec7897d4,to=0xffffffff,id=0x1e9c66f0
14:24:23.275 -> DEBUG | ??:??:?? 40 [Router] Add packet record (id=0x1e9c66f0 fr=0xd4 to=0xff, WantAck=0, HopLim=2 Ch=0x8 encrypted rxSNR=6.75 rxRSSI=-36)
14:24:23.275 -> DEBUG | ??:??:?? 40 [Router] Ignoring incoming msg, because we've already seen it (id=0x1e9c66f0 fr=0xd4 to=0xff, WantAck=0, HopLim=2 Ch=0x8 encrypted rxSNR=6.75 rxRSSI=-36)
14:24:23.275 -> DEBUG | ??:??:?? 40 [Router] cancelSending id=0x1e9c66f0, removed=0
14:24:23.275 -> DEBUG | ??:??:?? 40 [Router] Incoming message was filtered 0xec7897d4
14:24:24.350 -> DEBUG | ??:??:?? 41 [GPS] Probing for GPS at 9600
14:24:25.703 -> WARN | ??:??:?? 42 [GPS] Failed to find UBlox & MTK GNSS Module using baudrate 9600
14:24:25.703 -> WARN | ??:??:?? 42 [GPS] Giving up on GPS probe and setting to 9600.
14:24:25.703 -> DEBUG | ??:??:?? 42 [GPS] WANT GPS=0
14:24:25.703 -> INFO | ??:??:?? 42 [GPS] Setting GPS power=0
14:24:25.703 -> DEBUG | ??:??:?? 42 [GPS] GPS powerdown using GPS_EN_ACTIVE
14:24:27.011 -> DEBUG | ??:??:?? 44 [Power] Battery: usbPower=1, isCharging=1, batMv=4175, batPct=97
14:24:31.813 -> INFO | ??:??:?? 48 [DeviceTelemetryModule] (Sending): air_util_tx=0.020056, channel_utilization=3.651667, battery_level=101, voltage=4.175000
14:24:31.813 -> DEBUG | ??:??:?? 48 [DeviceTelemetryModule] updateTelemetry LOCAL
14:24:31.813 -> DEBUG | ??:??:?? 48 [DeviceTelemetryModule] Node status update: 4 online, 4 total
14:24:31.813 -> DEBUG | ??:??:?? 48 [DeviceTelemetryModule] showing standard frames
14:24:31.813 -> DEBUG | ??:??:?? 48 [DeviceTelemetryModule] Showing 0 module frames
14:24:31.813 -> DEBUG | ??:??:?? 48 [DeviceTelemetryModule] Total frame count: 103
14:24:31.813 -> DEBUG | ??:??:?? 48 [DeviceTelemetryModule] Added modules. numframes: 0
14:24:31.859 -> DEBUG | ??:??:?? 48 [DeviceTelemetryModule] Finished building frames. numframes: 5
14:24:31.859 -> INFO | ??:??:?? 48 [DeviceTelemetryModule] Sending packet to mesh
14:24:31.859 -> DEBUG | ??:??:?? 48 [DeviceTelemetryModule] Update DB node 0xec7897d4, rx_time=0, channel=0
14:24:31.859 -> DEBUG | ??:??:?? 48 [DeviceTelemetryModule] handleReceived(LOCAL) (id=0x1e9c66f1 fr=0xd4 to=0xff, WantAck=0, HopLim=3 Ch=0x0 Portnum=67 priority=1)
14:24:31.859 -> DEBUG | ??:??:?? 48 [DeviceTelemetryModule] No modules interested in portnum=67, src=LOCAL
14:24:31.859 -> DEBUG | ??:??:?? 48 [DeviceTelemetryModule] localSend to channel 0
14:24:31.859 -> DEBUG | ??:??:?? 48 [DeviceTelemetryModule] Add packet record (id=0x1e9c66f1 fr=0xd4 to=0xff, WantAck=0, HopLim=3 Ch=0x0 Portnum=67 priority=1)
14:24:31.859 -> DEBUG | ??:??:?? 48 [DeviceTelemetryModule] Expanding short PSK #1
14:24:31.859 -> DEBUG | ??:??:?? 48 [DeviceTelemetryModule] Using AES128 key!
14:24:31.859 -> DEBUG | ??:??:?? 48 [DeviceTelemetryModule] nRF52 encrypt fr=ec7897d4, num=1e9c66f1, numBytes=28!
14:24:31.954 -> DEBUG | ??:??:?? 49 [DeviceTelemetryModule] enqueuing for send (id=0x1e9c66f1 fr=0xd4 to=0xff, WantAck=0, HopLim=3 Ch=0x8 encrypted priority=1)
14:24:31.954 -> DEBUG | ??:??:?? 49 [DeviceTelemetryModule] txGood=1,rxGood=2,rxBad=0
14:24:31.954 -> DEBUG | ??:??:?? 49 [DeviceTelemetryModule] Using channel 0 (hash 0x8)
14:24:31.954 -> DEBUG | ??:??:?? 49 [DeviceTelemetryModule] Expanding short PSK #1
14:24:31.954 -> DEBUG | ??:??:?? 49 [DeviceTelemetryModule] Using AES128 key!
14:24:31.954 -> DEBUG | ??:??:?? 49 [DeviceTelemetryModule] nRF52 encrypt fr=ec7897d4, num=1e9c66f1, numBytes=28!
14:24:32.046 -> DEBUG | ??:??:?? 49 [DeviceTelemetryModule] decoded message (id=0x1e9c66f1 fr=0xd4 to=0xff, WantAck=0, HopLim=3 Ch=0x0 Portnum=67 priority=1)
14:24:32.092 -> DEBUG | ??:??:?? 49 [RadioIf] Starting low level send (id=0x1e9c66f1 fr=0xd4 to=0xff, WantAck=0, HopLim=3 Ch=0x8 encrypted priority=1)
14:24:32.139 -> DEBUG | ??:??:?? 49 [RadioIf] (bw=250, sf=11, cr=4/5) packet symLen=8 ms, payloadSize=44, time 559 ms
14:24:32.139 -> DEBUG | ??:??:?? 49 [RadioIf] AirTime - Packet transmitted : 559ms
14:24:32.697 -> DEBUG | ??:??:?? 49 [RadioIf] Completed sending (id=0x1e9c66f1 fr=0xd4 to=0xff, WantAck=0, HopLim=3 Ch=0x8 encrypted priority=1)
14:24:36.009 -> DEBUG | ??:??:?? 53 [RadioIf] (bw=250, sf=11, cr=4/5) packet symLen=8 ms, payloadSize=44, time 559 ms
14:24:36.009 -> DEBUG | ??:??:?? 53 [RadioIf] Lora RX (id=0x1e9c66f1 fr=0xd4 to=0xff, WantAck=0, HopLim=2 Ch=0x8 encrypted rxSNR=5.75 rxRSSI=-36)
14:24:36.009 -> DEBUG | ??:??:?? 53 [RadioIf] AirTime - Packet received : 559ms
14:24:36.009 -> DEBUG | ??:??:?? 53 [Router] Rx someone rebroadcasting for us (id=0x1e9c66f1 fr=0xd4 to=0xff, WantAck=0, HopLim=2 Ch=0x8 encrypted rxSNR=5.75 rxRSSI=-36)
14:24:36.055 -> DEBUG | ??:??:?? 53 [Router] didn't find pending packet
14:24:36.055 -> DEBUG | ??:??:?? 53 [Router] Found existing packet record for fr=0xec7897d4,to=0xffffffff,id=0x1e9c66f1
14:24:36.055 -> DEBUG | ??:??:?? 53 [Router] Found existing packet record for fr=0xec7897d4,to=0xffffffff,id=0x1e9c66f1
14:24:36.055 -> DEBUG | ??:??:?? 53 [Router] Add packet record (id=0x1e9c66f1 fr=0xd4 to=0xff, WantAck=0, HopLim=2 Ch=0x8 encrypted rxSNR=5.75 rxRSSI=-36)
14:24:36.055 -> DEBUG | ??:??:?? 53 [Router] Ignoring incoming msg, because we've already seen it (id=0x1e9c66f1 fr=0xd4 to=0xff, WantAck=0, HopLim=2 Ch=0x8 encrypted rxSNR=5.75 rxRSSI=-36)
14:24:36.055 -> DEBUG | ??:??:?? 53 [Router] cancelSending id=0x1e9c66f1, removed=0
14:24:36.055 -> DEBUG | ??:??:?? 53 [Router] Incoming message was filtered 0xec7897d4
14:24:46.671 -> DEBUG | ??:??:?? 63 [RadioIf] (bw=250, sf=11, cr=4/5) packet symLen=8 ms, payloadSize=24, time 411 ms
14:24:46.671 -> DEBUG | ??:??:?? 63 [RadioIf] Lora RX (id=0xa28c0778 fr=0x87 to=0xff, WantAck=0, HopLim=3 Ch=0x8 encrypted rxSNR=5.75 rxRSSI=-42)
14:24:46.671 -> DEBUG | ??:??:?? 63 [RadioIf] AirTime - Packet received : 411ms
14:24:46.671 -> DEBUG | ??:??:?? 63 [Router] Add packet record (id=0xa28c0778 fr=0x87 to=0xff, WantAck=0, HopLim=3 Ch=0x8 encrypted rxSNR=5.75 rxRSSI=-42)
14:24:46.671 -> DEBUG | ??:??:?? 63 [Router] Using channel 0 (hash 0x8)
14:24:46.671 -> DEBUG | ??:??:?? 63 [Router] Expanding short PSK #1
14:24:46.671 -> DEBUG | ??:??:?? 63 [Router] Using AES128 key!
14:24:46.671 -> DEBUG | ??:??:?? 63 [Router] nRF52 encrypt fr=59a24a87, num=a28c0778, numBytes=8!
14:24:46.767 -> DEBUG | ??:??:?? 63 [Router] decoded message (id=0xa28c0778 fr=0x87 to=0xff, WantAck=0, HopLim=3 Ch=0x0 Portnum=1 rxSNR=5.75 rxRSSI=-42)
14:24:46.767 -> DEBUG | ??:??:?? 63 [Router] handleReceived(REMOTE) (id=0xa28c0778 fr=0x87 to=0xff, WantAck=0, HopLim=3 Ch=0x0 Portnum=1 rxSNR=5.75 rxRSSI=-42)
14:24:46.767 -> DEBUG | ??:??:?? 63 [Router] Module 'text' wantsPacket=1
14:24:46.767 -> INFO | ??:??:?? 63 [Router] Received text msg from=0x59a24a87, id=0xa28c0778, msg=test
14:24:46.767 -> DEBUG | ??:??:?? 63 [Router] showing standard frames
14:24:46.767 -> DEBUG | ??:??:?? 63 [Router] Showing 0 module frames
14:24:46.767 -> DEBUG | ??:??:?? 63 [Router] Total frame count: 103
14:24:46.767 -> DEBUG | ??:??:?? 63 [Router] Added modules. numframes: 0
14:24:46.814 -> DEBUG | ??:??:?? 63 [Router] Finished building frames. numframes: 6
14:24:46.814 -> DEBUG | ??:??:?? 63 [Router] Module 'text' considered
14:24:46.814 -> DEBUG | ??:??:?? 63 [Router] Module 'canned' wantsPacket=1
14:24:46.814 -> DEBUG | ??:??:?? 63 [Router] Module 'canned' considered
14:24:46.814 -> DEBUG | ??:??:?? 63 [Router] Module 'ExternalNotificationModule' wantsPacket=1
14:24:46.814 -> INFO | ??:??:?? 63 [Router] externalNotificationModule - Notification Module
14:24:46.814 -> DEBUG | ??:??:?? 63 [Router] Module 'ExternalNotificationModule' considered
14:24:46.814 -> DEBUG | ??:??:?? 63 [Router] Module 'routing' wantsPacket=1
14:24:46.814 -> INFO | ??:??:?? 63 [Router] Received routing from=0x59a24a87, id=0xa28c0778, portnum=1, payloadlen=4
14:24:46.814 -> DEBUG | ??:??:?? 63 [Router] Routing sniffing (id=0xa28c0778 fr=0x87 to=0xff, WantAck=0, HopLim=3 Ch=0x0 Portnum=1 rxSNR=5.75 rxRSSI=-42)
14:24:46.814 -> INFO | ??:??:?? 63 [Router] Rebroadcasting received floodmsg to neighbors
14:24:46.814 -> DEBUG | ??:??:?? 63 [Router] Original length - 4
14:24:46.814 -> DEBUG | ??:??:?? 63 [Router] Compressed length - 3
14:24:46.814 -> DEBUG | ??:??:?? 63 [Router] Original message - test
14:24:46.814 -> DEBUG | ??:??:?? 63 [Router] Using compressed message.
14:24:46.814 -> DEBUG | ??:??:?? 63 [Router] Expanding short PSK #1
14:24:46.814 -> DEBUG | ??:??:?? 63 [Router] Using AES128 key!
14:24:46.814 -> DEBUG | ??:??:?? 63 [Router] nRF52 encrypt fr=59a24a87, num=a28c0778, numBytes=8!
14:24:46.908 -> DEBUG | ??:??:?? 64 [Router] enqueuing for send (id=0xa28c0778 fr=0x87 to=0xff, WantAck=0, HopLim=2 Ch=0x8 encrypted rxSNR=5.75 rxRSSI=-42)
14:24:46.908 -> DEBUG | ??:??:?? 64 [Router] txGood=2,rxGood=4,rxBad=0
14:24:46.908 -> DEBUG | ??:??:?? 64 [Router] rx_snr found. hop_limit:2 rx_snr:5.750000
14:24:46.908 -> DEBUG | ??:??:?? 64 [Router] rx_snr found in packet. Setting tx delay:1176
14:24:46.908 -> DEBUG | ??:??:?? 64 [Router] Delivering rx packet (id=0xa28c0778 fr=0x87 to=0xff, WantAck=0, HopLim=3 Ch=0x0 Portnum=1 rxSNR=5.75 rxRSSI=-42)
14:24:46.908 -> DEBUG | ??:??:?? 64 [Router] Update DB node 0x59a24a87, rx_time=0, channel=0
14:24:46.908 -> DEBUG | ??:??:?? 64 [Router] Forwarding to phone (id=0xa28c0778 fr=0x87 to=0xff, WantAck=0, HopLim=3 Ch=0x0 Portnum=1 rxSNR=5.75 rxRSSI=-42)
14:24:46.908 -> DEBUG | ??:??:?? 64 [Router] Module 'routing' considered
14:24:46.908 -> DEBUG | ??:??:?? 64 [Router] Module 'SerialModuleRadio' wantsPacket=1
14:24:46.908 -> DEBUG | ??:??:?? 64 [Router] Module 'SerialModuleRadio' considered
14:24:47.001 -> DEBUG | ??:??:?? 64 [Power] Battery: usbPower=1, isCharging=1, batMv=4169, batPct=96
14:24:48.121 -> DEBUG | ??:??:?? 65 [RadioIf] rx_snr found. hop_limit:2 rx_snr:5.750000
14:24:48.121 -> DEBUG | ??:??:?? 65 [RadioIf] rx_snr found in packet. Setting tx delay:3024
14:24:51.166 -> DEBUG | ??:??:?? 68 [RadioIf] rx_snr found. hop_limit:2 rx_snr:5.750000
14:24:51.166 -> DEBUG | ??:??:?? 68 [RadioIf] rx_snr found in packet. Setting tx delay:1764
14:24:52.946 -> DEBUG | ??:??:?? 70 [RadioIf] rx_snr found. hop_limit:2 rx_snr:5.750000
14:24:52.946 -> DEBUG | ??:??:?? 70 [RadioIf] rx_snr found in packet. Setting tx delay:3066
14:24:54.298 -> DEBUG | ??:??:?? 71 [RadioIf] (bw=250, sf=11, cr=4/5) packet symLen=8 ms, payloadSize=24, time 411 ms
14:24:54.298 -> DEBUG | ??:??:?? 71 [RadioIf] Lora RX (id=0xa28c0778 fr=0x87 to=0xff, WantAck=0, HopLim=3 Ch=0x8 encrypted rxSNR=7 rxRSSI=-37)
14:24:54.298 -> DEBUG | ??:??:?? 71 [RadioIf] AirTime - Packet received : 411ms
14:24:54.298 -> DEBUG | ??:??:?? 71 [Router] Found existing packet record for fr=0x59a24a87,to=0xffffffff,id=0xa28c0778
14:24:54.298 -> DEBUG | ??:??:?? 71 [Router] Resending implicit ack for a repeated floodmsg
14:24:54.298 -> DEBUG | ??:??:?? 71 [Router] enqueuing for send (id=0xa28c0778 fr=0x87 to=0xff, WantAck=0, HopLim=2 Ch=0x8 encrypted rxSNR=7 rxRSSI=-37)
14:24:54.298 -> DEBUG | ??:??:?? 71 [Router] txGood=2,rxGood=5,rxBad=0
14:24:54.298 -> DEBUG | ??:??:?? 71 [Router] rx_snr found. hop_limit:2 rx_snr:7.000000
14:24:54.298 -> DEBUG | ??:??:?? 71 [Router] rx_snr found in packet. Setting tx delay:2268
14:24:54.298 -> DEBUG | ??:??:?? 71 [Router] Found existing packet record for fr=0x59a24a87,to=0xffffffff,id=0xa28c0778
14:24:54.298 -> DEBUG | ??:??:?? 71 [Router] Add packet record (id=0xa28c0778 fr=0x87 to=0xff, WantAck=0, HopLim=3 Ch=0x8 encrypted rxSNR=7 rxRSSI=-37)
14:24:54.298 -> DEBUG | ??:??:?? 71 [Router] Ignoring incoming msg, because we've already seen it (id=0xa28c0778 fr=0x87 to=0xff, WantAck=0, HopLim=3 Ch=0x8 encrypted rxSNR=7 rxRSSI=-37)
14:24:54.298 -> DEBUG | ??:??:?? 71 [Router] cancelSending id=0xa28c0778, removed=1
14:24:54.298 -> DEBUG | ??:??:?? 71 [Router] Incoming message was filtered 0x59a24a87
14:24:54.345 -> DEBUG | ??:??:?? 71 [RadioIf] Starting low level send (id=0xa28c0778 fr=0x87 to=0xff, WantAck=0, HopLim=2 Ch=0x8 encrypted rxSNR=5.75 rxRSSI=-42 priority=64)
14:24:54.345 -> DEBUG | ??:??:?? 71 [RadioIf] (bw=250, sf=11, cr=4/5) packet symLen=8 ms, payloadSize=24, time 411 ms
14:24:54.345 -> DEBUG | ??:??:?? 71 [RadioIf] AirTime - Packet transmitted : 411ms
14:24:54.767 -> DEBUG | ??:??:?? 71 [RadioIf] Completed sending (id=0xa28c0778 fr=0x87 to=0xff, WantAck=0, HopLim=2 Ch=0x8 encrypted rxSNR=5.75 rxRSSI=-42 priority=64)
14:25:07.002 -> DEBUG | ??:??:?? 84 [Power] Battery: usbPower=1, isCharging=1, batMv=4178, batPct=97
14:25:27.033 -> DEBUG | ??:??:?? 104 [Power] Battery: usbPower=1, isCharging=1, batMv=4176, batPct=97
14:25:46.814 -> INFO | ??:??:?? 123 [ExternalNotificationModule] Turning off external notification: 0 1
14:25:47.000 -> DEBUG | ??:??:?? 124 [Power] Battery: usbPower=1, isCharging=1, batMv=4168, batPct=96
14:26:07.048 -> DEBUG | ??:??:?? 144 [Power] Battery: usbPower=1, isCharging=1, batMv=4175, batPct=97
I am thinking to do two things:
Do you guys have other ideas @AndreK @lukipuki ?
I tested both UARTs of RAK4630 already.
As for RAK11300, I am willing to do any test and verification.
I have couple of RAK11300s and bare Raspberry Pi Pico + SX1276 here in my bench
I see the following line in the logs, the module seems enabled:
How are you testing it? I’ve used a USB to UART device (https://www.waveshare.com/cp2102-usb-uart-board-type-a.htm) that I connected to RAK and sent messages over the virtual USB serial port.
Thank you @lukipuki ,
I missed it.
I am also using a USB-Serial converter from Silicon labs.
This USB-Serial is working on RAK11200 (ESP32 based) but on RAK4631(nRF52) and RAK11300(rp2040), Serial is not working.
Hi, just checking in here as I have some RAK4631 based nodes that I have just added to my mesh (my other three nodes are TLORA). I am trying to set up a mesh for control and monitoring and to do this I have an application processor board connected to the serial port. This is what I have on the TLORAs and these are operating, I can send and receive messages (TEXT or PROTO).
Now I am adding in the RAK4631 nodes to my mesh and what to do the same thing. Just a side note, to solve a different issue (duplicate MAC addresses with MT kits from RAK Wireless) I have done a factory reset on both nodes. I have also flashed both to the latest version, 2.3.4.
The RAK4631 I initially set up as TEXTMSG mode so I can use a USB-TTL converter for initial testing, which I hooked up to the TX1/RX1 on the Wizblock.
This is the setup of RAK4631 as extracted via the USB/Serial connection with meshtastic --get serial (not the USB-TTL)
Connected to radio
serial:
enabled: true
rxd: 19
txd: 20
baud: BAUD_9600
mode: TEXTMSG
Then looking at the (PuTTY) terminal at the USB-TTL serial port
On boot I get
$PCAS06,01B
$PMTK514,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,02E
$PMTK60531
▒0$PCAS03,0,0,0,0,0,0,0,0,0,0,0,002
$PCAS06,01B
$PMTK514,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,02E
$PMTK605*31
Which
a) doesn’t happen on TLORA nodes on boot (they are silent)
b) I can’t find any reference to what this output might be or relate to. Although it looks very NMEA like.
c) doesn’t do anything further (until next reboot, with the same strings)
Both of my RAK4631 nodes do this same output on boot.
ultimately my goal is to run in PROTO mode as referred to above I have an application processor that connects to the serial port to do the running of the low level sensing and control.
Changing the serial port mode to PROTO doesn’t seem to make any difference, I still get the $ strings
Changing the rx/tx pins as suggested above (to 14/15) makes no difference.
I also tried disabling the gps (I don’t have one connected), with --set position.gps_mode false and --set position.gps_enable false.
Looking at the sch for the RAK/Wizblock and the rak4631 it looks like the TX/RX are hard connected to the UART2 (refer RAK4631 WisBlock LPWAN Module Datasheet | RAKwireless Documentation Center and RAK19007 WisBlock Base Board 2nd Gen Datasheet | RAKwireless Documentation Center) although this is labelled TX1 on the wizblock.
So I am a little stuck as to where to go next. I did probe the pin (7 on RAK4630 module, IO) but this didn’t give me any joy either, no output what so ever.
I contemplated choosing the IO1 and IO2 however I am not sure if these are used for different purpose and thus unavailable anyway.
Sorry this is long and wordy.
I’m actually just trying to get some RAK4631 nodes running myself. I’m having the same issue as you Steve.
I set RX pin to 15 and TX to 16 as stated in the RAK docs, but for the life of me I can’t get anything but the jibberish you describe back out of the UART2 (labeled RXD1 and TXD1 on the board) on boot.
I can successfully send strings to RXD1 (pin 15) and have them propagate over the mesh, but as I said above, nothing is output on TXD1 (pin 16). I can provide the node logs to show that it is receiving the message from the serial module and sending it to the mesh, along with receiving a packet from the mesh and logging the following:
DEBUG | ??:??:?? 982 [Router] Module ‘SerialModuleRadio’ wantsPacket=1
DEBUG | ??:??:?? 982 [Router] Module ‘SerialModuleRadio’ considered
Except nothing shows up at the UART. I know my test hardware is sound because I have this working on various ESP32 nodes. It’s just the RAK nodes.
Any luck anyone? Thanks in advance!
@Logan @CircuitSteve I encountered the same problem on the Rak4361 Core with Rak19007 base when I tried reading serial data from the UART header pins on the baseboard. The RX TX pair were routed to pins 15 and 16 as mentioned earlier (I don’t know where this info comes from). What I realized tho, is that these pins are being probed by the GPS probe function for a GPS device. I don’t know why only the waveshare pico GPS (the GPS module designed for the Raspberry Pi Pico) message is displayed.
I don’t have an answer on how to get these pins to get the serial data we’re interested in. My suspicion is that the usb-c line is connected to the UART we want and that’s the only way to get it. Can anyone tell me if I’m wrong?
So the data for where the pins are routed comes from the datasheet for the RAK4361 and RAK190007. Refer to my post earlier for the links (hopefully they are still valid).
Yes the GPS is being probed on startup, basically it is checking all the possible baud rates looking for a GPS before it gives up. Now the issue I have got with this is I have disabled the GPS with the parameters yet it still tries. Which in my book is a non conformance issue. If the GPS is disabled then DON’T look for it. I think the issue we are seeing is because of this, it is tying up the UART and not letting anything else use it. The other UART is not supported (or wasn’t) in MT.
I (personally) think that support for external devices on the serial port is outside the main tenet of Meshtastic (as a disaster radio/ hiking comms radio).
I have for the while given up on the meshtastic as it is quite likely not the best method of achieving the outcome I am after, especially having to manage two sets of firmware (MT is still in beta) and dedicating an entire processor as essentially a MODEM when my application could be easily housed and executed within the nRF processor. There is a lot of overhead that is wasted, at least for what I am trying to achieve. I need the power of Protobuf BUT this won’t port to an 8bit processor (I have it on a 16bit currently, which is also fine for my application).
I don’t think it has anything to do with the USB-C as this runs directly into the nRF4631. There is a second UART but this is not mapped to the pins and doesn’t seem to be software remappable. I haven’t looked too far into this as from the nRF4360 viewpoint, only the MT.
I know that was of no real help to you. Maybe more just encouragement, that the situation doesn’t seem to have changed. I have periodically upgraded my five radios to the latest MT firmware but not seen anything much about serial.