Hello. I’ve recently purchased and configured a WisGate Edge Pro (RAK7289V2) using the AWS IOT Core from the “Configuration->Integration Interface Paramaters->AWS IOT Core” page on the Gateway’s webui. This is working as I can view the messages from my devices in AWS IOT mqtt test client.
The problem is that I see two messages for each uplink from my end-devices.
An example:
msg1 topic: application/Fence/device/00****1500172081/rx. June 10, 2023, 08:56:56 (UTC-0400)
msg2 topic: application/application/device/device/00****150. June 10, 2023, 08:56:56 (UTC-0400)
This appears to be originating from the RAK gateway based on it’s logs.
Sat Jun 10 12:56:56 2023 daemon.info gwBridge[2946]: Uplink Packet from Gateway ac1f09fffe08df05
Sat Jun 10 12:56:56 2023 daemon.info gwBridge[2946]: Uplink - {"rxpk":[{"jver":1,"tmst":3641490948,"time":"2023-06-10T12:56:56.010113Z","tmms":1370437034009,"chan":4,"rfch":1,"freq":904.700000,"mid": 8,"stat":1,"modu":"LORA","datr":"SF7BW125","codr":"4/5","rssis":-104,"lsnr":5.5,"foff":795,"rssi":-103,"size":20,"data":"QD+E1AKAehkCsrDzaZmN0InaRBo="}]}
Sat Jun 10 12:56:56 2023 daemon.info nwkSrv[2946]: Enter nsEventUplinkRcvCB, gwforward data len: 368, payload len: 20
Sat Jun 10 12:56:56 2023 daemon.info nwkSrv[2946]: Receive uplink message type 2
Sat Jun 10 12:56:56 2023 daemon.info lorawan[2946]: mote 00****1500172081 02d4843f frame-count uplink - 6522
Sat Jun 10 12:56:56 2023 user.info lora_pkt_fwd[22896]: INFO: [up] PUSH_ACK received in 0 ms
Sat Jun 10 12:56:56 2023 daemon.info nwkSrv[2946]: nsDeduplicateFrameTimerHandler: Mote Devaddr: 0x02d4843f FCnt: 6522 Best signal quality: -37
Sat Jun 10 12:56:56 2023 daemon.info nwkSrv[2946]: nsForwardAppPayload: Forwarding application payload to appSrv payload_len: 7
Sat Jun 10 12:56:56 2023 daemon.info appSrv[2946]: Enter appEventNsUplinkRcvCB, DevAddr:0x02d4843f, FRMPayload len: 7
Sat Jun 10 12:56:56 2023 daemon.info appSrv[2946]: [Uplink] - {"applicationID":"2","applicationName":"Fence","devEUI":"00****1500172081","deviceName":"EFence000","timestamp":1686401816,"fCnt":6522,"fPort":2,"data":"AAybAxIC/g==","data_encode":"base64","adr":true,"rxInfo":[{"gatewayID":"ac1f09fffe08df05","loRaSNR":5.5,"rssi":-103,"location":{"latitude":42.526460,"longitude":-75.208150,"altitude":568},"time":"2023-06-10T12:56:56.010113Z"}],"txInfo":{"frequency":904700000,"dr":3}}
Sat Jun 10 12:56:56 2023 daemon.info mqttEv[2946]: mqttEvPublish : [[AppSrv Local Mqtt Client]] publish - [420][{"applicationID":"2","applicationName":"Fence","devEUI":"00****1500172081","deviceName":"EFence000","timestamp":1686401816,"fCnt":6522,"fPort":2,"data":"AAybAxIC/g==","data_encode":"base64","adr":true,"rxInfo":[{"gatewayID":"ac1f09fffe08df05","loRaSNR":5.5,"rssi":-103,"location":{"latitude":42.526460,"longitude":-75.208150,"altitude":568},"time":"2023-06-10T12:56:56.010113Z"}],"txInfo":{"frequency":904700000,"dr":3}}]
Sat Jun 10 12:56:56 2023 daemon.info mqttEv[2946]: mqttEvPublish : [[AppSrv Mqtt Client]] publish - [420][{"applicationID":"2","applicationName":"Fence","devEUI":"00****1500172081","deviceName":"EFence000","timestamp":1686401816,"fCnt":6522,"fPort":2,"data":"AAybAxIC/g==","data_encode":"base64","adr":true,"rxInfo":[{"gatewayID":"ac1f09fffe08df05","loRaSNR":5.5,"rssi":-103,"location":{"latitude":42.526460,"longitude":-75.208150,"altitude":568},"time":"2023-06-10T12:56:56.010113Z"}],"txInfo":{"frequency":904700000,"dr":3}}]
Sat Jun 10 12:56:56 2023 user.debug aws-proxy[21428]: [S][ IN]loranet/application/Fence/device/00****1500172081/rx {"applicationID":"2","applicationName":"Fence","devEUI":"00****1500172081","deviceName":"EFence000","timestamp":1686401816,"fCnt":6522,"fPort":2,"data":"AAybAxIC/g==","data_encode":"base64","adr":true,"rxInfo":[{"gatewayID":"ac1f09fffe08df05","loRaSNR":5.5,"rssi":-103,"location":{"latitude":42.526460,"longitude":-75.208150,"altitude":568},"time":"2023-06-10T12:56:56.010113Z"}],"txInfo":{"frequency":904700000,"dr":3}}
Sat Jun 10 12:56:56 2023 user.debug aws-proxy[21428]: [S][*IN]loranet/application/Fence/device/00****1500172081/rx {"applicationID":"2","applicationName":"Fence","devEUI":"00****1500172081","deviceName":"EFence000","timestamp":1686401816,"fCnt":6522,"fPort":2,"data":"AAybAxIC/g==","data_encode":"base64","adr":true,"rxInfo":[{"gatewayID":"ac1f09fffe08df05","loRaSNR":5.5,"rssi":-103,"location":{"latitude":42.526460,"longitude":-75.208150,"altitude":568},"time":"2023-06-10T12:56:56.010113Z"}],"txInfo":{"frequency":904700000,"dr":3}}
Sat Jun 10 12:56:56 2023 user.debug aws-proxy[21428]: SOUTH TOPIC: loranet/application/Fence/device/00****1500172081/rx
Sat Jun 10 12:56:56 2023 user.debug aws-proxy[21428]: NORTH TOPIC: application/application/device/device/00****150
Sat Jun 10 12:56:56 2023 user.debug aws-proxy[21428]: aproxy_north_publisher::aproxy_uplink_topic_translate: from loranet/application/Fence/device/00****1500172081/rx(52) to application/application/device/device/00****150(47)
Sat Jun 10 12:56:56 2023 user.debug aws-proxy[21428]: aproxy_north_publisher::aws_iot_mqtt_publish: round=1, rc=0
Sat Jun 10 12:56:56 2023 user.debug aws-proxy[21428]: [S][ IN]application/Fence/device/00****1500172081/rx {"applicationID":"2","applicationName":"Fence","devEUI":"00****1500172081","deviceName":"EFence000","timestamp":1686401816,"fCnt":6522,"fPort":2,"data":"AAybAxIC/g==","data_encode":"base64","adr":true,"rxInfo":[{"gatewayID":"ac1f09fffe08df05","loRaSNR":5.5,"rssi":-103,"location":{"latitude":42.526460,"longitude":-75.208150,"altitude":568},"time":"2023-06-10T12:56:56.010113Z"}],"txInfo":{"frequency":904700000,"dr":3}}
Sat Jun 10 12:56:56 2023 user.debug aws-proxy[21428]: [S][*IN]application/Fence/device/00****1500172081/rx {"applicationID":"2","applicationName":"Fence","devEUI":"00****1500172081","deviceName":"EFence000","timestamp":1686401816,"fCnt":6522,"fPort":2,"data":"AAybAxIC/g==","data_encode":"base64","adr":true,"rxInfo":[{"gatewayID":"ac1f09fffe08df05","loRaSNR":5.5,"rssi":-103,"location":{"latitude":42.526460,"longitude":-75.208150,"altitude":568},"time":"2023-06-10T12:56:56.010113Z"}],"txInfo":{"frequency":904700000,"dr":3}}
Sat Jun 10 12:56:56 2023 user.debug aws-proxy[21428]: SOUTH TOPIC: application/Fence/device/00****1500172081/rx
Sat Jun 10 12:56:56 2023 user.debug aws-proxy[21428]: NORTH TOPIC: application/Fence/device/00****1500172081/rx
Firmware version: WisGateOS_2.1.4_RAK
The issue is that this duplication will eventually equate to increased AWS resource usage and therefore, cost.
Any help is greatly appreciated