Ai-Thinker-Open / GPRS_C_SDK

Ai-Thinker A9/A9G GPRS (with GPS(A9G)) module C development SDK
https://ai-thinker-open.github.io/GPRS_C_SDK_DOC
MIT License
446 stars 232 forks source link

`CHST_Read32': Request to coolhost timed out ! (CoolHostTimeoutError) #505

Closed kaizer1419 closed 2 years ago

kaizer1419 commented 2 years ago

Trace:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd">

./rbbase/common/coolhost_connections.rb | 161 | `CHST_Read32' -- | -- | -- ./rbbase/common/coolhost_connections.rb | 161 | `read32' ./rbbase/common/base.rb | 85 | `read' ./rbbase/common/base.rb | 239 | `read' ./chipgen/Modem2G/toolpool/scripts/8809/target_executor.rb | 72 | `enterHostMonitor' ./chipgen/Modem2G/toolpool/scripts/ChipStd/target_executor.rb | 366 | `session' ./chipgen/Modem2G/toolpool/scripts/ChipStd/ramrun.rb | 12 | `doramrunXfer' ./chipgen/Modem2G/toolpool/scripts/ChipStd/ramrun.rb | 62 | `ramrunXfer' ./chipgen/Modem2G/toolpool/plugins/fastpf/fastpf.rb | 212 | `dofastpfXfer' ./chipgen/Modem2G/toolpool/plugins/fastpf/fastpf.rb | 718 | `dofastpf' ./chipgen/Modem2G/toolpool/plugins/fastpf/fastpf.rb | 788 | `fastpf' ./chipgen/Modem2G/toolpool/plugins/fastpf/fastpfplugin.rb | 83 | `fastpfGenericGo' ./chipgen/Modem2G/toolpool/plugins/fastpf/fastpfplugin.rb | 112 | `fastpfGo'

The interesting thing is coolwatcher seems to be recieveing data from the board. I get messages such as these:

Detected event: 0xf0fa0002. Detected event: 0x0000000f. Detected event: 0x09000000. Detected event: 0x09019000. Detected event: 0xeedcd5eb. Detected event: 0xeedc6279. Detected event: 0x09300584. Detected event: 0x09300593. Detected event: 0x09300590. Detected event: 0x09300588. Detected event: 0x09300514. Detected event: 0x22c46804. Detected event: 0x22c4dc68. Detected event: 0x22c4dd74. Detected event: 0x2300007b. Detected event: 0x230000e2. Detected event: 0x2300007f. Detected event: 0x22c49f00.

Whenever I reset the board. But, coolwatcher functions don't work (upload, reset board, etc). I am using an Arduino Uno as USB to TTL converter and am on Linux (Ubuntu 20.4)

kaizer1419 commented 2 years ago

Fixed. It was a problem with the USB to Serial converter. I switched to a CP2102 and it works now.