Hi there,
Currently I’m working on the setup using Lolin32 using RFM95 HopeRF communicating with the OLG-02 Dragino. The code I’m using is basically TTN-ABP code from Arduino-LMIC Library. I only change the pinmap, input the FILLMEIN section, and the frequency setting at the project config file. Things I’ve done this far:
- Adjusting LMIC_setClockError
- Adjusting the distance between gateway and the node
- Adjusting the Rx2 window to SF7 to adjust with the gateway TX window, and make sure either timing received by the gateway can be received by the node
- Updating the gateway firmware to the latest version
RXTX~ (RXPKT): [up] {“rxpk”:[{“time”:“2011-12-31T17:22:39.685198Z”,“tmst”:2561550987,“chan”:0,“rfch”:1, “freq”:923.200000,“stat”:1,“modu”:“LORA”,“datr”:“SF7BW125”,“codr”:“4/5”,“lsnr”:8 .0,“rssi”:-92,“size”:26,“data”:“QA8YBCaAAAAB1V59GB7xuSnChmheVbqX/7U=”}]}
Sun Jan 1 00:22:40 2012 daemon.info lg02_pkt_fwd[4365]:
Sun Jan 1 00:22:40 2012 daemon.info lg02_pkt_fwd[4365]: RXTX~ (TXPKT): [down] { “txpk”:{“imme”:false,“tmst”:2562550987,“freq”:923.2,“rfch”:0,“powe”:14,“modu”:“L ORA”,“datr”:“SF7BW125”,“codr”:“4/5”,“ipol”:true,“size”:24,“ncrc”:true,“data”:“oA 8YBCYAIQMBeykk2dDHz2V/xhSW//6S”}}
Sun Jan 1 00:22:40 2012 daemon.info lg02_pkt_fwd[4365]: jitqueue.c:219:jit_enqu eue(): Current concentrator time is 2562176078, pkt_type=0
Sun Jan 1 00:22:40 2012 daemon.info lg02_pkt_fwd[4365]: jitqueue.c:196:jit_sort _queue(): sorting queue in ascending order packet timestamp - queue size:1
Sun Jan 1 00:22:40 2012 daemon.info lg02_pkt_fwd[4365]: jitqueue.c:198:jit_sort _queue(): sorting queue done - swapped:0
Sun Jan 1 00:22:40 2012 daemon.info lg02_pkt_fwd[4365]: jitqueue.c:531:jit_prin t_queue(): INFO: [jit] queue contains 1 packets:
Sun Jan 1 00:22:40 2012 daemon.info lg02_pkt_fwd[4365]: jitqueue.c:532:jit_prin t_queue(): INFO: [jit] queue contains 0 beacons:
Sun Jan 1 00:22:40 2012 daemon.info lg02_pkt_fwd[4365]: jitqueue.c:538:jit_prin t_queue(): - node[0]: count_us=2562550987 - type=0
Sun Jan 1 00:22:40 2012 daemon.info lg02_pkt_fwd[4365]: jitqueue.c:397:jit_enqu eue(): enqueued packet with count_us=2562550987 (size=24 bytes, toa=61000 us, ty pe=0)
Sun Jan 1 00:22:40 2012 daemon.info lg02_pkt_fwd[4365]: jitqueue.c:512:jit_peek (): peek packet with count_us=2562550987 at index 0
Sun Jan 1 00:22:40 2012 daemon.info lg02_pkt_fwd[4365]: jitqueue.c:527:jit_prin t_queue(): INFO: [jit] queue is empty
Sun Jan 1 00:22:40 2012 daemon.info lg02_pkt_fwd[4365]: jitqueue.c:441:jit_dequ eue(): dequeued packet with count_us=2562550987 from index 0
Sun Jan 1 00:22:40 2012 daemon.info lg02_pkt_fwd[4365]:
Sun Jan 1 00:22:40 2012 daemon.info lg02_pkt_fwd[4365]: INFO~ Transmit at SF7BW 125 on 923.200000.
Sun Jan 1 00:22:40 2012 daemon.info lg02_pkt_fwd[4365]: INFO~ Donwlink done: co unt_us=2562550987
9881: TXMODE, freq=923200000, len=26, SF=7, BW=125, CR=4/5, IH=0
Packet queued
75247: setupRx1 txrxFlags 00 --> 01
start single rx: now-rxtime: 4
75880: RXMODE_SINGLE, freq=923200000, SF=7, BW=125, CR=4/5, IH=0
rxtimeout: entry: 76919 rxtime: 75872 entry-rxtime: 1047 now-entry: 5 rxtime-txend: 62126
137497: setupRx2 txrxFlags 0x1 --> 02
start single rx: now-rxtime: 4
138129: RXMODE_SINGLE, freq=923200000, SF=7, BW=125, CR=4/5, IH=0
rxtimeout: entry: 139681 rxtime: 138122 entry-rxtime: 1559 now-entry: 5 rxtime-txend: 124376
139699: processRx2DnData txrxFlags 0x2 --> 00
139760: processDnData_norx txrxFlags 00 --> 20
140020: EV_TXCOMPLETE (includes waiting for RX windows)
I’m looking forward to hearing any more suggestions