⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.xmece.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
8 posts / 0 new
Last post
Kevleo94
Offline
Last seen:2 years 8 months ago
Joined:2017-09-05 07:18
Connect With IOS

Hi,
currently I'm developing IOS application to connect with ble. I can connect IOS with ble, but after send data from IOS to ble the connection is lost.
I'm using example project as base for my project. Where is the problem? is it in ble or IOS application?

Thank you

Device:
PM_Dialog
Offline
Last seen:8 hours 42 min ago
Staff
Joined:2018-02-08 11:03
Hi Kevleo94,

Hi Kevleo94,

您能说的具体些你的追求呢ion? In which ble example are you working on and in which SDK version?

Thanks, PM_Dialog

Kevleo94
Offline
Last seen:2 years 8 months ago
Joined:2017-09-05 07:18
I'm using SDK 5.0.4 and ble

I'm using SDK 5.0.4 and ble example as my base project

PM_Dialog
Offline
Last seen:8 hours 42 min ago
Staff
Joined:2018-02-08 11:03
Hi Kevleo94,

Hi Kevleo94,

Your description is quite generic there are quite a few reasons for a disconnection to occur, are you able to keep a connection alive with a generic iOS application, if not are you able to do the same with an android device ? Have you checked in the disconnection callback the reason for the disconnection? Please check the above. Also a sniffer log would also help in clear things out.

Thanks, PM_Dialog

Kevleo94
Offline
Last seen:2 years 8 months ago
Joined:2017-09-05 07:18
Hi,

Hi,
in android app it works normally.
In my ios application, I got error code 6 = "The connection has timed out unexpectedly" after the data was sent. In LightBlue application (IOS Generic Application for bluetooth) I got "Disconnect, Data is stale" after the data was sent.

PM_Dialog
Offline
Last seen:8 hours 42 min ago
Staff
Joined:2018-02-08 11:03
Hi Kevleo94,

Hi Kevleo94,

If it works correctly with an Android and iOS Generic application, then its an issue of your custom application.

Thanks, PM_Dialog

Kevleo94
Offline
Last seen:2 years 8 months ago
Joined:2017-09-05 07:18
It is not working on IOS

It is not working on IOS generic application(It can connect and then disconnect again after data was sent). Does IOS need some requirement for BLE?
I need some clues or recommendation to solve this problem

Thank you

PM_Dialog
Offline
Last seen:8 hours 42 min ago
Staff
Joined:2018-02-08 11:03
Hi Kevleo94,

Hi Kevleo94,

There isn’t a specific configuration for sending data from and to your application when using an Ios device. When the device disconnects the user_app_disconnect() callback function is executed, but which is the reason of the disconnection? Please try to debug your code when the user_app_disconnect() hits. Did you face the same problem with a ble example of the SDK? Also, as I mentioned you in a previous post, using a sniffer log would also help in clearing things out.

Thanks, PM_Dialog