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

Error Correction for Unit/Source ID in LCW #39

Closed
robotastic opened this issue Jun 8, 2014 · 3 comments
Closed

Error Correction for Unit/Source ID in LCW #39

robotastic opened this issue Jun 8, 2014 · 3 comments

Comments

@robotastic
Copy link

Is the Unit ID / Source ID covered by any error correction or detection? I am getting some really weird values for Source. I have been logging them, and I am getting a bunch of Source IDs that are high and only show up in a single LCW message.

Is there another P25 Message that also contains Source ID and is covered by error correction or detection?

@EdFuentetaja
Copy link
Contributor

Yes, the whole LCW is protected by Hamming and Reed-Solomon codes. If no error is detected the source ID is likely correct.

LCW shows up in "LDU1" (voice) and "TDU with link control info" units.

Not sure which field to refer by "Unit ID," if you mean the "data unit ID" on the network identifier (NI), yes, it's also error protected.

Kind regards,

Ed

@robotastic
Copy link
Author

That is great! I was just referring to the Source ID, I had also seen it
called Unit ID other places, the radio id of the unit that is transmitting.

I am capturing the Source that is generated at line 149 of p25_lcw.c . If I
pass in irrecoverable_errors, will that tell me if there was a bad enough
error that I should probably ignore the Source ID from this message?

Thanks again for adding in all the error correction!

On Sun, Jun 8, 2014 at 11:41 PM, EdFuentetaja notifications@github.com
wrote:

Yes, the whole LCW is protected by Hamming and Reed-Solomon codes. If no
error is detected the source ID is likely correct.

LCW shows up in "LDU1" (voice) and "TDU with link control info" units.

Not sure which field to refer by "Unit ID," if you mean the "data unit ID"
on the network identifier (NI), yes, it's also error protected.

Kind regards,

Ed


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

@robotastic
Copy link
Author

To answer my own question - it looks like you can use irrecoverable_error to determine whether the Source ID is good or not.

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

No branches or pull requests

2 participants