-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Seria Transport freezes infinitly on windows 10 #18
Comments
It is not freezed, it is waiting for you to send instructions. Try sending a |
Thank you for your answer,
And here is the code : import logging
import serial
from libpebble2.communication import PebbleConnection
from libpebble2.communication.transports.serial import SerialTransport
from libpebble2.protocol import *
logging.basicConfig(level=logging.DEBUG)
pebble = PebbleConnection(
SerialTransport('COM10'),
log_protocol_level=logging.DEBUG,
log_packet_level=logging.DEBUG
)
pebble.connect()
pebble.run_async()
print(pebble.watch_info.serial)
pebble.send_packet(PingPong(message=Ping(), cookie=53))
pebble.read_from_endpoint(PingPong)
print(pebble.watch_info.serial) |
Why don't you try print results from endpoint reading? You are just printing |
Yes, I tried it but it is breaking before this. Actually, the freeze occurs when the I've heard about Windows 10 problems with bluetooth COM ports, it might be something like that. |
Could you provide some "breaking" code? |
I'm sorry I don't understand what you mean by "breaking code" ? |
Can you post code that actually "doesn't work" |
Oh ok thank you for the explenation, import logging
import serial
from libpebble2.communication import PebbleConnection
from libpebble2.communication.transports.serial import SerialTransport
from libpebble2.protocol import *
logging.basicConfig(level=logging.DEBUG)
pebble = PebbleConnection(
SerialTransport('COM10'),
log_protocol_level=logging.DEBUG,
log_packet_level=logging.DEBUG
)
pebble.connect()
pebble.run_async() # The code freezes here
print(pebble.watch_info.serial)
pebble.send_packet(PingPong(message=Ping(), cookie=53))
pebble.read_from_endpoint(PingPong)
print(pebble.watch_info.serial) |
Hi pebblers,
I'm currently trying to get libpebble2 running on windows 10. I'm using the serial transport to communicate with my watch.
When I call
pebble.run_async()
the code doesn't do anything and never stop, without displaying anything.I first thought that the problem was coming from python 3.5 but I tried it too on python 2.7 and it didn't work.
I am on windows 10 and here is my code :
Thank you for your help !
The text was updated successfully, but these errors were encountered: