Redpark串行电缆无法接收数据 [英] Redpark Serial Cable not receiving data

查看:146
本文介绍了Redpark串行电缆无法接收数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个来自Redpark的C2-DB9串行电缆,用于iOS应用程序,似乎无法按要求运行。我有一个设备连接到RSC电缆,也通过USB连接到PC,仅供电。

I have a C2-DB9 serial cable from Redpark for use with an iOS application that seems to be not working as required. I have a device that connects to the RSC cable and also to a PC via USB for power only.

我已经使用随硬件提供的Redpark SDK并相应地实现了委托方法:

I have utilised the Redpark SDK provided with the hardware and implemented the delegate methods accordingly:

- (void) cableConnected:(NSString *)protocol;

- (void) cableDisconnected;

- (void) portStatusChanged;

- (void) readBytesAvailable:(UInt32)length;

现在,除了readBytesAvailable之外的所有方法都符合规范。但是,我没有通过这种委托方法收到任何回复。

Now, all of the methods apart from readBytesAvailable behave according to specification. However, I have not received any communication back via this delegated method.

要检查设备是否有故障,我已经安装了一些通用USB转串口驱动程序并使用了ZTerm确认其操作 - 这立即给我返回的数据。

To check that the device is not faulty, I have installed some generic USB to Serial drivers and used ZTerm to confirm its operation - this gives me the returned data immediately.

我知道我必须遗漏一些东西,但我不知道它是什么。

I know I must be missing something but I am at a loss as to what it is.

推荐答案

您是通过RscMgr的 setBaud 打开方法设置波特率和打开连接

are you setting baud rate and opening connection via RscMgr's setBaud and open methods on


  • (void)cableConnected:(NSString *)protocol;

这篇关于Redpark串行电缆无法接收数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆