-
Notifications
You must be signed in to change notification settings - Fork 520
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
RFE: tos-diagprint - decoding printf and diag messages in python #259
base: master
Are you sure you want to change the base?
Conversation
tos-diagprint program displays "printf" (see PrintfC.nc, AM_PRINTF_MSG=0x64) and "diag" (see DiagMsgC.nc, AM_DIAG_MSG=0xB1) messages (like PrintfMsg.java + DiagMsg.java).
Should we keep this file updated: with these message ids? |
The most basic apps are using AM ids from the reserved pool (e.g. RadioCountToLeds: 6). But it would be great to actually have some reserved/free pool, I had bugs because of this. But this probably deserves a new ticket. @mcerveny I like this tool, but could you add the support of the usual "-comm |
The arguments are analyzed in https://github.com/tinyos/tinyos-main/blob/master/support/sdk/python/tos.py#L436. The same syntax (without -comm and encoded connectivity in argv[1]) is used in tos-deluge. |
Oh, I didn't realize, so it's based on tos.py. I'm not sure if it's a good idea to add more dependency to it: The "other" SDK seems to be the official, as far as I know, tos.py only used by deluge. |
Hello. On Wed, 2 Apr 2014, András Bíró wrote:
Hmmm.
Is there some documentation for (official) python SDK ? M.C> |
These are very good questions. Having two SDKs for the same language is confusing, one of them should be at least marked as deprecated, but the best thing would be to remove it. But I'm not really familiar with python, I just did some stuff in it for fun. So there might be very good reasons to remove the MoteIF based SDK, and add mig support to tos.py, I don't know. |
Python always was a bit of an undocumented step-child, for Deluge support. mig support is pretty critical. Serial forwarders end up being pretty important if you want to do IP-based communication/forwarding. I think the basic idea was that tos.py was for Deluge and tools, while MoteIF was for applications. Not sure what we should do here... |
tos-diagprint program displays "printf" (see PrintfC.nc, AM_PRINTF_MSG=0x64)
and "diag" (see DiagMsgC.nc, AM_DIAG_MSG=0xB1) messages
(like PrintfMsg.java + DiagMsg.java).