简体   繁体   English

Verifone e355 iOS集成-无法在软模式下触发条形码扫描仪

[英]Verifone e355 iOS integration - unable to trigger barcode scanner with soft mode

I'm working in a POS(iPad) application where we are using Verifone E355 for payments. 我在POS(iPad)应用程序中工作,我们在其中使用Verifone E355进行付款。 Now I have a requirement to trigger the barcode scanner of verifone e355 device( https://www.verifone.com/en/us/devices/mpos/e355 ) through software from iPad. 现在,我需要通过iPad上的软件来触发verifone e355设备的条形码扫描仪( https://www.verifone.com/en/us/devices/mpos/e355 )。

VMF(Verifone mobile framework) iOS sdk is being used to communicate calls with E355. VMF(Verifone移动框架)iOS sdk正在用于与E355通信。

I have followed the framework docs and initialised the barcode scanner API. 我遵循了框架文档并初始化了条形码扫描器API。 To activate the barcode scanner and scan the below code snippet is used. 要激活条形码扫描仪并扫描以下代码段,请使用以下代码段。

I always get a return of -9 (which is an error code, description as per docs - Value returned when command was sent when device is connected but not connection not initialized ) upon calling startScan and sendTriggerEvent: api's. 在调用startScan和sendTriggerEvent:api ,我总是得到-9的返回值(这是错误代码,根据docs的描述- 连接设备但未初始化未连接时发送命令时返回的值 )。

[self.barcodeScanner initDevice];
int startScanResult = [self.barcodeScanner startScan]
int setSoftTrigger = [self.barcodeScanner sendTriggerEvent:true];

The above code block is what I have tried till now. 上面的代码块是我到目前为止尝试过的。 If anyone has experience working with e355 integration, please help out here. 如果有人有使用e355集成的经验,请在这里帮助。

您需要向VFIBarcode的委托人进行确认,一旦进行扫描,您将获得条形码扫描数据委托人方法的响应。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM