Hi Bernd
(a)
I tried a different USB cable and get the same issues - the COM port changes everytime (which I think is just a Windows USB thing). These are a couple more of the logs:
===================
Upgrading target on COM4 with DFU package C:\Users\RICHAR~1\AppData\Local\Temp\arduino_build_983227\ble_ota_dfu.ino.zip. Flow control is disabled, Single bank, Touch disabled
########################################
########################################
########################################
########################################
########################################
#Timed out waiting for acknowledgement from device.
Failed to upgrade target. Error is: No data received on serial port. Not able to proceed.
Traceback (most recent call last):
File “nordicsemi_main_.py”, line 294, in serial
File “nordicsemi\dfu\dfu.py”, line 235, in dfu_send_images
File “nordicsemi\dfu\dfu.py”, line 206, in _dfu_send_image
File “nordicsemi\dfu\dfu_transport_serial.py”, line 213, in send_firmware
File “nordicsemi\dfu\dfu_transport_serial.py”, line 243, in send_packet
File “nordicsemi\dfu\dfu_transport_serial.py”, line 282, in get_ack_nr
nordicsemi.exceptions.NordicSemiException: No data received on serial port. Not able to proceed.
Possible causes:
- Selected Bootloader version does not match the one on Bluefruit device.
Please upgrade the Bootloader or select correct version in Tools->Bootloader.
- Baud rate must be 115200, Flow control must be off.
- Target is not in DFU mode. Ground DFU pin and RESET and release both to enter DFU mode.
==================
Below shows failure halfway through ble_ota_dfu upload:
================
Sketch uses 105976 bytes (13%) of program storage space. Maximum is 815104 bytes.
Global variables use 14872 bytes (6%) of dynamic memory, leaving 222696 bytes for local variables. Maximum is 237568 bytes.
Upgrading target on COM5 with DFU package C:\Users\RICHAR~1\AppData\Local\Temp\arduino_build_983227\ble_ota_dfu.ino.zip. Flow control is disabled, Single bank, Touch disabled
########################################
########################################
########################################
################################Timed out waiting for acknowledgement from device.
Failed to upgrade target. Error is: No data received on serial port. Not able to proceed.
Traceback (most recent call last):
File “nordicsemi_main_.py”, line 294, in serial
File “nordicsemi\dfu\dfu.py”, line 235, in dfu_send_images
File “nordicsemi\dfu\dfu.py”, line 206, in _dfu_send_image
File “nordicsemi\dfu\dfu_transport_serial.py”, line 213, in send_firmware
File “nordicsemi\dfu\dfu_transport_serial.py”, line 243, in send_packet
File “nordicsemi\dfu\dfu_transport_serial.py”, line 282, in get_ack_nr
nordicsemi.exceptions.NordicSemiException: No data received on serial port. Not able to proceed.
Possible causes:
- Selected Bootloader version does not match the one on Bluefruit device.
Please upgrade the Bootloader or select correct version in Tools->Bootloader.
- Baud rate must be 115200, Flow control must be off.
- Target is not in DFU mode. Ground DFU pin and RESET and release both to enter DFU mode.
=================
( c ) & (d) I have upgraded to SHTC 1.1.3 and tried the weather station (with the pressure/light sensors commented out). It works a lot better so I will investigate what the problem was with my version.
I’m still getting LORAMAC_STATUS_BUSY on my connection to TTN and I’m not sure why that is. I get a success every 3 sends (once per minute) - this is consistent.
15:38:44.730 → =====================================
15:38:44.730 → Welcome to RAK4630 LoRaWan!!!
15:38:44.730 → Type: OTAA
15:38:44.730 → Region: EU868
15:38:44.730 → =====================================
15:38:44.730 → shtc3 init
15:38:44.730 → Beginning sensor. Result =
15:38:44.730 → ID Passed Checksum. Device ID: 0b100001000111
15:38:44.730 → [OTAA ]
15:38:44.730 → DevEui=AC-1F-09-FF-FE-03-EF-DF
15:38:44.730 → DevAdd=00000000
15:38:44.730 → AppEui=70-B3-D5-7E-D0-04-08-BB
15:38:44.730 → AppKey=A9-03-A3-5F-DB-5C-FA-18-AB-92-7F-4F-0E-58-56-73
15:38:44.811 → [LMH ] Selected subband 1
15:38:44.811 →
15:38:44.811 → BSP Library : 0.21.001
15:38:44.811 → Bootloader : s140 6.1.1
15:38:44.811 → Serial No : 569705986BC2F74B
15:38:44.811 →
15:38:44.879 → [LM ] OnRadioTxDone
15:38:44.879 → [LM ] OnRadioTxDone => RX Windows #1 4989 #2 5995
15:38:44.879 → [LM ] OnRadioTxDone => TX was Join Request
15:38:49.957 → [LM ] OnRadioRxDone
15:38:49.957 → [LM ] OnRadioRxDone => FRAME_TYPE_JOIN_ACCEPT
15:38:49.957 → OTAA Mode, Network Joined!
15:39:10.979 → Sending frame now…
15:39:10.979 → result: Tem:24.18C Hum:32.92%
15:39:10.979 → lmh_send ok count 1
15:39:12.284 → [LM ] OnRadioTxDone
15:39:12.284 → [LM ] OnRadioTxDone => RX Windows #1 1030 #2 1995
15:39:17.325 → [RADIO ] RadioIrqProcess => IRQ_RX_TX_TIMEOUT
15:39:17.325 → [LM ] OnRadioRxTimeout
15:39:19.308 → [LM ] OnRadioTxDone
15:39:19.308 → [LM ] OnRadioTxDone => RX Windows #1 1030 #2 1995
15:39:24.321 → [RADIO ] RadioIrqProcess => IRQ_RX_TX_TIMEOUT
15:39:24.321 → [LM ] OnRadioRxTimeout
15:39:26.331 → [LM ] OnRadioTxDone
15:39:26.331 → [LM ] OnRadioTxDone => RX Windows #1 1030 #2 1995
15:39:30.975 → Sending frame now…
15:39:30.975 → result: Tem:24.16C Hum:33.26%
15:39:30.975 → [LM ] LoRaMacMcpsRequest LORAMAC_STATUS_BUSY
15:39:30.975 → [LMH ] lmh_send → LoRaMacMcpsRequest failed
15:39:30.975 → lmh_send fail count 1
15:39:31.350 → [RADIO ] RadioIrqProcess => IRQ_RX_TX_TIMEOUT
15:39:31.350 → [LM ] OnRadioRxTimeout
15:39:33.349 → [LM ] OnRadioTxDone
15:39:33.349 → [LM ] OnRadioTxDone => RX Windows #1 1030 #2 1995
15:39:38.353 → [RADIO ] RadioIrqProcess => IRQ_RX_TX_TIMEOUT
15:39:38.353 → [LM ] OnRadioRxTimeout
15:39:40.358 → [LM ] OnRadioTxDone
15:39:40.358 → [LM ] OnRadioTxDone => RX Windows #1 1030 #2 1995
15:39:45.379 → [RADIO ] RadioIrqProcess => IRQ_RX_TX_TIMEOUT
15:39:45.379 → [LM ] OnRadioRxTimeout
15:39:47.370 → [LM ] OnRadioTxDone
15:39:47.370 → [LM ] OnRadioTxDone => RX Windows #1 1030 #2 1995
15:39:50.955 → Sending frame now…
15:39:50.955 → result: Tem:24.18C Hum:33.46%
15:39:50.955 → [LM ] LoRaMacMcpsRequest LORAMAC_STATUS_BUSY
15:39:50.955 → [LMH ] lmh_send → LoRaMacMcpsRequest failed
15:39:50.955 → lmh_send fail count 2
15:39:52.397 → [RADIO ] RadioIrqProcess => IRQ_RX_TX_TIMEOUT
15:39:52.397 → [LM ] OnRadioRxTimeout
15:39:54.359 → [LM ] OnRadioTxDone
15:39:54.397 → [LM ] OnRadioTxDone => RX Windows #1 1030 #2 1995
15:39:59.397 → [RADIO ] RadioIrqProcess => IRQ_RX_TX_TIMEOUT
15:39:59.397 → [LM ] OnRadioRxTimeout
15:40:01.408 → [LM ] OnRadioTxDone
15:40:01.408 → [LM ] OnRadioTxDone => RX Windows #1 1030 #2 1995
15:40:06.419 → [RADIO ] RadioIrqProcess => IRQ_RX_TX_TIMEOUT
15:40:06.419 → [LM ] OnRadioRxTimeout
15:40:10.948 → Sending frame now…
15:40:10.948 → result: Tem:24.31C Hum:33.68%
15:40:10.983 → lmh_send ok count 2
15:40:12.318 → [LM ] OnRadioTxDone
15:40:12.318 → [LM ] OnRadioTxDone => RX Windows #1 1030 #2 1995
I hoping that formatting is ok this time - it looks ok right now.
Thanks again for your support.
Richard.