如何在RFID标签中访问EPC,TAGID和用户存储库(Chainway C72)

发布于 2025-02-09 10:41:16 字数 244 浏览 1 评论 0原文

我们正在使用Chainway C72设备(Android 11)开发应用程序。我们必须同时读取多个标签,对于每个标签,我们必须从EPC(64至1个Word -Dataword)中获取EPC,标签ID和一个特定单词。我们设法获取了所有数据,但是当多个标签在范围内时,Tagid,EPC和数据单词都无法正确。它给出一个标签的EPC,另一个标签的标签ID和另一个标签的数据单词。是否有任何方法可以将所有三个参数一起读取特定标签? 我们正在使用UHFREADDATA函数来获取结果。

We are developing an application using chainway C72 device (Android 11). We have to read multiple tags simultaneously and for each tag, we have to get EPC, Tag ID and one particular word from EPC (64 to 1 word - DataWord). We managed to get all data but tagID, EPC and the data word are not getting properly when multiple tags are in range. It is giving epc of one tag, tag id of another one and Data word of another one tag. Is there any method to read all three parameters together for a particular tag?
We are using the UHFReadData function to get the result.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

沫离伤花 2025-02-16 10:41:17

是的。以下代码将为您提供所有内存库数据。

 private suspend fun doBulkScanTags() = withContext(Dispatchers.IO) { // to run code in Background Thread
    var strTid: String
    var strResult: String
    var res: UHFTAGInfo? = null
    while (startBulkScan) {
        res = mReader?.readTagFromBuffer()
        if (res != null) {
            strTid = res.tid
            strResult =
                if (strTid.isNotEmpty() && strTid != "0000000" + "000000000" && strTid != "000000000000000000000000") {
                    "TID:$strTid\n"
                } else {
                    ""
                }
     
          //  val value =  strResult + "EPC:" + res.epc //+ "@" + res.rssi
            val value =  res.pc+ res.epc //+ "@" + res.rssi
          
            //this is you app call back to activity or view model class
            callBack?.onBulkInventoryRead(value)

        }
    }
}

yes. Below code will give you all memory banks data.

 private suspend fun doBulkScanTags() = withContext(Dispatchers.IO) { // to run code in Background Thread
    var strTid: String
    var strResult: String
    var res: UHFTAGInfo? = null
    while (startBulkScan) {
        res = mReader?.readTagFromBuffer()
        if (res != null) {
            strTid = res.tid
            strResult =
                if (strTid.isNotEmpty() && strTid != "0000000" + "000000000" && strTid != "000000000000000000000000") {
                    "TID:$strTid\n"
                } else {
                    ""
                }
     
          //  val value =  strResult + "EPC:" + res.epc //+ "@" + res.rssi
            val value =  res.pc+ res.epc //+ "@" + res.rssi
          
            //this is you app call back to activity or view model class
            callBack?.onBulkInventoryRead(value)

        }
    }
}
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文