|
It is currently Wed Jul 06, 2011 5:44 pm
|
View unanswered posts | View active topics
 |
|
 |
|
| Author |
Message |
|
brandontreb
|
Post subject: Jailbroken iPhone  Posted: Sat Mar 12, 2011 8:19 am |
Joined: Sat Mar 12, 2011 8:14 am Posts: 22
|
|
Hey guys,
Just got my watch in the mail and I love it!
After tinkering with the sample apps, I decided to build your iPhone sample app with BTStack. I was successfully able to deploy it on my iPhone AND connect it to my watch! However, when the test notifications fired from the sample app shortly after connection, the watch didn't see them . I tried both with the notifications app and the pulse_protocol_notification_demo.
I know you guys have minimal support for jailbroken iPhones, but I was hoping we could solve this together. I'm an iOS dev, and would love to build out a fully functioning application. I just need to get past this communication hurdle. So, any ideas why the notifications are not being received? Perhaps a new change in your API that didn't get reflected in the iOS app?
Any help would be greatly appreciated.
Thanks!
|
|
|
|
 |
|
Eric
|
Post subject: Re: Jailbroken iPhone  Posted: Sun Mar 13, 2011 5:19 pm |
Joined: Mon Feb 14, 2011 7:07 pm Posts: 172
|
Hi @brandontreb, glad to hear that you got started hacking iOS for inPulse! Yes, there have been several changes to what we call the PulseProtocol, which is the system of transferring messages to inPulse. The iOS sample app is quite out of date, but the rough structure is there. It needs to be updated to support the latest PulseProtocol documentation which sits in pulse_sdk/doc/Pulse_protocol.odt. I'd suggest loading the most recent version of our main notifications app using the compileandload.py -d 00:50:xx:etc -n command. We'd love to help you, perhaps it might be quicker via email? You can email [email protected] and we'll help you out in real-time.
_________________ ---
Lead designer of inPulse
|
|
|
|
 |
|
brandontreb
|
Post subject: Re: Jailbroken iPhone  Posted: Sun Mar 13, 2011 7:35 pm |
Joined: Sat Mar 12, 2011 8:14 am Posts: 22
|
Hey Eric, Thanks for the reply. I'll bundle up my code with the BTStack libraries and send it to you sometime tomorrow. Here is what I have so far. 1. I ported your existing iOS code from a command-line app to a full iOS project. I also made the app multithreaded so that I can run the main loop outside of the interface thread in order to be able to send notifications. 2. I have BTStack loading up and connecting to my watch from my iPhone 3. I updated my header struct to reflect the new format (based on your protocol docs) 4. I have the latest notifications app installed on my watch 5. I can send a message to the watch (using the sample sms interface) and I receive a data message back (printed out in the log). The watch just doesn't recognize the message. However the send message test python script works beautifully. 6. My C is a little rusty, so I'm not 100% sure that I have all of the formatting correct (for the notification header and body). This has been an absolute blast so far to hack. I really hope we can get something working. Look out for my email tomorrow 
|
|
|
|
 |
|
brandontreb
|
Post subject: Re: Jailbroken iPhone  Posted: Mon Mar 14, 2011 6:57 pm |
Joined: Sat Mar 12, 2011 8:14 am Posts: 22
|
|
Hey Eric,
I wanted to follow up and see if you guys received my email.
Thanks
|
|
|
|
 |
|
brandontreb
|
Post subject: Re: Jailbroken iPhone  Posted: Tue Mar 15, 2011 6:56 am |
Joined: Sat Mar 12, 2011 8:14 am Posts: 22
|
So, I now have notifications sending from my iPhone to my watch! However, there are a few issues that you guys might be able to help with. Here is the first. What separates the sender from the message body? Is there a terminator or something. As of right now, everything I send is showing up as the sender in the latest notifications app. len = store_inpulse_string((char*)&buffer[pos], "Brandon"); pos += len; len = store_inpulse_string((char*)&buffer[pos], "This is a test."); pos += len; message->message_header.length = pos; bt_send_l2cap( source_cid, (uint8_t*) &buffer, pos);
Any ideas?
|
|
|
|
 |
|
brandontreb
|
Post subject: Re: Jailbroken iPhone  Posted: Tue Mar 15, 2011 7:41 am |
Joined: Sat Mar 12, 2011 8:14 am Posts: 22
|
|
Actually, I just solved this haha.
I should do a little more hacking before posting.
|
|
|
|
 |
|
dominicmilan
|
Post subject: Re: Jailbroken iPhone  Posted: Wed Mar 16, 2011 10:30 pm |
Joined: Wed Mar 16, 2011 10:29 pm Posts: 1
|
brandontreb would you email with me so i can ask some questions about the iphone and see if i could beta test what you have put out. my email is [email protected]
|
|
|
|
 |
|
tekken
|
Post subject: Re: Jailbroken iPhone  Posted: Wed Mar 16, 2011 11:45 pm |
Joined: Wed Mar 16, 2011 11:41 pm Posts: 1
|
|
Hey guys,
im very interested in that thing.
How far did you go till now?
When do you think can you get out first release?
Greets
|
|
|
|
 |
|
brandontreb
|
Post subject: Re: Jailbroken iPhone  Posted: Thu Mar 17, 2011 1:59 pm |
Joined: Sat Mar 12, 2011 8:14 am Posts: 22
|
Hey guys, Just wanted to share my progress. I have now hacked an inpulsenotifier app as a MobileSubstrate plugin and have all notifications being sent to my watch. Here is a pick to show a push notification from Boxcar when i received a Twitter reply  I will have the beta release up in my Cydia repository this weekend.
|
|
|
|
 |
|
Eric
|
Post subject: Re: Jailbroken iPhone  Posted: Thu Mar 17, 2011 2:08 pm |
Joined: Mon Feb 14, 2011 7:07 pm Posts: 172
|
|
That is totally awesome. Can't wait to try it out here... Would you be interested in posting the code on github or somewhere so hackers could help add features to it?
_________________ ---
Lead designer of inPulse
|
|
|
|
 |
|
mooney1980
|
Post subject: Re: Jailbroken iPhone  Posted: Fri Mar 18, 2011 1:39 pm |
Joined: Fri Mar 18, 2011 1:35 pm Posts: 17
|
|
Great job. Can you let me know when you post this in cydia. I was a beta tester for the blackberry app but my company upgraded us all to Iphone so my watch is currently collecting dust. Once on cydia we just load it? Is there any other steps that need to be taken? How about the watch, how do we get it working? Mine still has the last blackberry app on it.
|
|
|
|
 |
|
Darkside
|
Post subject: Re: Jailbroken iPhone  Posted: Mon Mar 21, 2011 9:48 am |
Joined: Fri Feb 25, 2011 9:40 am Posts: 3
|
|
Very excited about this...
brandontreb, Where can we grab a copy of it with instructions?
|
|
|
|
 |
|
brandontreb
|
Post subject: Re: Jailbroken iPhone  Posted: Mon Mar 21, 2011 11:53 am |
Joined: Sat Mar 12, 2011 8:14 am Posts: 22
|
Ok, I have an Alpha (and I mean alpha) version of the inPulse for iOS app ready. Here are the instructions for getting up and running. ** this app has only been tested on the latest version of inPulse's notifications app ** 1. Make sure your iPhone is jailbroken http://lifehacker.com/#!5771943/the-always-up+to+date-guide-to-jailbreaking-your-ios-device2. Add my cydia repo to Cydia http://brandontreb.com/cydia3. Install inPulseNotifier from my source 4. Install Insomnia from Cydia (until I can find a better route, the watch will always need to be connected to your iPhone) 5. Enable Insomnia 6. Go to settings -> inPulseNotifier 7. Add your watch hardware address (all capital letters) (ex: 00:50:C2:79:AA:21) 8. Respring (or reboot) your iPhone Your watch should receive a notification from your iPhone saying that it has been connected. I have not tested on any other devices than my iPhone. Please let me know your results and report any bugs to me. Currently if the watch disconnects from the iPhone, you must respring or restart to get it reconnected. Also, if you are still having issues, try fully restarting both the iPhone AND the watch. Good luck!
Last edited by brandontreb on Mon Mar 21, 2011 1:12 pm, edited 1 time in total.
|
|
|
|
 |
|
mooney1980
|
Post subject: Re: Jailbroken iPhone  Posted: Mon Mar 21, 2011 12:33 pm |
Joined: Fri Mar 18, 2011 1:35 pm Posts: 17
|
|
Thank you but your app will not download. Keep getting this message "the requested modifications cannot be applied due to required dependencies or conflicts that cannot be automatically found or fixed.". What's that mean
|
|
|
|
 |
|
brandontreb
|
Post subject: Re: Jailbroken iPhone  Posted: Mon Mar 21, 2011 12:51 pm |
Joined: Sat Mar 12, 2011 8:14 am Posts: 22
|
|
@mooney1980
Ahh, im a little new to the whole Cydia Repo thing. I made a few changes, please try again.
Brandon
|
|
|
|
 |
|
mooney1980
|
Post subject: Re: Jailbroken iPhone  Posted: Mon Mar 21, 2011 1:20 pm |
Joined: Fri Mar 18, 2011 1:35 pm Posts: 17
|
|
Thanks. It seem to have loaded that time. I don't have my watch with me but when I get home I will test it out. How do I load the newest alert app on the watch. I was a blackberry guy and it was done through the app on the phone before
|
|
|
|
 |
|
brandontreb
|
Post subject: Re: Jailbroken iPhone  Posted: Mon Mar 21, 2011 1:26 pm |
Joined: Sat Mar 12, 2011 8:14 am Posts: 22
|
|
|
|
 |
|
mooney1980
|
Post subject: Re: Jailbroken iPhone  Posted: Mon Mar 21, 2011 2:01 pm |
Joined: Fri Mar 18, 2011 1:35 pm Posts: 17
|
|
Thanks again. I will this a go when I get home and post my findings.
|
|
|
|
 |
|
Johan
|
Post subject: Re: Jailbroken iPhone  Posted: Mon Mar 21, 2011 2:15 pm |
Joined: Fri Mar 04, 2011 8:54 pm Posts: 82
|
|
This is awesome Brandon, now I can tell my boss I want an iPhone. How much battery life do you get out of your watch when it's connected to your iPhone?
_________________
 Get the most out of your watch - http://www.inpulsewatch.com
|
|
|
|
 |
|
brandontreb
|
Post subject: Re: Jailbroken iPhone  Posted: Mon Mar 21, 2011 2:23 pm |
Joined: Sat Mar 12, 2011 8:14 am Posts: 22
|
|
@Johan
Im not sure, haven't had a full day to test. Just completed it this morning. will let you know for sure.
At the moment, it probably just eats battery as I require a persistant connection (as opposed to disconnecting when the iPhone sleeps). I will work on that in the future.
|
|
|
|
 |
|
mooney1980
|
Post subject: Re: Jailbroken iPhone  Posted: Mon Mar 21, 2011 7:40 pm |
Joined: Fri Mar 18, 2011 1:35 pm Posts: 17
|
|
Looks to be working. However I need to update the watch and get the blackberry program off of it. I need to get a bluetooth adapter for my computer first. Thanks man. If you do any updates keep me posted. I wont mind testing them out for ya.
|
|
|
|
 |
|
brandontreb
|
Post subject: Re: Jailbroken iPhone  Posted: Tue Mar 22, 2011 1:33 pm |
Joined: Sat Mar 12, 2011 8:14 am Posts: 22
|
|
So, Im curious. Do the Android and BB apps keep a persistant connection to the watch or do they disconnect when the device sleeps? Reading through the forums, it seems that the batter life of the watch using my ios app is on part with some of the other platforms (~7 hours).
Always on = instant notifications as they appear on the phone + lower battery life Connect-reconnect = wait for notifications (in my case ~ 10 seconds) + longer battery life
What do you guys feel is preferable?
|
|
|
|
 |
|
mooney1980
|
Post subject: Re: Jailbroken iPhone  Posted: Tue Mar 22, 2011 1:58 pm |
Joined: Fri Mar 18, 2011 1:35 pm Posts: 17
|
|
On my bb I was getting 10hrs on a lite day of messaging and around 7 for heavier days. I just purchased a retractable cable that way I can charge were ever.
|
|
|
|
 |
|
mooney1980
|
Post subject: Re: Jailbroken iPhone  Posted: Tue Mar 22, 2011 5:34 pm |
Joined: Fri Mar 18, 2011 1:35 pm Posts: 17
|
|
I would rather have battery life. The less often we have to charge the better off we are.
|
|
|
|
 |
|
Eric
|
Post subject: Re: Jailbroken iPhone  Posted: Tue Mar 22, 2011 10:26 pm |
Joined: Mon Feb 14, 2011 7:07 pm Posts: 172
|
|
@mooney1980, you can use the firmware loaded by your BB with the iPhone app. You don't need to change firmware, just unpair it from your Blackberry.
@brandontreb, this is incredible. I'm extraordinarily happy you were able to hack so well on our platform. We're loading it on our iPhone in the office, super excited!
_________________ ---
Lead designer of inPulse
|
|
|
|
 |
|
mooney1980
|
Post subject: Re: Jailbroken iPhone  Posted: Wed Mar 23, 2011 1:30 am |
Joined: Fri Mar 18, 2011 1:35 pm Posts: 17
|
|
It doesn't seem to pair since the first time. And the clock will not update to the current time.
|
|
|
|
 |
|
mooney1980
|
Post subject: Re: Jailbroken iPhone  Posted: Wed Mar 23, 2011 6:00 am |
Joined: Fri Mar 18, 2011 1:35 pm Posts: 17
|
|
Can you tell me the latest firmware version for the watch that way I can check the info screen on the watch and make sure it's ok. I have not updated in 3 weeks or so
|
|
|
|
 |
|
brandontreb
|
Post subject: Re: Jailbroken iPhone  Posted: Wed Mar 23, 2011 6:29 am |
Joined: Sat Mar 12, 2011 8:14 am Posts: 22
|
|
@mooney1980
Yeah, I had an issue with it not pairing right away. If that happens, just restart both devices. Like I said, this thing is still considered alpha and has plenty of bugs to iron out.
Also, open up Cydia, you should see that there is an update to the app. I made it so it sends the time update along with the initial connection message. I found that this was required after my watch battery died and reset the time :/
Have you gotten it to successfully send a message from your iPhone to the watch?
|
|
|
|
 |
|
mooney1980
|
Post subject: Re: Jailbroken iPhone  Posted: Wed Mar 23, 2011 10:37 am |
Joined: Fri Mar 18, 2011 1:35 pm Posts: 17
|
|
Up and running now. I'm noticing that Bluetooth option in settings switches from unavailable to off. And keeps flashing between the two. Does this mean iPhone only supports one at a time? I know my blackbery was handling my watch and a headset.
|
|
|
|
 |
|
brandontreb
|
Post subject: Re: Jailbroken iPhone  Posted: Wed Mar 23, 2011 1:21 pm |
Joined: Sat Mar 12, 2011 8:14 am Posts: 22
|
|
@mooney1980
Glad you were able to get it running. The answer is yes, the iPhone won't allow BTStack AND the built-in BT to run at the same time.
BB was able to handle both bc the BB allows the watch to connect natively to the device through the native interface. Since Apple locks down it's own BT, separate code must invoke the hardware (BTStack) in order to connect to non "Apple approved" devices (like the inpulseWatch).
|
|
|
|
 |
|
|
 |
|
 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|