Serial or HID (usb) Communication in iOS (iPhone/iPad)

柔情痞子 提交于 2019-12-03 03:39:29

An iOS device can talk to external devices by following means of communications only:

  1. Wifi
  2. Bluetooth
  3. GPRS &
  4. GSM
  5. USB (Don't exactly know what it is called)

There is no possible way to have RS232 serial port communication with iOS device.

Now What are the options left then?

  1. Get a communication convertor in between your external device & iOS device. It can be

    • Serial to ethernet adapter
    • serial to USB adapter etc.
  2. Embedd a wifi/bluetooth module in the external device (If it is being manufactured by you/your firm)

  3. Have something with USB cable & mfi .(Never worked on this, but have seen stuff working with this). By something I meant, register your external device under MFI license & implement USB between devices (Again lack of clarity about USB stuff). Menwhile, I would appreciate edits on my answer by people who might improve it with USB stuff.

Update:

I visited the site of your vendor "glooko". I could not find any clue about them having any libraries for developers. So according to my opinion, they have kept their library private. They don't want you to develop apps based on their communication protocol. If you still need to develop apps for them, contact them here & let them know about your zeal.. M sure they will give you their private code. Anyhow, you don't need to register for any MFI or anything now. What you need is just the code they are using for communication & about that, nobody other than them can help you. So, all the best .. :)

Update 2:

What I understood from your updated question is, you want to create an iOS application that works with various Glucose meters, from different vendors. In a way you can call it as "universal Glucose meter app"

The short and straight answer for this is .."You Can't" . But wait, apple is not responsible for this. Neither it is impossible.

Let me tell you why. When you want your application to talk with a hardware device, there must be a communication channel between you too. You are well aware of those two options available. now, if your app must run on iDevices, the communication channel cables must be registered for mfi. Here that is also not the issue.

What is the issue then? Different vendons don't generally follow the same communication protocols between their hardware & softwares. What happens if a german commander commands to indian soldier. Obviously, nobody will understand.

So, to achieve your objective, the only way is, you have to include SDK provided by each supported vendors in your app. Let me know if you are not yet clear..:)

There is a device called Lightning Serial Cable, the link is following.Take a look at their SDK.

http://redpark.com/lightning-serial-cable-l2-db9v/

It seems work with your application. I'm also looking for the solution that iOS device can talk to another device via serial port. In PC world, all PC has USB ports, so there is large amount of USB to serial port devices and vendors, such as FTDI and Prolific. I don't know if similar situation happens in iOS world.

rckoenes

Unless you join the Made For iPhone program you can not directly connect anything to an iOS device unless you use Bluetooth or TCP/IP.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!