react native - PPP LCP Configure-Ack Not Recognized - Incorrect FSC or LCP Configure-Ack needs Escaping? - Stack Overflow

PPP Over BLE - LCP Configure-Ack Not Acknowledged by DeviceI'm implementing a PPP connection over

PPP Over BLE - LCP Configure-Ack Not Acknowledged by Device

I'm implementing a PPP connection over BLE with a Sauermann gas analyzer using React Native. The device sends an LCP Configure-Request, but after I respond with a Configure-Ack (0x02), the device keeps resending the request instead of proceeding with the next step.

LCP Negotiation Flow (Expected) The device uses escaping (0x7D + XOR 0x20).

LCP negotiation steps:

  1. Device sends Configure-Request (0x01).
  2. App responds with Configure-Ack (0x02).
  3. App sends its Configure-Request.
  4. Device responds with Configure-Ack. In my case, step 2 seems to be failing because the device keeps repeating step 1 (sending Configure-Request).

What I’m Doing

Decoding and Modifying the Configure-Ack

  • I decode the received PPP frame
  • Modify the identifier byte to 0x02 (Configure-Ack)
  • Recalculate the FCS checksum
const sendLCPConfigureAck = async (connection, receivedPacketEncoded) => {
    try {
        console.log("

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745065425a4609227.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信