It is currently Wed Jul 06, 2011 7:39 pm

All times are UTC - 8 hours




 Page 1 of 1 [ 5 posts ] 
Author Message
 Post subject: set_time.py?
PostPosted: Tue Apr 19, 2011 4:06 pm 

Joined: Mon Mar 21, 2011 8:09 am
Posts: 24
SDK 1.1.2 yields this:
Traceback (most recent call last):
  File "tools/set_time.py", line 10, in <module>
    if len(args) != 1:
NameError: name 'args' is not define


I'm probably goofing something in the command:

python tools/set_time.py 00:50:C2:79:F0:8D


thanks ;-)
N



_________________
Yet another seasonal album - available NOW!...Warning: Extreme Wackiness:
Image
Worst Kitchen Direct

AmazonMP3

iTunes
Offline
 Profile  
 
 Post subject: Re: set_time.py?
PostPosted: Tue Apr 19, 2011 5:33 pm 
User avatar

Joined: Mon Feb 14, 2011 7:07 pm
Posts: 172
Yeah, that's our bad. It got mixed up recently. Here is the updated file, I'll modify the .zip!

set_time.py
import bt_python.pulseprotocol as proto
from bt_python.bt_comm import BT_Socket
from optparse import OptionParser
import sys


print 'Usage: python set_time.py BD_ADDR'
print 'Where BT_ADDR in form 00:50:c2:xx:xx:xx'


sock = BT_Socket(sys.argv[1], 0x1001)
print 'Setting current time on your watch'
sock.send(proto.cmd_send_time())
sock.close()




_________________
---

Lead designer of inPulse
Offline
 Profile  
 
 Post subject: Re: set_time.py?
PostPosted: Fri May 13, 2011 7:53 pm 

Joined: Fri May 13, 2011 7:43 pm
Posts: 2
Can't get my time set, even with SDK 114 and the script here. Here's what I get...


Waiting for a connection...
Got a connection
Parsing Command 32
Buffer of length 12
Trying to connect to btl2cap://0050c279ecf9:1001;ReceiveMTU= ... mitMTU=250
Parsing Command 0
Buffer of length 54
Sent 54B of bluetooth data
Parsing Command 48
Buffer of length 1
Exception while sending ack: java.net.SocketException: Socket closed
Waiting for a connection...


Offline
 Profile  
 
 Post subject: Re: set_time.py?
PostPosted: Sun May 15, 2011 5:45 pm 

Joined: Wed Apr 06, 2011 8:53 pm
Posts: 32
MarqueIV, perhaps it's just the bluetooth being moody? I have this problem sometimes, I need to place the watch near the bluetooth antenna and sometimes try several times.


Offline
 Profile  
 
 Post subject: Re: set_time.py?
PostPosted: Tue May 17, 2011 5:49 am 
User avatar

Joined: Mon Feb 14, 2011 7:07 pm
Posts: 172
MarqueIV, were you able to load an app on your watch with the same setup? is it just set_time.py that is giving trouble?



_________________
---

Lead designer of inPulse
Offline
 Profile  
 
Display posts from previous:  Sort by  
 Page 1 of 1 [ 5 posts ] 

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 1 guest


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

Search for:
Jump to: