RadioReference on Facebook   RadioReference on Twitter   RadioReference Blog
 

Go Back   The RadioReference.com Forums > Software > Trunking Control Channel Decoding


Trunking Control Channel Decoding For discussion of installation, setup, configuration, and use of the Trunker / Unitrunker digital decoding utilities (for decoding Trunking control channels)

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-06-2012, 3:06 PM
Member
  RadioReference Database Admininstrator
Database Admin
Amateur Radio Operator
Amateur Radio
 
Join Date: Dec 2002
Location: Hagerstown, MD
Posts: 1,656
Question P25 Opcodes for Login & Logout

I see that login opcodes are 2C and AC prefix and that logout opcodes are 2F and AF. I am curious as to why there are two of these for login/logout and not just one like the other opcodes. If I am writing software to decode them, should I differentiate between them or just decode them as if they are the same? Thanks!

Examples:

Here are two separate units logging in with 2C and AC:
2C
00 02 77 27 FB 17 27 FB 17 F9 DE -- 2620183 - Unit Registration
AC
00 02 77 27 FC 23 27 FC 23 73 66 -- 2620451 - Unit Registration

Here is the same unit logging out with 2F and then AF:
2F
00 00 BE E0 02 77 27 FB 15 02 A5 -- 2620181 - De-Registration
AF
00 00 BE E0 02 77 27 FB 15 E6 91 -- 2620181 - De-Registration

Why two opcodes for each function?
Reply With Quote
Sponsored links
  #2 (permalink)  
Old 08-06-2012, 4:53 PM
Jay911's Avatar
Member
  Audio Feed Provider
Audio Feed Provider
Amateur Radio Operator
Amateur Radio
 
Join Date: Feb 2002
Location: Bragg Creek, Alberta
Posts: 5,155
Send a message via Skype™ to Jay911
Default

The ones beginning with "A" indicate that the TSBK being sent is the last block. The opcode is actually only the last six bits of the first hex pair, not all eight. The first bit indicates whether this is the "last block" or not - as told to me by Rick Parrish (Unitrunker), some systems send TSBKs in blocks of 3 or so - and the 2nd bit indicates whether the opcode is in Protected (encrypted) mode or not.

Get the binary representation of the two-digit hex value and take only the rightmost six bits. Or, check to see if the decimal value of the two-digit hex value is >127, and if it is, subtract dec 128.
Reply With Quote
  #3 (permalink)  
Old 08-06-2012, 10:09 PM
Seņor Member
  RadioReference Database Admininstrator
Database Admin
 
Join Date: Dec 2001
Location: Texas
Posts: 5,414
Default

Gill - grab a copy of the TIA 102 standards.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 11:47 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
All information here is Copyright 2012 by RadioReference.com LLC and Lindsay C. Blanton III.Ad Management by RedTyger
Copyright 2011 by RadioReference.com LLC Privacy Policy  |  Terms and Conditions