actively re-start llcp connection
Is it possible to actively shut down and re-start an LLCP connection while the peer remains in range? I guess the "normal" use case is that an LLCP connection 'disconnects' by the peer moving out of range. However I'd like to actively stop and restart an LLCP connection.
I tried the sequence of llcp.startup, connect using clf.poll or .listen, llcp.activate -- now SNEP activity here --, llcp.shutdown and then again llcp.startup & connect, however the peer (Google Nexus S) crashes on the llcp.shutdown bit. I saw that llcp.shutdown only sends a Disconnect PDU so handling of that PDU may be buggy in the peer, or the above is not following proper protocol?
Would it be possible to restart an LLCP connection w/o sending the Disconnect PDU. I tried above sequence w/o the shutdown part, on rare occasions it would work, but mostly I get 'missing ack frame from pn53x' or 'IndexError: index out of range: 6' in file nfc/dev/pn53x.py.
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- nfcpy Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask hank for more information if necessary.