Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Timestamp #22

Closed
Tyoluyi opened this issue Jul 22, 2019 · 8 comments
Closed

Timestamp #22

Tyoluyi opened this issue Jul 22, 2019 · 8 comments
Labels

Comments

@Tyoluyi
Copy link

Tyoluyi commented Jul 22, 2019

Excuse me, could I ask how to export the timestamp info for each message through your flow chart? Thank you

@mhostetter
Copy link
Owner

Can you elaborate on exactly what you'd like?

If you just want the timestamps to print for each message, you can connect a Message Debug block to the ADS-B Decoder's decoded output. You should also set Print Level to None on the decoder. See below:

image

***********************************
* MESSAGE DEBUG PRINT PDU VERBOSE *
((vertical_rate . -128) (speed . 418.403) (datetime . 2019-07-23 02:10:38 UTC)
(latitude . 38.9556) (snr . 22.1123) (callsign . ENY3980 ) (icao . abb282)
(heading . -137.809) (longitude . -77.4204) (altitude . 36000) (timestamp . 1563847838)
(df . 17) (num_msgs . 12))
pdu_length = 112
contents = 
0000: 01 00 00 00 01 01 00 01 01 00 01 00 01 00 01 01 
0010: 01 00 01 01 00 00 01 00 01 00 00 00 00 00 01 00 
0020: 01 00 00 01 01 00 00 01 00 00 00 00 01 01 00 01 
0030: 00 00 01 01 00 01 01 01 01 00 01 00 00 00 01 01 
0040: 00 01 00 01 01 00 00 00 00 00 00 00 01 01 00 00 
0050: 00 01 00 00 01 00 00 00 01 00 01 00 01 01 01 00 
0060: 01 00 00 00 01 01 00 00 00 01 00 01 00 01 01 00 
***********************************

If you would like the timestamps/datetimes to display in Verbose printing mode, that's something that could be easily added.

@Tyoluyi
Copy link
Author

Tyoluyi commented Jul 23, 2019 via email

@mhostetter
Copy link
Owner

For performing TDOA geolocation, you will need better time accuracy. Changes to gr-adsb are needed for that. You should probably timestamp the signal time of arrival in the ADS-B Framer. And the framer should probably determine fine time referenced to the USRP time tags (from the USRP's GPSDO) and not UNIX system time. You will need microsecond, or nanosecond, time accuracy to get good geolocation.

@Tyoluyi
Copy link
Author

Tyoluyi commented Jul 23, 2019

Thank you for your instruction, I'll carry out the change. Moreover, could I ask whether this ZMP PUB message sink can be used for message transmission like transmit from this computer to another computer? Sorry for too many problems. I'm a green hand. Thank you

@mhostetter
Copy link
Owner

Yes, you can PUB/SUB across machines. You should set the ZMQ PUB Message Sink block's Address field to tcp:https://*:5001. Let me know if that doesn't work.

@mhostetter
Copy link
Owner

I added this feature (with time referenced to the flowgraph's initial Unix timestamp) in #26. It's not nanosecond accurate, but is significantly better than before. Please check it out and let me know your thoughts.

@Tyoluyi
Copy link
Author

Tyoluyi commented Jul 26, 2019 via email

@mhostetter
Copy link
Owner

You're right. That's probably a better place to put it. In either block, the way I have it implemented currently is the start time of the flowgraph is saved (from current UNIX timestamp) and then the burst time is determined by the SOB (start of burst) sample, at the given sample rate. Both blocks should produce the same answer. I guess I put it in demod.py because that is where the demodulated burst metadata is produced and the PDU is created. framer.py just adds a SOB tag to the sample stream.

Repository owner locked and limited conversation to collaborators Sep 10, 2021

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
Projects
None yet
Development

No branches or pull requests

2 participants