Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Read failed on port
#1
Dean, any additional info on what would cause this error:

Code:
[EXCEPTION] Read failed on /Local/COM20. Port Err: {Frame}

I'm seeing weird things from the data....just occasional bytes are getting screwed up. Unfortunately, this protocol doesn't have any checksum... so I have to handle these somehow. But I was hoping this error message might shed some light on what's going on.
Reply
#2
That's generally a sign of incorrect settings on one side or the other or a bad cable or something of that sort, they are getting out of synch with each other wrt to the interpretation of the pulses that define a transmitted byte. Each byte transmitted is considered a 'frame', the start, stop, data, and any parity bits. If the two sides are out of sync in some way at the low serial port signaling level, you can get frame errors.
Dean Roddey
Explorans limites defectum
Reply
#3
Well, that would certainly explain the randomly botched characters i'm getting (0x04 instead of 0x44).

Hmm...I'll look over the connection details again...I hope the device itself isn't getting flakey.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Is there a way to change the listening port for the CQC server? ghurty 3 1,173 04-23-2020, 05:54 PM
Last Post: Dean Roddey
  Write Failed / ZWave gReatAutomation 22 6,682 03-20-2020, 12:29 PM
Last Post: Dean Roddey
  DIDOrb_ThisFacility.cpp.563 Failed/Not Found simplextech 5 1,686 01-31-2020, 01:22 PM
Last Post: simplextech
  CIDLib_RefVector.hpp.470, Failed/Bad Parms simplextech 1 837 01-12-2020, 06:06 PM
Last Post: Dean Roddey
  Stupid question: How can I read a motion or other field state change ghurty 10 4,101 01-10-2019, 10:10 AM
Last Post: Dean Roddey
  Missing how to tell CQC to read a Lutron keypad button pressed ghurty 7 2,806 01-08-2019, 09:55 PM
Last Post: Dean Roddey
  Getting "Tried to read at the logical end of the stream" when importing a package ghurty 2 1,371 12-28-2018, 08:56 AM
Last Post: ghurty
  Does GC-100 Driver Support Tri-Port Cable? Jnetto 18 9,943 01-29-2018, 08:16 AM
Last Post: RichardU
  Global Cache 180 serial port compatibility? MikeA 2 2,151 09-26-2016, 08:24 PM
Last Post: MikeA
  Webserver Port potts.mike 4 2,323 03-15-2016, 08:08 PM
Last Post: potts.mike

Forum Jump:


Users browsing this thread: 1 Guest(s)