gpt4 book ai didi

ios - 扫描时查找 Honeywell Captuvo 设备的条形码类型

转载 作者:行者123 更新时间:2023-11-30 13:09:37 25 4
gpt4 key购买 nike

我正在使用 Honeywell Captuvo 设备及其 SDK,用于使用 iPod 扫描条形码。不幸的是,没有委托(delegate)方法可以提供扫描的条形码类型。有两个委托(delegate)方法可以为您提供条形码的字符串值和扫描的条形码中的 NSData。

//Raw Data by delegate method. 
func decoderRawDataReceived(data: NSData!) {

}

//String return by delegate method.
func decoderDataReceived(data: String!) {

}

因为我通过扫描条形码获取两种类型的数据。我一直在寻找一种解决方案,通过该解决方案可以获得扫描数据的条形码类型。

有没有办法从 NSData 或 String 类型获取 Barcode 类型?

最佳答案

我也一直在寻找这个问题的答案,并想出了一个迂回的方法来做到这一点,因为 SDK 没有这种能力。

在《Captuvo Sled 用户指南》中,概述了独立于 SDK 配置扫描仪的方法。在“数据编辑”部分中,它概述了您可能感兴趣的一些配置选项。您可以向不同的条形码符号系统添加前缀/后缀。

也许更容易的是,在数据格式化部分,它提到了以下功能:

Insert symbology name

B3

Insert the name of the bar code’s symbology in the output message,without moving the cursor. Only symbologies with a Honeywell ID areincluded (see Symbology Chart on page A-1). Refer to the ASCIIConversion Chart (Code Page 1252), page A-4 for decimal, hex andcharacter codes.

因此,首先配置扫描仪,然后您就可以解析符号系统。

关于ios - 扫描时查找 Honeywell Captuvo 设备的条形码类型,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38877794/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com