forum.getinpulse.com
http://www.getinpulse.com/hack/forum/

set_time.py?
http://www.getinpulse.com/hack/forum/viewtopic.php?f=6&t=242
Page 1 of 1

Author:  jazzbassNick [ Tue Apr 19, 2011 4:06 pm ]
Post subject:  set_time.py?

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

Author:  Eric [ Tue Apr 19, 2011 5:33 pm ]
Post subject:  Re: set_time.py?

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()


Author:  MarqueIV [ Fri May 13, 2011 7:53 pm ]
Post subject:  Re: set_time.py?

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...

Author:  number3 [ Sun May 15, 2011 5:45 pm ]
Post subject:  Re: set_time.py?

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.

Author:  Eric [ Tue May 17, 2011 5:49 am ]
Post subject:  Re: set_time.py?

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?

Page 1 of 1 All times are UTC - 8 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/