mrossen Active Member Licensed User Longtime User Jan 8, 2015 #1 Hi, Is there a way to add info to Info.Plist I try to get some existing obj.c to Work with the new obj.c inline code. And thanks for that Erel. Thats Works perfect so far. I am no big obj. C coder but I just copy/paste my code to B4i and it Works so far. But I use the "ExternalAccessory" frame Work library and it has to have a special line in the info.plist. I do not know why, but if it not there I can not create a stream I upload a screendumb do show my problem Mogens Attachments RVBT.jpg 65.8 KB · Views: 369
Hi, Is there a way to add info to Info.Plist I try to get some existing obj.c to Work with the new obj.c inline code. And thanks for that Erel. Thats Works perfect so far. I am no big obj. C coder but I just copy/paste my code to B4i and it Works so far. But I use the "ExternalAccessory" frame Work library and it has to have a special line in the info.plist. I do not know why, but if it not there I can not create a stream I upload a screendumb do show my problem Mogens
Erel B4X founder Staff member Licensed User Longtime User Jan 9, 2015 #2 Yes, you can add any text you like with #PlistExtra attribute. Upvote 0
mrossen Active Member Licensed User Longtime User Jan 9, 2015 #3 Hi, Is this the right way to do it? It still fails #PlistExtra: <key>Supported external accessory protocols</key><string>com.RovingNetworks.btdemo</string> Application_Start Application_Active CONNECTBLUETOOTH ERROR - opening session failed as protocol com.RovingNetworks.btdemo is not declared in Info.plist ERROR - /SourceCache/ExternalAccessory/ExternalAccessory-287/EASession.m:-[EASession dealloc] - 141 unable to close session for _accessory=0x16d45b00 and sessionID=65536 accessory: <EAAccessory: 0x16d45b00> { connected:YES connectionID:29531346 name: E-CRUISE II manufacturer: Roving Networks modelNumber: RN-42-APL-X serialNumber: firmwareRevision: 1.2.3 hardwareRevision: 4.5.6 protocols: ( "com.RovingNetworks.btdemo" ) delegate: (null) } protocol: com.RovingNetworks.btdemo session(null) (null) is.steamStatus: 0 is.hasByteAvalilable: 0 Open Input Stream is.streamStatus: 0 is.hasByteAvalilable: 0 (null) os.steamStatus: 0 os.hasSpaceAvalilable: 0 Open Output Stream os.streamStatus: 0 os.hasSpaceAvalilable: 0 Upvote 0
Hi, Is this the right way to do it? It still fails #PlistExtra: <key>Supported external accessory protocols</key><string>com.RovingNetworks.btdemo</string> Application_Start Application_Active CONNECTBLUETOOTH ERROR - opening session failed as protocol com.RovingNetworks.btdemo is not declared in Info.plist ERROR - /SourceCache/ExternalAccessory/ExternalAccessory-287/EASession.m:-[EASession dealloc] - 141 unable to close session for _accessory=0x16d45b00 and sessionID=65536 accessory: <EAAccessory: 0x16d45b00> { connected:YES connectionID:29531346 name: E-CRUISE II manufacturer: Roving Networks modelNumber: RN-42-APL-X serialNumber: firmwareRevision: 1.2.3 hardwareRevision: 4.5.6 protocols: ( "com.RovingNetworks.btdemo" ) delegate: (null) } protocol: com.RovingNetworks.btdemo session(null) (null) is.steamStatus: 0 is.hasByteAvalilable: 0 Open Input Stream is.streamStatus: 0 is.hasByteAvalilable: 0 (null) os.steamStatus: 0 os.hasSpaceAvalilable: 0 Open Output Stream os.streamStatus: 0 os.hasSpaceAvalilable: 0
Erel B4X founder Staff member Licensed User Longtime User Jan 11, 2015 #4 No. It should be: #PlistExtra: <key>UISupportedExternalAccessoryProtocols</key><array><string>com.RovingNetworks.btdemo</string></array> Upvote 0
No. It should be: #PlistExtra: <key>UISupportedExternalAccessoryProtocols</key><array><string>com.RovingNetworks.btdemo</string></array>
Alberto Iglesias Well-Known Member Licensed User Longtime User Aug 19, 2015 #5 Hey mrrosen, You do some app to connect a external device, like a bluetooth one? You did it? Thanks Alberto iglesias Upvote 0
Hey mrrosen, You do some app to connect a external device, like a bluetooth one? You did it? Thanks Alberto iglesias
mrossen Active Member Licensed User Longtime User Aug 19, 2015 #6 Hi Alberto, Yes, I made a connection to the bluetooth module, I never managed to read the stream. I made the most with inline code, but I am not very good to Objective C so I never succeded. I have silent waited for the Serial bluetooth libeary, I hope Erel will make some day I have ordered a BLE module a few days ago. I will give that at try, Mogens Upvote 0
Hi Alberto, Yes, I made a connection to the bluetooth module, I never managed to read the stream. I made the most with inline code, but I am not very good to Objective C so I never succeded. I have silent waited for the Serial bluetooth libeary, I hope Erel will make some day I have ordered a BLE module a few days ago. I will give that at try, Mogens
Alberto Iglesias Well-Known Member Licensed User Longtime User Aug 19, 2015 #7 ok.. because I doing a bluetooth server (with a windows component) and now I developing an app with EAAccessory, so, after that I will create a bluetooth library for B4i. Tks. Alberto iglesias Upvote 0
ok.. because I doing a bluetooth server (with a windows component) and now I developing an app with EAAccessory, so, after that I will create a bluetooth library for B4i. Tks. Alberto iglesias
mrossen Active Member Licensed User Longtime User Aug 20, 2015 #8 Hi Alberto, That sounds great I think there will be serveral in this forum there will look forward to that, Mogens Upvote 0
Hi Alberto, That sounds great I think there will be serveral in this forum there will look forward to that, Mogens
mrossen Active Member Licensed User Longtime User Aug 20, 2015 #9 #Alberto Are you using the EAAccessory framework in inline code? Mogens Upvote 0
Alberto Iglesias Well-Known Member Licensed User Longtime User Aug 20, 2015 #10 Not yeat, but I think create a library to do that. Is not too complicate Upvote 0
Alberto Iglesias Well-Known Member Licensed User Longtime User Jan 29, 2016 #11 mrossen, what is the real device you try to connect , to put this protocol: com.RovingNetworks.btdemo? Is connected through classic bluetooth? is a iAP certified? Because I need to connect in a iAP certified device and I can´t find to buy one of this. Thanks Alberto Upvote 0
mrossen, what is the real device you try to connect , to put this protocol: com.RovingNetworks.btdemo? Is connected through classic bluetooth? is a iAP certified? Because I need to connect in a iAP certified device and I can´t find to buy one of this. Thanks Alberto
mrossen Active Member Licensed User Longtime User Jan 31, 2016 #12 Hi Alberto It is connected through what you call Classic bluetooth (SSP profile) I don't know what iAP is but as far as I know you can only buy the module I used if you are member of Apple MFI program. Mogens Upvote 0
Hi Alberto It is connected through what you call Classic bluetooth (SSP profile) I don't know what iAP is but as far as I know you can only buy the module I used if you are member of Apple MFI program. Mogens
Alberto Iglesias Well-Known Member Licensed User Longtime User Jan 31, 2016 #13 OK, I understand that, but wich device you use? Brand and Model.... Thanks Upvote 0
mrossen Active Member Licensed User Longtime User Feb 6, 2016 #14 Look here : https://www.b4x.com/android/forum/threads/serial-library.46825/ Upvote 0