Mike,
Thank your for your quick response.
I am trying to use Class C operation without the ACK or waiting. The same way as you mention I want the mDot::send() return immediately after data has been transmitted, then transmit the next one without waiting previous ACK.
I have set the mDot::setTxWait(false) and mDot::setAck(0). But it still takes longer time, 13s to transmit 1K. Additionally, I can still receive data from the getaway when I disable the RX window(Rx date: 1up). Check the detail terminal output below. The same situation happened when I tried to set AT+ACK=0 and AT+TXW=0 using the newest version of the mDot AT command firmware.
When I used the same code with the newest libmDot-mbed5 and mbed-os, it tends to re-transmit more frequently than the old version(it fails more in the first transmission).
Thank you for your help,
Wesley
—————SENDING 1K, 5 PACKAGES, 242 bytes each————————
[16/05/17 - 12:47:59:708] [INFO] communication parameters
[16/05/17 - 12:47:59:708]
[16/05/17 - 12:47:59:708] [INFO] ========================
[16/05/17 - 12:47:59:723]
[16/05/17 - 12:47:59:723] [INFO] acks ——————— off, 0 attempts
[16/05/17 - 12:47:59:723]
[16/05/17 - 12:47:59:723] [INFO] TX datarate ————– DR3
[16/05/17 - 12:47:59:723]
[16/05/17 - 12:47:59:723] [INFO] TX power —————– 10 dBm
[16/05/17 - 12:47:59:723]
[16/05/17 - 12:47:59:723] [INFO] atnenna gain ————- 3 dBm
[16/05/17 - 12:47:59:723]
[16/05/17 - 12:47:59:723] [INFO] 1K transmission test
[16/05/17 - 12:47:59:723]
[16/05/17 - 12:47:59:723] [INFO] Preparing frame
[16/05/17 - 12:47:59:723]
[16/05/17 - 12:47:59:739] [INFO] Configure radio for TX
[16/05/17 - 12:47:59:739]
[16/05/17 - 12:47:59:739] [INFO] Configure radio for TX
[16/05/17 - 12:47:59:739]
[16/05/17 - 12:48:01:143] [INFO] Rx Window 1
[16/05/17 - 12:48:01:143]
[16/05/17 - 12:48:04:265] [INFO] ——————successfully sent string to gateway—–0_time———-
[16/05/17 - 12:48:04:265] —-
[16/05/17 - 12:48:04:265]
[16/05/17 - 12:48:04:265] [INFO] Preparing frame
[16/05/17 - 12:48:04:265]
[16/05/17 - 12:48:04:281] [INFO] Configure radio for TX
[16/05/17 - 12:48:04:281]
[16/05/17 - 12:48:04:281] [INFO] Configure radio for TX
[16/05/17 - 12:48:04:281]
[16/05/17 - 12:48:05:685] [INFO] Rx Window 1
[16/05/17 - 12:48:05:685]
[16/05/17 - 12:48:05:716] [INFO] RxDone 64 bytes RSSI: -6 dB SNR: 60 cB
[16/05/17 - 12:48:05:731]
[16/05/17 - 12:48:05:731] [INFO] Packet for 00000002
[16/05/17 - 12:48:05:731]
[16/05/17 - 12:48:05:731] [INFO] Packet Received : Port: 1 FCnt: 00000000 Size: 51 ACK: 0 DUP: 0
[16/05/17 - 12:48:05:731]
[16/05/17 - 12:48:05:731] Rx data: ————————1up————————
[16/05/17 - 12:48:05:731]
[16/05/17 - 12:48:05:731] [INFO] Packet RSSI: -6 dB SNR: 60 cB
[16/05/17 - 12:48:05:731]
[16/05/17 - 12:48:05:731] [INFO] ——————successfully sent string to gateway—–1_time———-
[16/05/17 - 12:48:05:747] —-
[16/05/17 - 12:48:05:747]
[16/05/17 - 12:48:05:747] [INFO] Preparing frame
[16/05/17 - 12:48:05:747]
[16/05/17 - 12:48:05:747] [INFO] Configure radio for TX
[16/05/17 - 12:48:05:747]
[16/05/17 - 12:48:05:747] [INFO] Configure radio for TX
[16/05/17 - 12:48:05:747]
[16/05/17 - 12:48:07:151] [INFO] Rx Window 1
[16/05/17 - 12:48:07:151]
[16/05/17 - 12:48:09:522] [INFO] ——————successfully sent string to gateway—–2_time———-
[16/05/17 - 12:48:09:538] —-
[16/05/17 - 12:48:09:538]
[16/05/17 - 12:48:09:538] [INFO] Preparing frame
[16/05/17 - 12:48:09:538]
[16/05/17 - 12:48:09:538] [INFO] Configure radio for TX
[16/05/17 - 12:48:09:538]
[16/05/17 - 12:48:09:538] [INFO] Configure radio for TX
[16/05/17 - 12:48:09:538]
[16/05/17 - 12:48:10:942] [INFO] Rx Window 1
[16/05/17 - 12:48:10:942]
[16/05/17 - 12:48:14:485] [INFO] ——————successfully sent string to gateway—–3_time———-
[16/05/17 - 12:48:14:501] —-
[16/05/17 - 12:48:14:501]
[16/05/17 - 12:48:14:501] [INFO] Preparing frame
[16/05/17 - 12:48:14:501]
[16/05/17 - 12:48:14:501] [INFO] Configure radio for TX
[16/05/17 - 12:48:14:501]
[16/05/17 - 12:48:14:501] [INFO] Configure radio for TX
[16/05/17 - 12:48:14:501]
[16/05/17 - 12:48:15:905] [INFO] Rx Window 1
[16/05/17 - 12:48:15:905]
[16/05/17 - 12:48:15:936] [INFO] RxDone 64 bytes RSSI: -6 dB SNR: 65 cB
[16/05/17 - 12:48:15:951]
[16/05/17 - 12:48:15:951] [INFO] Packet for 00000002
[16/05/17 - 12:48:15:951]
[16/05/17 - 12:48:15:951] [INFO] Packet Received : Port: 1 FCnt: 00000001 Size: 51 ACK: 0 DUP: 0
[16/05/17 - 12:48:15:951]
[16/05/17 - 12:48:15:951] Rx data: ————————1up————————
[16/05/17 - 12:48:15:967]
[16/05/17 - 12:48:15:967] [INFO] Packet RSSI: -6 dB SNR: 65 cB
[16/05/17 - 12:48:15:967]
[16/05/17 - 12:48:15:967] [INFO] ——————successfully sent string to gateway—–4_time———-
[16/05/17 - 12:48:15:967] —-
[16/05/17 - 12:48:15:967]
[16/05/17 - 12:48:15:967] [INFO] ———1K transmission time is 13.743603 seconds———-0_fail_time
[16/05/17 - 12:48:15:983]
[16/05/17 - 12:48:15:983] [INFO] Current tx counter is 1
[16/05/17 - 12:48:15:983]
[16/05/17 - 12:48:15:983] [INFO] Cumulative 1K transmission time is 13.743604s
[16/05/17 - 12:48:15:983]
[16/05/17 - 12:48:15:983] [INFO] Average per 1K transmission time 13.743604s
[16/05/17 - 12:48:15:998]
[16/05/17 - 12:48:15:998] [INFO] Total program runtime is 16.250000s
[16/05/17 - 12:48:15:998]
[16/05/17 - 12:48:15:998] [INFO] Re-transmit times is 0
[16/05/17 - 12:48:15:998]
[16/05/17 - 12:48:15:998] [INFO] Transmission total is 5
[16/05/17 - 12:48:15:998]
[16/05/17 - 12:48:15:998] [INFO] First time transmission success rate is 100.000000