Have you tried official sample? Due to the lack of comments, my code might be somehow chaotic. Official sample would be much clear ;) https://devforums.apple.com/thread/170833?tstart=30 Best Wishes,Khaos TianOn Nov 20, 2012, at 9:05 AM, Christian Giordano <email@hidden> wrote: Hi Andras, Khaos demo can be found here: https://github.com/KhaosT/CBPeripheralManager-Demo/ This is my project started from scratch but from his code (mainly split it in 2 different apps and left only the characteristic write function): https://github.com/nuthinking/BTLE_Central_to_Peripheral Cheers, chrOn Mon, Nov 19, 2012 at 8:56 PM, Andras Kovi <email@hidden> wrote: Hi Christian,have you tried changing the roles between the devices? I'm not aware of the example app you mentioned. Can you share it?Thanks,AndrasOn 2012.11.19., at 19:13, Christian Giordano <email@hidden> wrote: Hi Andras, thanks for the reply. I am actually testing it on the devices (iphone4s and ipad3).chrOn Mon, Nov 19, 2012 at 5:28 PM, Andras Kovi <email@hidden> wrote: Hi,the similar to the second error was last seen on the simulator, the first one may be related to it. I suggest you testing on an actual device, the simulator seems to have its limitations that cause such quirky errors. Regards,AndrasOn 2012.11.19., at 17:02, Christian Giordano <email@hidden> wrote: I am building both Peripheral and Central, for the time being, in iOS. For my project I would like the Central to send some data to the Peripheral (I know this should be tiny because BTLE is not as fast as normal BT). Anyways, in the Peripheral I advertise a service with 1 characteristics with CBCharacteristicPropertyWrite (permissions is 0). In the Central I write value on the characteristic with type CBCharacteristicWriteWithResponse. I get two problems:1) when I try to advertise the service from the Peripheral I get this warning: CoreBluetooth[WARNING] The advertisement key 'Service Data' is not allowed 2) when the Central writes the values, it gets, in peripheral:didWriteValueForCharacteristic:error:, error: Error Domain=CBErrorDomain Code=1 "One or more parameters were invalid." UserInfo=0x1d0348c0 {NSLocalizedDescription=One or more parameters were invalid.} I started from Khaos sample so I am just passing @"DA12312". Later I would like to pass much bigger data. Thanks a lot for any advice, chr _______________________________________________Do not post admin requests to the list. They will be ignored.Bluetooth-dev mailing list (email@hidden) This email sent to email@hidden _______________________________________________Do not post admin requests to the list. They will be ignored.Bluetooth-dev mailing list (email@hidden) This email sent to email@hidden _______________________________________________Do not post admin requests to the list. They will be ignored. Bluetooth-dev mailing list (email@hidden) This email sent to email@hidden _______________________________________________ Do not post admin requests to the list. They will be ignored. Bluetooth-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden References: >[BTLE] Sending data to a Peripheral (From: Christian Giordano <email@hidden>) >Re: [BTLE] Sending data to a Peripheral (From: Andras Kovi <email@hidden>) >Re: [BTLE] Sending data to a Peripheral (From: Christian Giordano <email@hidden>) >Re: [BTLE] Sending data to a Peripheral (From: Andras Kovi <email@hidden>) >Re: [BTLE] Sending data to a Peripheral (From: Christian Giordano <email@hidden>) >Re: [BTLE] Sending data to a Peripheral (From: Khaos Tian <email@hidden>) Prev by Date: Re: [BTLE] Sending data to a Peripheral Next by Date: Re: iOS6 access to SMS, email, and call notifications using Bluetooth Smart / BLE Previous by thread: Re: [BTLE] Sending data to a Peripheral Next by thread: Re: [BTLE] Sending data to a Peripheral Index(es): Date Thread
Hi Andras, Khaos demo can be found here: https://github.com/KhaosT/CBPeripheralManager-Demo/ This is my project started from scratch but from his code (mainly split it in 2 different apps and left only the characteristic write function): https://github.com/nuthinking/BTLE_Central_to_Peripheral Cheers, chrOn Mon, Nov 19, 2012 at 8:56 PM, Andras Kovi <email@hidden> wrote: Hi Christian,have you tried changing the roles between the devices? I'm not aware of the example app you mentioned. Can you share it?Thanks,AndrasOn 2012.11.19., at 19:13, Christian Giordano <email@hidden> wrote: Hi Andras, thanks for the reply. I am actually testing it on the devices (iphone4s and ipad3).chrOn Mon, Nov 19, 2012 at 5:28 PM, Andras Kovi <email@hidden> wrote: Hi,the similar to the second error was last seen on the simulator, the first one may be related to it. I suggest you testing on an actual device, the simulator seems to have its limitations that cause such quirky errors. Regards,AndrasOn 2012.11.19., at 17:02, Christian Giordano <email@hidden> wrote: I am building both Peripheral and Central, for the time being, in iOS. For my project I would like the Central to send some data to the Peripheral (I know this should be tiny because BTLE is not as fast as normal BT). Anyways, in the Peripheral I advertise a service with 1 characteristics with CBCharacteristicPropertyWrite (permissions is 0). In the Central I write value on the characteristic with type CBCharacteristicWriteWithResponse. I get two problems:1) when I try to advertise the service from the Peripheral I get this warning: CoreBluetooth[WARNING] The advertisement key 'Service Data' is not allowed 2) when the Central writes the values, it gets, in peripheral:didWriteValueForCharacteristic:error:, error: Error Domain=CBErrorDomain Code=1 "One or more parameters were invalid." UserInfo=0x1d0348c0 {NSLocalizedDescription=One or more parameters were invalid.} I started from Khaos sample so I am just passing @"DA12312". Later I would like to pass much bigger data. Thanks a lot for any advice, chr _______________________________________________Do not post admin requests to the list. They will be ignored.Bluetooth-dev mailing list (email@hidden) This email sent to email@hidden _______________________________________________Do not post admin requests to the list. They will be ignored.Bluetooth-dev mailing list (email@hidden) This email sent to email@hidden
Hi Christian,have you tried changing the roles between the devices? I'm not aware of the example app you mentioned. Can you share it?Thanks,AndrasOn 2012.11.19., at 19:13, Christian Giordano <email@hidden> wrote: Hi Andras, thanks for the reply. I am actually testing it on the devices (iphone4s and ipad3).chrOn Mon, Nov 19, 2012 at 5:28 PM, Andras Kovi <email@hidden> wrote: Hi,the similar to the second error was last seen on the simulator, the first one may be related to it. I suggest you testing on an actual device, the simulator seems to have its limitations that cause such quirky errors. Regards,AndrasOn 2012.11.19., at 17:02, Christian Giordano <email@hidden> wrote: I am building both Peripheral and Central, for the time being, in iOS. For my project I would like the Central to send some data to the Peripheral (I know this should be tiny because BTLE is not as fast as normal BT). Anyways, in the Peripheral I advertise a service with 1 characteristics with CBCharacteristicPropertyWrite (permissions is 0). In the Central I write value on the characteristic with type CBCharacteristicWriteWithResponse. I get two problems:1) when I try to advertise the service from the Peripheral I get this warning: CoreBluetooth[WARNING] The advertisement key 'Service Data' is not allowed 2) when the Central writes the values, it gets, in peripheral:didWriteValueForCharacteristic:error:, error: Error Domain=CBErrorDomain Code=1 "One or more parameters were invalid." UserInfo=0x1d0348c0 {NSLocalizedDescription=One or more parameters were invalid.} I started from Khaos sample so I am just passing @"DA12312". Later I would like to pass much bigger data. Thanks a lot for any advice, chr _______________________________________________Do not post admin requests to the list. They will be ignored.Bluetooth-dev mailing list (email@hidden) This email sent to email@hidden _______________________________________________Do not post admin requests to the list. They will be ignored.Bluetooth-dev mailing list (email@hidden) This email sent to email@hidden
Hi Andras, thanks for the reply. I am actually testing it on the devices (iphone4s and ipad3).chrOn Mon, Nov 19, 2012 at 5:28 PM, Andras Kovi <email@hidden> wrote: Hi,the similar to the second error was last seen on the simulator, the first one may be related to it. I suggest you testing on an actual device, the simulator seems to have its limitations that cause such quirky errors. Regards,AndrasOn 2012.11.19., at 17:02, Christian Giordano <email@hidden> wrote: I am building both Peripheral and Central, for the time being, in iOS. For my project I would like the Central to send some data to the Peripheral (I know this should be tiny because BTLE is not as fast as normal BT). Anyways, in the Peripheral I advertise a service with 1 characteristics with CBCharacteristicPropertyWrite (permissions is 0). In the Central I write value on the characteristic with type CBCharacteristicWriteWithResponse. I get two problems:1) when I try to advertise the service from the Peripheral I get this warning: CoreBluetooth[WARNING] The advertisement key 'Service Data' is not allowed 2) when the Central writes the values, it gets, in peripheral:didWriteValueForCharacteristic:error:, error: Error Domain=CBErrorDomain Code=1 "One or more parameters were invalid." UserInfo=0x1d0348c0 {NSLocalizedDescription=One or more parameters were invalid.} I started from Khaos sample so I am just passing @"DA12312". Later I would like to pass much bigger data. Thanks a lot for any advice, chr _______________________________________________Do not post admin requests to the list. They will be ignored.Bluetooth-dev mailing list (email@hidden) This email sent to email@hidden _______________________________________________Do not post admin requests to the list. They will be ignored.Bluetooth-dev mailing list (email@hidden) This email sent to email@hidden
Hi,the similar to the second error was last seen on the simulator, the first one may be related to it. I suggest you testing on an actual device, the simulator seems to have its limitations that cause such quirky errors. Regards,AndrasOn 2012.11.19., at 17:02, Christian Giordano <email@hidden> wrote: I am building both Peripheral and Central, for the time being, in iOS. For my project I would like the Central to send some data to the Peripheral (I know this should be tiny because BTLE is not as fast as normal BT). Anyways, in the Peripheral I advertise a service with 1 characteristics with CBCharacteristicPropertyWrite (permissions is 0). In the Central I write value on the characteristic with type CBCharacteristicWriteWithResponse. I get two problems:1) when I try to advertise the service from the Peripheral I get this warning: CoreBluetooth[WARNING] The advertisement key 'Service Data' is not allowed 2) when the Central writes the values, it gets, in peripheral:didWriteValueForCharacteristic:error:, error: Error Domain=CBErrorDomain Code=1 "One or more parameters were invalid." UserInfo=0x1d0348c0 {NSLocalizedDescription=One or more parameters were invalid.} I started from Khaos sample so I am just passing @"DA12312". Later I would like to pass much bigger data. Thanks a lot for any advice, chr _______________________________________________Do not post admin requests to the list. They will be ignored.Bluetooth-dev mailing list (email@hidden) This email sent to email@hidden
I am building both Peripheral and Central, for the time being, in iOS. For my project I would like the Central to send some data to the Peripheral (I know this should be tiny because BTLE is not as fast as normal BT). Anyways, in the Peripheral I advertise a service with 1 characteristics with CBCharacteristicPropertyWrite (permissions is 0). In the Central I write value on the characteristic with type CBCharacteristicWriteWithResponse. I get two problems:1) when I try to advertise the service from the Peripheral I get this warning: CoreBluetooth[WARNING] The advertisement key 'Service Data' is not allowed 2) when the Central writes the values, it gets, in peripheral:didWriteValueForCharacteristic:error:, error: Error Domain=CBErrorDomain Code=1 "One or more parameters were invalid." UserInfo=0x1d0348c0 {NSLocalizedDescription=One or more parameters were invalid.} I started from Khaos sample so I am just passing @"DA12312". Later I would like to pass much bigger data. Thanks a lot for any advice, chr _______________________________________________Do not post admin requests to the list. They will be ignored.Bluetooth-dev mailing list (email@hidden) This email sent to email@hidden
_______________________________________________Do not post admin requests to the list. They will be ignored. Bluetooth-dev mailing list (email@hidden) This email sent to email@hidden
_______________________________________________ Do not post admin requests to the list. They will be ignored. Bluetooth-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden