![]() |
Forum Index : Microcontroller and PC projects : COMMS GOTCHA
Author | Message | ||||
Chopperp![]() Guru ![]() Joined: 03/01/2018 Location: AustraliaPosts: 1094 |
Hi I spent a considerable amount of time & effort in finding out why one of my HC-12 test links wasn't responding with the correct amount of data. It was working OK & then sort of stopped sending the full data stream. I tested & did many things but eventually found the problem..... DO NOT CLOSE A COM PORT UNTIL THE TX BUFFER HAS SUFFICIENT TIME TO EMPTY. Delaying the CLOSE #1 command by a second did the trick. I inadvertently had the command immediately after the PRINT #1, command during testing. Lesson learnt (until next time) Brian ChopperP |
||||
TassyJim![]() Guru ![]() Joined: 07/08/2011 Location: AustraliaPosts: 6266 |
You can always use LOF() to see whats remaining in the TX buffer Saves waiting for too long. Jim VK7JH MMedit |
||||
Chopperp![]() Guru ![]() Joined: 03/01/2018 Location: AustraliaPosts: 1094 |
Thanks for that Jim. Interesting reading the notes on LOF() About 120mS of data being cut off at 60mS. Something I never thought of before. Brian ChopperP |
||||
Geoffg![]() Guru ![]() Joined: 06/06/2011 Location: AustraliaPosts: 3281 |
This was changed in Ver 5.05.02 for the Micromite and Micromite Plus: Geoff Geoff Graham - http://geoffg.net |
||||
Chopperp![]() Guru ![]() Joined: 03/01/2018 Location: AustraliaPosts: 1094 |
OK, inadvertently loaded 5.05.01 when swapping 28 pinners etc. Will try '.02. My apologies... Thanks Geoff ChopperP |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |