| forum.getinpulse.com http://www.getinpulse.com/hack/forum/ |
|
| Jailbroken iPhone http://www.getinpulse.com/hack/forum/viewtopic.php?f=7&t=104 |
Page 1 of 2 |
| Author: | brandontreb [ Sat Mar 12, 2011 8:19 am ] |
| Post subject: | Jailbroken iPhone |
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! |
|
| Author: | Eric [ Sun Mar 13, 2011 5:19 pm ] |
| Post subject: | Re: Jailbroken iPhone |
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. |
|
| Author: | brandontreb [ Sun Mar 13, 2011 7:35 pm ] |
| Post subject: | Re: Jailbroken iPhone |
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 |
|
| Author: | brandontreb [ Mon Mar 14, 2011 6:57 pm ] |
| Post subject: | Re: Jailbroken iPhone |
Hey Eric, I wanted to follow up and see if you guys received my email. Thanks |
|
| Author: | brandontreb [ Tue Mar 15, 2011 6:56 am ] |
| Post subject: | Re: Jailbroken iPhone |
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. Code: Select all len = store_inpulse_string((char*)&buffer[pos], "Brandon"); pos += len;Any ideas? |
|
| Author: | brandontreb [ Tue Mar 15, 2011 7:41 am ] |
| Post subject: | Re: Jailbroken iPhone |
Actually, I just solved this haha. I should do a little more hacking before posting. |
|
| Author: | dominicmilan [ Wed Mar 16, 2011 10:30 pm ] |
| Post subject: | Re: Jailbroken iPhone |
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] |
|
| Author: | tekken [ Wed Mar 16, 2011 11:45 pm ] |
| Post subject: | Re: Jailbroken iPhone |
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 |
|
| Author: | brandontreb [ Thu Mar 17, 2011 1:59 pm ] |
| Post subject: | Re: Jailbroken iPhone |
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. |
|
| Author: | Eric [ Thu Mar 17, 2011 2:08 pm ] |
| Post subject: | Re: Jailbroken iPhone |
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? |
|
| Author: | mooney1980 [ Fri Mar 18, 2011 1:39 pm ] |
| Post subject: | Re: Jailbroken iPhone |
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. |
|
| Author: | Darkside [ Mon Mar 21, 2011 9:48 am ] |
| Post subject: | Re: Jailbroken iPhone |
Very excited about this... brandontreb, Where can we grab a copy of it with instructions? |
|
| Author: | brandontreb [ Mon Mar 21, 2011 11:53 am ] |
| Post subject: | Re: Jailbroken iPhone |
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-device 2. Add my cydia repo to Cydia http://brandontreb.com/cydia 3. 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! |
|
| Author: | mooney1980 [ Mon Mar 21, 2011 12:33 pm ] |
| Post subject: | Re: Jailbroken iPhone |
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 |
|
| Author: | brandontreb [ Mon Mar 21, 2011 12:51 pm ] |
| Post subject: | Re: Jailbroken iPhone |
@mooney1980 Ahh, im a little new to the whole Cydia Repo thing. I made a few changes, please try again. Brandon |
|
| Author: | mooney1980 [ Mon Mar 21, 2011 1:20 pm ] |
| Post subject: | Re: Jailbroken iPhone |
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 |
|
| Author: | brandontreb [ Mon Mar 21, 2011 1:26 pm ] |
| Post subject: | Re: Jailbroken iPhone |
For Mac http://www.getinpulse.com/guide/mac/ For Windows http://www.getinpulse.com/guide/windows/ Once you are able to send apps to the device, do as Eric said above. "I'd suggest loading the most recent version of our main notifications app using the compileandload.py -d 00:50:xx:etc -n command." They are super helpful if you have problems. |
|
| Author: | mooney1980 [ Mon Mar 21, 2011 2:01 pm ] |
| Post subject: | Re: Jailbroken iPhone |
Thanks again. I will this a go when I get home and post my findings. |
|
| Author: | Johan [ Mon Mar 21, 2011 2:15 pm ] |
| Post subject: | Re: Jailbroken iPhone |
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? |
|
| Author: | brandontreb [ Mon Mar 21, 2011 2:23 pm ] |
| Post subject: | Re: Jailbroken iPhone |
@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. |
|
| Author: | mooney1980 [ Mon Mar 21, 2011 7:40 pm ] |
| Post subject: | Re: Jailbroken iPhone |
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. |
|
| Author: | brandontreb [ Tue Mar 22, 2011 1:33 pm ] |
| Post subject: | Re: Jailbroken iPhone |
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? |
|
| Author: | mooney1980 [ Tue Mar 22, 2011 1:58 pm ] |
| Post subject: | Re: Jailbroken iPhone |
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. |
|
| Author: | mooney1980 [ Tue Mar 22, 2011 5:34 pm ] |
| Post subject: | Re: Jailbroken iPhone |
I would rather have battery life. The less often we have to charge the better off we are. |
|
| Author: | Eric [ Tue Mar 22, 2011 10:26 pm ] |
| Post subject: | Re: Jailbroken iPhone |
@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! |
|
| Author: | mooney1980 [ Wed Mar 23, 2011 1:30 am ] |
| Post subject: | Re: Jailbroken iPhone |
It doesn't seem to pair since the first time. And the clock will not update to the current time. |
|
| Author: | mooney1980 [ Wed Mar 23, 2011 6:00 am ] |
| Post subject: | Re: Jailbroken iPhone |
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 |
|
| Author: | brandontreb [ Wed Mar 23, 2011 6:29 am ] |
| Post subject: | Re: Jailbroken iPhone |
@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? |
|
| Author: | mooney1980 [ Wed Mar 23, 2011 10:37 am ] |
| Post subject: | Re: Jailbroken iPhone |
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. |
|
| Author: | brandontreb [ Wed Mar 23, 2011 1:21 pm ] |
| Post subject: | Re: Jailbroken iPhone |
@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). |
|
| Page 1 of 2 | All times are UTC - 8 hours |
| Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |
|