iPhone 通过蓝牙转 RS-232

发布于 2024-12-04 08:41:38 字数 367 浏览 1 评论 0原文

我希望通过蓝牙将我的 iPhone 连接到 RS-232 串行设备。有没有人成功地实现了这一点并且可以提供有关硬件使用的建议?这有点棘手,因为设备需要 Apple 身份验证处理器。我发现的最好的潜在设备是 这个家伙 但它只是采用嵌入式封装,其串行端口接口只是逻辑级 UART 而不是线路级 RS-232,而且我找不到有库存的供应商。
任何想法将不胜感激。

我正在考虑只使用 WiFi 来串行,但出于此问题的目的,请忽略这种可能性。

I'm looking to connect my iPhone to an RS-232 serial device via Bluetooth. Has anyone implemented this successfully and can offer advice on hardware to use? It's kind of tricky because of the need for the Apple Authentication Processor with the device. The best potential device I've found is this guy but it only comes in an embedded package, its serial port interface is just logic-level UART rather than line-level RS-232, and I can't find a supplier with it in stock.
Any thoughts would be appreciated.

I'm considering just using WiFi to serial instead, but please ignore that possibility for the purposes of this question.

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

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

发布评论

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

评论(6

深居我梦 2024-12-11 08:41:39

大部分问题你自己已经回答了。
基本上你有 5 (+2) 个选择。

  1. 加入 MFi 计划。如果您不是中型公司的成员,这可能很难甚至不可能。

  2. 购买 OEM 蓝牙模块。我不确定苹果政策是否允许这样做。

  3. 使用无线网络。请记住,您想要使用至少可以充当临时接入点的 WiFi 芯片组。这些芯片组非常昂贵,您必须想办法加入现有网络(客户不想离开他们的家庭网络来使用您的产品)。这会给您设备的 BOM 增加大量成本。

  4. 越狱可能是一种选择。我从未尝试过使用越狱配件,所以我不知道是否可以在没有身份验证的情况下使用蓝牙。越狱

  5. 与 MFi 计划成员的公司合作。

  6. (也许是一个选项,具体取决于您希望通过 RS232 获得的速度:最终您可以将耳机插孔的音频输出转换为 RS232 电平,反之亦然)

  7. (这不是一个真正的选择:为 Android 开发并做任何您想做的事情)< /p>

most of the question was answered by yourself already.
Basically you have 5 (+2) choices.

  1. Join the MFi program. This might be hard to impossible if you are not part of a at least mid-size company.

  2. Buy the OEM Bluetooth Module. I'm not sure if this is even allowed by the apple policies.

  3. Use WiFi. Keep in mind that you want to use a wifi chipset that can act as at least ad-hoc access point. Those chipsets are quite expensive, and you have to think of a way to join existing networks (customers don't want to leave their home network to use your product). This will add a lot of cost to the BOM of your device.

  4. Jailbreak might be an option. I never tried to use accessories with a jailbreak, so I don't know if it's possible to use bluetooth without authentication.

  5. Work with a company that is member of the MFi program.

  6. (Maybe an option, and depending of the speed you want to have via RS232: Eventually you can convert the audio output of the head-phone jack to RS232 levels and vice versa)

  7. (Not really an option: develop for Android and do whatever you want)

终遇你 2024-12-11 08:41:39

如果您对设备进行越狱,则可以使用 BTstack.org(免责声明:我是 BTstack 的作者)连接到支持串行端口配置文件的蓝牙设备。您可以获得实现 SPP 并提供 UART 电平输出的蓝牙模块。正如 David R. 上面指出的,您需要一个 UART 到 RS232 转换器,例如 MAX232。

If you jailbreak your device, you can use BTstack.org (disclaimer: I'm the author of BTstack) to connect to a Bluetooth device that supports the Serial Port Profile. You can get Bluetooth Modules that implement SPP and provide UART level output. As David R. above points out, you then need a UART to RS232 converter, e.g. the MAX232.

反话 2024-12-11 08:41:39

好的。另一种选择。有一两家公司销售适用于 iOS 的 RS232 电缆,例如。 Skywire 在这里:http://www.southernstars.com/products/skywire/index.html< /a>

然后,您可以使用蓝牙 RS232 扩展器,它由 RS232 到 SPP 和 SPP 到 RS232 对组成。丑陋,但在苹果的规则之内。

Ok. Another option. There are one or two companies that sell RS232 cables for iOS, eg. Skywire here: http://www.southernstars.com/products/skywire/index.html

Then, you could uses a Bluetooth RS232 extender, which consists of a RS232-to-SPP and a SPP-to-RS232 pair. Ugly, but within Apple's rules.

风轻花落早 2024-12-11 08:41:39

出色地。看来我的回答可能是你没有要求的。
但你提到的那个人就是答案。购买他的产品就可以了,你所需要的只是一个 MAX232 芯片。将逻辑电平 UART 转换为 RS232。
高+电压低零电压的差异转换为高+~10伏低-~10伏。

我将 MAX232 芯片与微处理器配合使用,该芯片使用逻辑电平 USART 通过 RS232 进行通信。

有很多教程解释如何连接事物。

Well. It seems like my answer could be something you didnt ask for.
But the guy you referred to is the answer. Buy his product and you are good to go, all you need is a MAX232 chip. Converts logic level UART to RS232.
the diffrence high + voltage low zero voltage is converted to high +~10volts low -~10volts.

I use the MAX232 chip with my microprocessor, that uses logic level USART to communicate over RS232.

There is a lot of tutorials out there explaining how to hook things up.

扛起拖把扫天下 2024-12-11 08:41:39

我可能会考虑在中间创建一些接受蓝牙命令并将其转换为串行命令的东西,类似于 TCP 连接的作用: https://www.npmjs.com/package/stellar-socks

It should be possibly I would think to create something in the middle that accept the bluetooth commands and convert them to serial, similar to what this does with TCP connections: https://www.npmjs.com/package/stellar-socks

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