Question: how to determine if Open() is successful?
wjquigs11 opened this issue · 2 comments
wjquigs11 commented
Is there any way to determine if the N2K Open succeeded? It returns "true" even if the interface is not physically connected to a bus.
For now I'm using packet receive count == 0 after some time, but that seems unreliable.
unxs0 commented
@wjquigs11 A loopback type check? This would require a hardware/electrical standard that may exist already.
wjquigs11 commented
No, I meant a check for physical connection to the bus. I came across a better solution than mine, which is a bool N2Kopen = false, changed to true in the message handler (i.e., will only be true if we've received a valid packet to process).