Skip to content
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

Fixes and some cleanup in the python tools #335

Merged
merged 10 commits into from
Apr 7, 2015

Conversation

tim-ist
Copy link
Contributor

@tim-ist tim-ist commented Apr 1, 2015

Fixes several problems with the TinyOS Python tools.

  • USB and socket disconnection is now detected.
  • Busy waiting loops (draining laptop battery) are removed.
  • Fixed an issue on MacOS X related to the case-insensitive file system.
  • Removed (not needed) code preventing binding with PyQT4.
  • Other small fixes.

The code has been tested under high load on MacOS X (Maverics) and Debian GNU/Linux 7.8 .

tim-ist added 10 commits March 31, 2015 21:38
This piece of code is a library and it is not good for a library to care
about catching CTRL-C. This should be done in the application (if needed).
In fact this feature prevented integrating this code with PyQT4.
Otherwise it is imported instead of the "serial" package
on case-insensitive filesystems.
The call to self.cancel() sets isDone to True.
The busy waiting loop drained quickly the laptop battery.
It is more user-friendly to detect and report if a device
has been disconnected (also freeing up the resources).
@tim-ist
Copy link
Contributor Author

tim-ist commented Apr 1, 2015

Might be related to #282 and #259 .

@andrasbiro
Copy link
Member

This seems impressive, and it's great that you reviewed the usually neglected python sdk.
Is someone responsible for the python stuff? Doesn anyone actively work with it?
If not, we probably should merge this. Any thoughts?

(the issues you linked are not related, that's a completely different sdk see the discussion in #259 - I think the best would be to rewrite the deluge tools and just drop the tos.py)

@gnawali
Copy link
Member

gnawali commented Apr 1, 2015

lets merge

@cire831
Copy link
Member

cire831 commented Apr 4, 2015

merge

On Wed, Apr 1, 2015 at 9:52 AM, gnawali [email protected] wrote:

lets merge


Reply to this email directly or view it on GitHub
#335 (comment).

Eric B. Decker
Senior (over 50 :-) Researcher

andrasbiro added a commit that referenced this pull request Apr 7, 2015
Fixes and some cleanup in the python tools
@andrasbiro andrasbiro merged commit 1489a03 into tinyos:master Apr 7, 2015
@tim-ist tim-ist deleted the python-fixes branch April 7, 2015 18:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants