Giter VIP home page Giter VIP logo

Comments (5)

xmaihh avatar xmaihh commented on June 27, 2024

当串口数据接收分段时,需要对接收到的数据进行重组,将属于同一数据帧(或数据包)的分段数据组装起来,以恢复出完整的数据帧。

from android-serialport.

luhuanxml avatar luhuanxml commented on June 27, 2024

image
如何重组可以指导一下吗,第一次用。不是很懂原理。只是每次读取的时候偶尔会分段返回,一次不返回完全,要等下一次卡片贴上去的时候才返回,我的send间隔时间500ms

from android-serialport.

xmaihh avatar xmaihh commented on June 27, 2024

你的工程大致工作流程是通过Uart串口连接NFC模块,实现NFC设备间数据传输的对吗

你可以将NFC模块连接到电脑,打开串口调试助手,测试是否存在数据读取不全的问题

from android-serialport.

luhuanxml avatar luhuanxml commented on June 27, 2024

的确是模拟nfc功能,设备厂商提供了命令码。您说的意思是还是我的模块有可能有问题是吧,我下载了一些其他的测试软件,在显示16进制的时候没有出现卡号分割的问题。

from android-serialport.

xmaihh avatar xmaihh commented on June 27, 2024

你需要参考这部分实现处理一下数据读取,粘包处理

from android-serialport.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.