diaggrok 2026.11.8__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (266) hide show
  1. diaggrok-2026.11.8/LICENSE +201 -0
  2. diaggrok-2026.11.8/PKG-INFO +160 -0
  3. diaggrok-2026.11.8/README.md +132 -0
  4. diaggrok-2026.11.8/pyproject.toml +47 -0
  5. diaggrok-2026.11.8/setup.cfg +4 -0
  6. diaggrok-2026.11.8/src/diaggrok/__init__.py +58 -0
  7. diaggrok-2026.11.8/src/diaggrok/_version.py +1 -0
  8. diaggrok-2026.11.8/src/diaggrok/codes.py +441 -0
  9. diaggrok-2026.11.8/src/diaggrok/dlf.py +756 -0
  10. diaggrok-2026.11.8/src/diaggrok/frame.py +75 -0
  11. diaggrok-2026.11.8/src/diaggrok/gnss_gate.py +417 -0
  12. diaggrok-2026.11.8/src/diaggrok/hdlc.py +2104 -0
  13. diaggrok-2026.11.8/src/diaggrok/inventory.py +310 -0
  14. diaggrok-2026.11.8/src/diaggrok/observation.py +884 -0
  15. diaggrok-2026.11.8/src/diaggrok/parsers/__init__.py +43 -0
  16. diaggrok-2026.11.8/src/diaggrok/parsers/_dpl_helpers.py +399 -0
  17. diaggrok-2026.11.8/src/diaggrok/parsers/_gnss_meas118_helpers.py +327 -0
  18. diaggrok-2026.11.8/src/diaggrok/parsers/_gsm_rr_l3.py +744 -0
  19. diaggrok-2026.11.8/src/diaggrok/parsers/_ipa_ring_dump.py +124 -0
  20. diaggrok-2026.11.8/src/diaggrok/parsers/_ipa_rules.py +455 -0
  21. diaggrok-2026.11.8/src/diaggrok/parsers/_lte_nas_ota_helpers.py +672 -0
  22. diaggrok-2026.11.8/src/diaggrok/parsers/_lte_pdcp_helpers.py +124 -0
  23. diaggrok-2026.11.8/src/diaggrok/parsers/_nas_l3.py +2154 -0
  24. diaggrok-2026.11.8/src/diaggrok/parsers/_nr5g_nas_ota_helpers.py +1550 -0
  25. diaggrok-2026.11.8/src/diaggrok/parsers/_nr_acq_b9be_b9bf.py +91 -0
  26. diaggrok-2026.11.8/src/diaggrok/parsers/_pdsm_client_ids.py +30 -0
  27. diaggrok-2026.11.8/src/diaggrok/parsers/_short_form_4b.py +77 -0
  28. diaggrok-2026.11.8/src/diaggrok/parsers/_v0_tlv.py +116 -0
  29. diaggrok-2026.11.8/src/diaggrok/parsers/asn1_helpers.py +153 -0
  30. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x10ba.py +197 -0
  31. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x117e.py +289 -0
  32. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x11eb.py +145 -0
  33. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x1350.py +364 -0
  34. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x1375.py +729 -0
  35. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x1377.py +171 -0
  36. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x137a.py +112 -0
  37. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x1383.py +393 -0
  38. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x1384.py +959 -0
  39. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x13c4.py +274 -0
  40. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x13c6.py +246 -0
  41. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x13c7.py +412 -0
  42. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x1449.py +295 -0
  43. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x1455.py +123 -0
  44. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x1456.py +142 -0
  45. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x1457.py +197 -0
  46. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x1458.py +188 -0
  47. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x145e.py +221 -0
  48. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x1476.py +1716 -0
  49. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x1477.py +312 -0
  50. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x1478.py +411 -0
  51. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x1479.py +369 -0
  52. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x147b.py +427 -0
  53. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x147c.py +798 -0
  54. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x147d.py +803 -0
  55. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x147e.py +465 -0
  56. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x1480.py +376 -0
  57. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x1482.py +488 -0
  58. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x1486.py +232 -0
  59. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x1488.py +431 -0
  60. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x148a.py +339 -0
  61. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x148e.py +220 -0
  62. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x1490.py +185 -0
  63. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x1494.py +496 -0
  64. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x14a6.py +353 -0
  65. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x14b0.py +278 -0
  66. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x14ce.py +251 -0
  67. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x14d8.py +824 -0
  68. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x14de.py +844 -0
  69. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x14e1.py +428 -0
  70. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x14fd.py +672 -0
  71. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x1516.py +415 -0
  72. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x1526.py +514 -0
  73. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x1544.py +1587 -0
  74. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x156e.py +329 -0
  75. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x1587.py +418 -0
  76. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x1589.py +155 -0
  77. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x158c.py +234 -0
  78. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x15b1.py +144 -0
  79. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x15b2.py +376 -0
  80. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x15bd.py +940 -0
  81. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x1634.py +237 -0
  82. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x1636.py +261 -0
  83. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x163d.py +420 -0
  84. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x1646.py +446 -0
  85. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x1755.py +187 -0
  86. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x1756.py +486 -0
  87. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x1807.py +583 -0
  88. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x1832.py +203 -0
  89. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x1837.py +272 -0
  90. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x1843.py +403 -0
  91. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x184e.py +325 -0
  92. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x1850.py +187 -0
  93. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x1851.py +156 -0
  94. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x1852.py +152 -0
  95. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x1855.py +265 -0
  96. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x1856.py +184 -0
  97. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x1859.py +220 -0
  98. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x1874.py +1200 -0
  99. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x187b.py +234 -0
  100. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x1885.py +247 -0
  101. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x1886.py +784 -0
  102. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x188b.py +674 -0
  103. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x1893.py +225 -0
  104. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x1899.py +206 -0
  105. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x18ab.py +766 -0
  106. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x18ac.py +619 -0
  107. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x18ae.py +593 -0
  108. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x18e8.py +223 -0
  109. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x18f5.py +356 -0
  110. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x18f8.py +304 -0
  111. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x192a.py +474 -0
  112. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x196e.py +143 -0
  113. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x197f.py +265 -0
  114. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x1980.py +203 -0
  115. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x19de.py +605 -0
  116. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x19eb.py +399 -0
  117. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x1c0d.py +222 -0
  118. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x1c46.py +217 -0
  119. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x1c53.py +168 -0
  120. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x1c60.py +308 -0
  121. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x1c6c.py +400 -0
  122. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x1c7c.py +1490 -0
  123. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x1c8f.py +619 -0
  124. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x1c90.py +238 -0
  125. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x1cb2.py +281 -0
  126. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x1cc6.py +223 -0
  127. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x1cc8.py +296 -0
  128. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x1ccb.py +175 -0
  129. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x1ccc.py +181 -0
  130. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x1ce1.py +176 -0
  131. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x1d15.py +298 -0
  132. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x1d20.py +235 -0
  133. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x1d23.py +168 -0
  134. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x1d2e.py +384 -0
  135. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x1d36.py +183 -0
  136. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x4177.py +478 -0
  137. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x4179.py +597 -0
  138. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x5065.py +187 -0
  139. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x5066.py +238 -0
  140. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x506a.py +263 -0
  141. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x506c.py +240 -0
  142. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x5071.py +171 -0
  143. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x507a.py +104 -0
  144. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x507b.py +124 -0
  145. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x512f.py +207 -0
  146. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x7001.py +517 -0
  147. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x7150.py +159 -0
  148. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x7153.py +165 -0
  149. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x7155.py +255 -0
  150. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x7156.py +113 -0
  151. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0x7160.py +277 -0
  152. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0xb061.py +500 -0
  153. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0xb062.py +525 -0
  154. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0xb063.py +590 -0
  155. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0xb064.py +356 -0
  156. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0xb0a3.py +72 -0
  157. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0xb0a5.py +235 -0
  158. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0xb0b3.py +56 -0
  159. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0xb0b5.py +280 -0
  160. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0xb0c0.py +1150 -0
  161. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0xb0c1.py +197 -0
  162. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0xb0c2.py +241 -0
  163. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0xb0cd.py +464 -0
  164. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0xb0d2.py +247 -0
  165. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0xb0e1.py +223 -0
  166. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0xb0e2.py +78 -0
  167. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0xb0e3.py +65 -0
  168. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0xb0ea.py +208 -0
  169. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0xb0eb.py +255 -0
  170. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0xb0ec.py +102 -0
  171. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0xb0ed.py +108 -0
  172. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0xb0ee.py +266 -0
  173. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0xb114.py +369 -0
  174. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0xb115.py +721 -0
  175. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0xb116.py +239 -0
  176. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0xb11c.py +301 -0
  177. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0xb136.py +376 -0
  178. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0xb141.py +241 -0
  179. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0xb167.py +215 -0
  180. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0xb168.py +197 -0
  181. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0xb169.py +193 -0
  182. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0xb16a.py +145 -0
  183. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0xb176.py +459 -0
  184. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0xb17c.py +238 -0
  185. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0xb17e.py +341 -0
  186. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0xb17f.py +417 -0
  187. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0xb180.py +489 -0
  188. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0xb181.py +294 -0
  189. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0xb183.py +434 -0
  190. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0xb18b.py +252 -0
  191. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0xb18e.py +267 -0
  192. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0xb18f.py +319 -0
  193. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0xb192.py +575 -0
  194. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0xb193.py +1552 -0
  195. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0xb195.py +513 -0
  196. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0xb196.py +409 -0
  197. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0xb197.py +279 -0
  198. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0xb1a7.py +348 -0
  199. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0xb1c5.py +312 -0
  200. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0xb1f5.py +445 -0
  201. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0xb368.py +176 -0
  202. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0xb800.py +74 -0
  203. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0xb801.py +59 -0
  204. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0xb808.py +55 -0
  205. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0xb809.py +57 -0
  206. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0xb80a.py +113 -0
  207. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0xb80b.py +100 -0
  208. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0xb80c.py +240 -0
  209. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0xb814.py +95 -0
  210. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0xb821.py +1277 -0
  211. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0xb822.py +219 -0
  212. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0xb823.py +361 -0
  213. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0xb825.py +576 -0
  214. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0xb826.py +309 -0
  215. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0xb88a.py +348 -0
  216. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0xb8b5.py +415 -0
  217. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0xb8c0.py +244 -0
  218. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0xb8c5.py +381 -0
  219. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0xb8c8.py +177 -0
  220. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0xb8c9.py +259 -0
  221. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0xb8cb.py +330 -0
  222. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0xb8dd.py +253 -0
  223. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0xb8fd.py +189 -0
  224. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0xb8ff.py +320 -0
  225. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0xb97f.py +1040 -0
  226. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0xb9a6.py +435 -0
  227. diaggrok-2026.11.8/src/diaggrok/parsers/diag_0xb9b9.py +237 -0
  228. diaggrok-2026.11.8/src/diaggrok/parsers/gnss_helpers.py +30 -0
  229. diaggrok-2026.11.8/src/diaggrok/parsers/lte_nas_emm.py +1091 -0
  230. diaggrok-2026.11.8/src/diaggrok/parsers/lte_rrc_meas_report.py +329 -0
  231. diaggrok-2026.11.8/src/diaggrok/parsers/lte_rrc_reconfig.py +1091 -0
  232. diaggrok-2026.11.8/src/diaggrok/parsers/lte_rrc_sib.py +151 -0
  233. diaggrok-2026.11.8/src/diaggrok/parsers/lte_rrc_sib16.py +170 -0
  234. diaggrok-2026.11.8/src/diaggrok/parsers/lte_rrc_sib24.py +276 -0
  235. diaggrok-2026.11.8/src/diaggrok/parsers/lte_rrc_sib6.py +295 -0
  236. diaggrok-2026.11.8/src/diaggrok/parsers/lte_rrc_sib7.py +396 -0
  237. diaggrok-2026.11.8/src/diaggrok/parsers/lte_rrc_sib8.py +182 -0
  238. diaggrok-2026.11.8/src/diaggrok/parsers/lte_rrc_sib9.py +175 -0
  239. diaggrok-2026.11.8/src/diaggrok/parsers/lte_rrc_sib_decode.py +1438 -0
  240. diaggrok-2026.11.8/src/diaggrok/parsers/lte_rrc_sib_time.py +707 -0
  241. diaggrok-2026.11.8/src/diaggrok/parsers/lte_signal_levels.py +45 -0
  242. diaggrok-2026.11.8/src/diaggrok/parsers/lte_tables.py +110 -0
  243. diaggrok-2026.11.8/src/diaggrok/parsers/nr5g_rrc_dlccch.py +167 -0
  244. diaggrok-2026.11.8/src/diaggrok/parsers/nr5g_rrc_meas_report.py +386 -0
  245. diaggrok-2026.11.8/src/diaggrok/parsers/nr5g_rrc_mib.py +198 -0
  246. diaggrok-2026.11.8/src/diaggrok/parsers/nr5g_rrc_paging.py +219 -0
  247. diaggrok-2026.11.8/src/diaggrok/parsers/nr5g_rrc_reconfig.py +1055 -0
  248. diaggrok-2026.11.8/src/diaggrok/parsers/nr5g_rrc_reconfig_complete.py +152 -0
  249. diaggrok-2026.11.8/src/diaggrok/parsers/nr5g_rrc_release.py +277 -0
  250. diaggrok-2026.11.8/src/diaggrok/parsers/nr5g_rrc_si.py +134 -0
  251. diaggrok-2026.11.8/src/diaggrok/parsers/nr5g_rrc_sib1_uper.py +1115 -0
  252. diaggrok-2026.11.8/src/diaggrok/parsers/nr5g_rrc_sib9.py +216 -0
  253. diaggrok-2026.11.8/src/diaggrok/parsers/nr5g_rrc_sib_decode.py +548 -0
  254. diaggrok-2026.11.8/src/diaggrok/parsers/nr5g_rrc_smc.py +171 -0
  255. diaggrok-2026.11.8/src/diaggrok/parsers/nr5g_rrc_ulccch.py +256 -0
  256. diaggrok-2026.11.8/src/diaggrok/parsers/nr5g_signal_levels.py +58 -0
  257. diaggrok-2026.11.8/src/diaggrok/parsers/uper.py +228 -0
  258. diaggrok-2026.11.8/src/diaggrok/pii_scan.py +430 -0
  259. diaggrok-2026.11.8/src/diaggrok/registry.py +1960 -0
  260. diaggrok-2026.11.8/src/diaggrok/sbas.py +316 -0
  261. diaggrok-2026.11.8/src/diaggrok/ts64_cal.py +582 -0
  262. diaggrok-2026.11.8/src/diaggrok/types.py +8 -0
  263. diaggrok-2026.11.8/src/diaggrok.egg-info/PKG-INFO +160 -0
  264. diaggrok-2026.11.8/src/diaggrok.egg-info/SOURCES.txt +264 -0
  265. diaggrok-2026.11.8/src/diaggrok.egg-info/dependency_links.txt +1 -0
  266. diaggrok-2026.11.8/src/diaggrok.egg-info/top_level.txt +1 -0
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "{}"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright {yyyy} {name of copyright owner}
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -0,0 +1,160 @@
1
+ Metadata-Version: 2.4
2
+ Name: diaggrok
3
+ Version: 2026.11.8
4
+ Summary: Qualcomm DIAG log code parser library
5
+ Author: Luke Jenkins
6
+ License-Expression: Apache-2.0
7
+ Project-URL: Homepage, https://github.com/lukejenkins/diaggrok
8
+ Project-URL: Source, https://github.com/lukejenkins/diaggrok
9
+ Project-URL: Changelog, https://github.com/lukejenkins/diaggrok/releases
10
+ Keywords: diag,modem,cellular,baseband,lte,5g
11
+ Classifier: Development Status :: 4 - Beta
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: Intended Audience :: Science/Research
14
+ Classifier: Intended Audience :: Telecommunications Industry
15
+ Classifier: Operating System :: OS Independent
16
+ Classifier: Programming Language :: Python :: 3
17
+ Classifier: Programming Language :: Python :: 3 :: Only
18
+ Classifier: Programming Language :: Python :: 3.11
19
+ Classifier: Programming Language :: Python :: 3.12
20
+ Classifier: Programming Language :: Python :: 3.13
21
+ Classifier: Programming Language :: Python :: 3.14
22
+ Classifier: Topic :: Communications
23
+ Classifier: Topic :: System :: Hardware
24
+ Requires-Python: >=3.11
25
+ Description-Content-Type: text/markdown
26
+ License-File: LICENSE
27
+ Dynamic: license-file
28
+
29
+ # diaggrok
30
+
31
+ > Part of the **[cellular `diag*` toolkit](https://github.com/lukejenkins/cellular#the-diag-toolkit)**: start there for how the capture/decode pieces fit together.
32
+
33
+ A 100% reverse engineered library for parsing the diagnostic (DIAG) logs of mobile devices — specifically the `LOG_F` records that modern cell modems built on Qualcomm chipsets emit when you put them into diagnostic mode.
34
+
35
+ If you've ever pointed a vendor log viewer, QCSuper, or SCAT at a modem and wondered what all those `0x1526`-style log codes actually *mean*, that's the itch this scratches. diaggrok takes the raw bytes of a DIAG log record and hands you back named, typed fields.
36
+
37
+ ## What's in here
38
+
39
+ This repo is a curated public **carve** out of a much larger private working tree — it ships the parsers I've cleaned up enough to stand behind on their own. As of `v2026.10.04` that's:
40
+
41
+ * **188 log-code parsers**
42
+ * Pure Python, **zero dependencies**, Python 3.11+
43
+ * Apache-2.0 licensed
44
+
45
+ Coverage, by area:
46
+
47
+ * **GNSS**: fixes, per-SV measurements across GPS / GLONASS / Galileo / BeiDou / QZSS / SBAS / NavIC (including the L5 / E5a / B1C reports), clock and time state, ephemeris, SBAS demod, RF front-end and power-profiling reports, NMEA-over-DIAG
48
+ * **LTE**: ML1 / LL1 cell search and measurements (serving, neighbour, IRAT-to-NR), MAC RACH and transport blocks, PDCP, RRC OTA plus MIB / SIB / serving-cell info / CA combos, NAS EMM and ESM messages and state
49
+ * **5G NR**: L1 / ML1 measurements and per-beam blocks, cell search, CDRX, MAC, RRC OTA plus MIB / serving-cell / configuration / CA combos, NAS 5GMM and 5GSM messages and state
50
+ * **2G / 3G**: a handful of GSM L1 acquisition and measurement records, GSM RR signalling, WCDMA PN search results, and UMTS NAS PLMN lists
51
+ * **Everything else**: IMS SIP and registration, SIM / UICC APDU traces, QMI and QCRIL logging, the IPA data path, and some thermal, battery and coexistence reports
52
+
53
+ Every parser was reverse engineered against real captures. Most of the early work was on a Quectel **RM520N-GL** (SDX62); this release adds parsers validated on chipsets from the MDM9x07 generation through SDX72. Where a decoded field could be matched against the modem's own debug messages (F3 traces), it was, and each parser's metadata says where its decode came from (see `parser_info()` below).
54
+
55
+ The thing I care most about: each parser knows its own byte layout and **refuses to guess**. If a record isn't the size it was reverse engineered against, or carries a version byte the parser doesn't know, the parser returns `None` instead of emitting plausible-looking garbage. Size invariance is not format invariance, and I'd rather see a parse-rate drop on a new firmware than trust a silently mis-decoded field. Those drops aren't silent either: when a registered parser declines a record, diaggrok logs a rate-limited warning, so a gap in coverage shows up in your logs instead of hiding in them.
56
+
57
+ (`EXTRACT_MANIFEST.json` in the repo root lists exactly which log codes and modules made it into this carve.)
58
+
59
+ ## Installation
60
+
61
+ Not on PyPI yet — install straight from GitHub:
62
+
63
+ ```bash
64
+ pip install "diaggrok @ git+https://github.com/lukejenkins/diaggrok@main"
65
+ ```
66
+
67
+ ## Usage
68
+
69
+ The high-level entry point is `parse()`: give it a log code, a timestamp, and the raw payload bytes, and get back a decoded object (or `None` if nothing's registered for that code).
70
+
71
+ ```python
72
+ import diaggrok
73
+
74
+ result = diaggrok.parse(0x1526, log_time, payload)
75
+ if result is not None:
76
+ print(result.to_dict())
77
+ ```
78
+
79
+ If you're starting from a raw DIAG `LOG_F` (opcode `0x10`) frame, peel off the outer/inner headers first — `parse_outer_frame()` hands back the log code as `log_type`:
80
+
81
+ ```python
82
+ from diaggrok import parse_outer_frame, parse
83
+
84
+ pending, log_type, log_time, log_payload = parse_outer_frame(frame_bytes)
85
+ result = parse(log_type, log_time, log_payload)
86
+ ```
87
+
88
+ ### Reading capture files
89
+
90
+ If you've got a whole capture on disk, `diaggrok.dlf.iter_records()` works out the framing for you (flat DLF, raw HDLC, or QMDL2) and yields `(log_code, timestamp, payload)` for every log record:
91
+
92
+ ```python
93
+ from pathlib import Path
94
+
95
+ import diaggrok
96
+ from diaggrok.dlf import iter_records
97
+
98
+ for code, ts, payload in iter_records(Path("capture.dlf").read_bytes()):
99
+ result = diaggrok.parse(code, ts, payload)
100
+ if result is not None:
101
+ print(hex(code), result.to_dict())
102
+ ```
103
+
104
+ `apps/diagreplay/` wraps that in a small reader that also handles `.zst` / `.gz` compressed captures and can filter by log code. Its command line lists the records in a capture (timestamp, code, length, and with `--json` the raw payload as hex) without decoding them, which is handy for a first look:
105
+
106
+ ```sh
107
+ cd apps/diagreplay
108
+ python -m diagreplay capture.dlf.zst --code 0x1526 --json
109
+ ```
110
+
111
+ ### What's supported
112
+
113
+ Want to see what's supported, or poke at a parser's metadata (where the decode came from, which payload versions it accepts, how many fields it identifies)?
114
+
115
+ ```python
116
+ diaggrok.registered_codes() # -> [0x10BA, 0x117E, ...]
117
+ diaggrok.parser_info(0x1526) # -> ParserEntry(name='0x1526', source_type='re', ...)
118
+ ```
119
+
120
+ ### Bring your own parsers
121
+
122
+ You don't have to fork to extend it. Drop a `.py` file that calls `@register(...)` into `~/.diaggrok/plugins/` (or point `DIAGGROK_PLUGIN_DIR` at a directory of them), then:
123
+
124
+ ```python
125
+ diaggrok.load_plugins()
126
+ ```
127
+
128
+ ## A note on privacy
129
+
130
+ Some of these log codes carry personal data, because the modem logs it: NAS and RRC messages can include subscriber and device identifiers, the IMS parsers decode SIP traffic and registration identities, the SIM parsers decode APDUs, and GNSS fixes are your location. diaggrok decodes what's in the record and does not redact anything. If you share decoded output (or the captures themselves), check what's in them first.
131
+
132
+ ## Changes between releases
133
+
134
+ Releases are tagged `vYYYY.MM.DD`. A parser's record shape is part of the public interface, so [CHANGELOG.md](./CHANGELOG.md) lists every renamed, removed, or re-typed field. `v2026.10.04` has breaking changes to 22 existing parsers (mostly placeholder fields replaced by real decodes, plus `0x4179`, which turned out to be a WCDMA record rather than LTE). Read the changelog before upgrading from `v2026.08.23`.
135
+
136
+ ## Scope, and some honesty
137
+
138
+ This is carved out of an active reverse-engineering project, so a few things are true and worth saying out loud:
139
+
140
+ * It only covers modems built on Qualcomm chipsets. Other basebands aren't in scope here.
141
+ * A parser makes it into this repo only once it's been checked against real captures. Plenty of log codes I've looked at aren't here yet, and the ones that are don't all decode every field. Unknown bytes stay as raw values rather than getting a guessed name.
142
+ * 2G/3G is thin — those technologies had been sunset before I got into cellular based tech, and the projects in Kudos below do that far better, so use them for it.
143
+
144
+ ## Kudos
145
+
146
+ This software is strongly inspired by a few other projects. In many cases they still do a better job parsing logs into usable data. This is especially true for 2G and 3G technologies that had been sunset before I got into cellular based tech. They also have a much longer track record and support ecosystem, so check them out:
147
+
148
+ * https://osmocom.org/projects/baseband/wiki/Ccch_scan
149
+ * https://github.com/p1sec/qcsuper
150
+ * https://github.com/fgsect/scat
151
+
152
+ None of the code from these projects is in diaggrok.
153
+
154
+ ## AI Disclaimer
155
+
156
+ The AI 'bots are VERY good at finding patterns and matching values, exactly what one needs for taking documented output (e.g. AT commands) and matching it up to help you decode a publicly undocumented protocol (e.g. diag logs from a cell modem). If you're opposed to using this kind of work, there are other open source options and some commercial options that you should seek out.
157
+
158
+ ## License
159
+
160
+ Apache-2.0. See [LICENSE](./LICENSE).
@@ -0,0 +1,132 @@
1
+ # diaggrok
2
+
3
+ > Part of the **[cellular `diag*` toolkit](https://github.com/lukejenkins/cellular#the-diag-toolkit)**: start there for how the capture/decode pieces fit together.
4
+
5
+ A 100% reverse engineered library for parsing the diagnostic (DIAG) logs of mobile devices — specifically the `LOG_F` records that modern cell modems built on Qualcomm chipsets emit when you put them into diagnostic mode.
6
+
7
+ If you've ever pointed a vendor log viewer, QCSuper, or SCAT at a modem and wondered what all those `0x1526`-style log codes actually *mean*, that's the itch this scratches. diaggrok takes the raw bytes of a DIAG log record and hands you back named, typed fields.
8
+
9
+ ## What's in here
10
+
11
+ This repo is a curated public **carve** out of a much larger private working tree — it ships the parsers I've cleaned up enough to stand behind on their own. As of `v2026.10.04` that's:
12
+
13
+ * **188 log-code parsers**
14
+ * Pure Python, **zero dependencies**, Python 3.11+
15
+ * Apache-2.0 licensed
16
+
17
+ Coverage, by area:
18
+
19
+ * **GNSS**: fixes, per-SV measurements across GPS / GLONASS / Galileo / BeiDou / QZSS / SBAS / NavIC (including the L5 / E5a / B1C reports), clock and time state, ephemeris, SBAS demod, RF front-end and power-profiling reports, NMEA-over-DIAG
20
+ * **LTE**: ML1 / LL1 cell search and measurements (serving, neighbour, IRAT-to-NR), MAC RACH and transport blocks, PDCP, RRC OTA plus MIB / SIB / serving-cell info / CA combos, NAS EMM and ESM messages and state
21
+ * **5G NR**: L1 / ML1 measurements and per-beam blocks, cell search, CDRX, MAC, RRC OTA plus MIB / serving-cell / configuration / CA combos, NAS 5GMM and 5GSM messages and state
22
+ * **2G / 3G**: a handful of GSM L1 acquisition and measurement records, GSM RR signalling, WCDMA PN search results, and UMTS NAS PLMN lists
23
+ * **Everything else**: IMS SIP and registration, SIM / UICC APDU traces, QMI and QCRIL logging, the IPA data path, and some thermal, battery and coexistence reports
24
+
25
+ Every parser was reverse engineered against real captures. Most of the early work was on a Quectel **RM520N-GL** (SDX62); this release adds parsers validated on chipsets from the MDM9x07 generation through SDX72. Where a decoded field could be matched against the modem's own debug messages (F3 traces), it was, and each parser's metadata says where its decode came from (see `parser_info()` below).
26
+
27
+ The thing I care most about: each parser knows its own byte layout and **refuses to guess**. If a record isn't the size it was reverse engineered against, or carries a version byte the parser doesn't know, the parser returns `None` instead of emitting plausible-looking garbage. Size invariance is not format invariance, and I'd rather see a parse-rate drop on a new firmware than trust a silently mis-decoded field. Those drops aren't silent either: when a registered parser declines a record, diaggrok logs a rate-limited warning, so a gap in coverage shows up in your logs instead of hiding in them.
28
+
29
+ (`EXTRACT_MANIFEST.json` in the repo root lists exactly which log codes and modules made it into this carve.)
30
+
31
+ ## Installation
32
+
33
+ Not on PyPI yet — install straight from GitHub:
34
+
35
+ ```bash
36
+ pip install "diaggrok @ git+https://github.com/lukejenkins/diaggrok@main"
37
+ ```
38
+
39
+ ## Usage
40
+
41
+ The high-level entry point is `parse()`: give it a log code, a timestamp, and the raw payload bytes, and get back a decoded object (or `None` if nothing's registered for that code).
42
+
43
+ ```python
44
+ import diaggrok
45
+
46
+ result = diaggrok.parse(0x1526, log_time, payload)
47
+ if result is not None:
48
+ print(result.to_dict())
49
+ ```
50
+
51
+ If you're starting from a raw DIAG `LOG_F` (opcode `0x10`) frame, peel off the outer/inner headers first — `parse_outer_frame()` hands back the log code as `log_type`:
52
+
53
+ ```python
54
+ from diaggrok import parse_outer_frame, parse
55
+
56
+ pending, log_type, log_time, log_payload = parse_outer_frame(frame_bytes)
57
+ result = parse(log_type, log_time, log_payload)
58
+ ```
59
+
60
+ ### Reading capture files
61
+
62
+ If you've got a whole capture on disk, `diaggrok.dlf.iter_records()` works out the framing for you (flat DLF, raw HDLC, or QMDL2) and yields `(log_code, timestamp, payload)` for every log record:
63
+
64
+ ```python
65
+ from pathlib import Path
66
+
67
+ import diaggrok
68
+ from diaggrok.dlf import iter_records
69
+
70
+ for code, ts, payload in iter_records(Path("capture.dlf").read_bytes()):
71
+ result = diaggrok.parse(code, ts, payload)
72
+ if result is not None:
73
+ print(hex(code), result.to_dict())
74
+ ```
75
+
76
+ `apps/diagreplay/` wraps that in a small reader that also handles `.zst` / `.gz` compressed captures and can filter by log code. Its command line lists the records in a capture (timestamp, code, length, and with `--json` the raw payload as hex) without decoding them, which is handy for a first look:
77
+
78
+ ```sh
79
+ cd apps/diagreplay
80
+ python -m diagreplay capture.dlf.zst --code 0x1526 --json
81
+ ```
82
+
83
+ ### What's supported
84
+
85
+ Want to see what's supported, or poke at a parser's metadata (where the decode came from, which payload versions it accepts, how many fields it identifies)?
86
+
87
+ ```python
88
+ diaggrok.registered_codes() # -> [0x10BA, 0x117E, ...]
89
+ diaggrok.parser_info(0x1526) # -> ParserEntry(name='0x1526', source_type='re', ...)
90
+ ```
91
+
92
+ ### Bring your own parsers
93
+
94
+ You don't have to fork to extend it. Drop a `.py` file that calls `@register(...)` into `~/.diaggrok/plugins/` (or point `DIAGGROK_PLUGIN_DIR` at a directory of them), then:
95
+
96
+ ```python
97
+ diaggrok.load_plugins()
98
+ ```
99
+
100
+ ## A note on privacy
101
+
102
+ Some of these log codes carry personal data, because the modem logs it: NAS and RRC messages can include subscriber and device identifiers, the IMS parsers decode SIP traffic and registration identities, the SIM parsers decode APDUs, and GNSS fixes are your location. diaggrok decodes what's in the record and does not redact anything. If you share decoded output (or the captures themselves), check what's in them first.
103
+
104
+ ## Changes between releases
105
+
106
+ Releases are tagged `vYYYY.MM.DD`. A parser's record shape is part of the public interface, so [CHANGELOG.md](./CHANGELOG.md) lists every renamed, removed, or re-typed field. `v2026.10.04` has breaking changes to 22 existing parsers (mostly placeholder fields replaced by real decodes, plus `0x4179`, which turned out to be a WCDMA record rather than LTE). Read the changelog before upgrading from `v2026.08.23`.
107
+
108
+ ## Scope, and some honesty
109
+
110
+ This is carved out of an active reverse-engineering project, so a few things are true and worth saying out loud:
111
+
112
+ * It only covers modems built on Qualcomm chipsets. Other basebands aren't in scope here.
113
+ * A parser makes it into this repo only once it's been checked against real captures. Plenty of log codes I've looked at aren't here yet, and the ones that are don't all decode every field. Unknown bytes stay as raw values rather than getting a guessed name.
114
+ * 2G/3G is thin — those technologies had been sunset before I got into cellular based tech, and the projects in Kudos below do that far better, so use them for it.
115
+
116
+ ## Kudos
117
+
118
+ This software is strongly inspired by a few other projects. In many cases they still do a better job parsing logs into usable data. This is especially true for 2G and 3G technologies that had been sunset before I got into cellular based tech. They also have a much longer track record and support ecosystem, so check them out:
119
+
120
+ * https://osmocom.org/projects/baseband/wiki/Ccch_scan
121
+ * https://github.com/p1sec/qcsuper
122
+ * https://github.com/fgsect/scat
123
+
124
+ None of the code from these projects is in diaggrok.
125
+
126
+ ## AI Disclaimer
127
+
128
+ The AI 'bots are VERY good at finding patterns and matching values, exactly what one needs for taking documented output (e.g. AT commands) and matching it up to help you decode a publicly undocumented protocol (e.g. diag logs from a cell modem). If you're opposed to using this kind of work, there are other open source options and some commercial options that you should seek out.
129
+
130
+ ## License
131
+
132
+ Apache-2.0. See [LICENSE](./LICENSE).
@@ -0,0 +1,47 @@
1
+ [project]
2
+ name = "diaggrok"
3
+ # Single-sourced from src/diaggrok/_version.py: two hand-bumped copies
4
+ # drifted (pyproject 2026.8.5 shipped under public tag v2026.08.23). _version.py
5
+ # is also what the carve stamps into EXTRACT_MANIFEST upstream.diaggrok_version.
6
+ dynamic = ["version"]
7
+ description = "Qualcomm DIAG log code parser library"
8
+ license = "Apache-2.0"
9
+ requires-python = ">=3.11"
10
+ readme = "README.md"
11
+ authors = [{ name = "Luke Jenkins" }]
12
+ keywords = ["diag", "modem", "cellular", "baseband", "lte", "5g"]
13
+ classifiers = [
14
+ "Development Status :: 4 - Beta",
15
+ "Intended Audience :: Developers",
16
+ "Intended Audience :: Science/Research",
17
+ "Intended Audience :: Telecommunications Industry",
18
+ "Operating System :: OS Independent",
19
+ "Programming Language :: Python :: 3",
20
+ "Programming Language :: Python :: 3 :: Only",
21
+ "Programming Language :: Python :: 3.11",
22
+ "Programming Language :: Python :: 3.12",
23
+ "Programming Language :: Python :: 3.13",
24
+ "Programming Language :: Python :: 3.14",
25
+ "Topic :: Communications",
26
+ "Topic :: System :: Hardware",
27
+ ]
28
+ dependencies = []
29
+
30
+ [project.urls]
31
+ Homepage = "https://github.com/lukejenkins/diaggrok"
32
+ Source = "https://github.com/lukejenkins/diaggrok"
33
+ Changelog = "https://github.com/lukejenkins/diaggrok/releases"
34
+
35
+ [build-system]
36
+ requires = ["setuptools>=77.0"]
37
+ build-backend = "setuptools.build_meta"
38
+
39
+ [tool.setuptools.dynamic]
40
+ version = {attr = "diaggrok._version.__version__"}
41
+
42
+ [tool.setuptools.packages.find]
43
+ where = ["src"]
44
+
45
+ [tool.pytest.ini_options]
46
+ testpaths = ["tests"]
47
+ pythonpath = ["src"]
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,58 @@
1
+ """diaggrok — DIAG log code parser library."""
2
+ from diaggrok._version import __version__
3
+ from diaggrok.frame import parse_outer_frame
4
+ from diaggrok.registry import (
5
+ Canary,
6
+ FieldGround,
7
+ GROUND_TRUTH_STATUSES,
8
+ GroundTruth,
9
+ SOURCE_KINDS,
10
+ SOURCE_TYPES,
11
+ Source,
12
+ TEST_MODES,
13
+ TIMEBASE_ROLES,
14
+ VALIDATION_STATES,
15
+ ParserEntry,
16
+ WIGLE_DIRECT_ROLES,
17
+ WIGLE_INDIRECT_ROLES,
18
+ WIGLE_TIMING_SUBFLAGS,
19
+ all_parser_info,
20
+ clear_registry,
21
+ entries_for,
22
+ load_plugins,
23
+ parse,
24
+ parser_info,
25
+ register,
26
+ registered_codes,
27
+ resolve,
28
+ )
29
+
30
+ __all__ = [
31
+ "__version__",
32
+ "Canary",
33
+ "FieldGround",
34
+ "GROUND_TRUTH_STATUSES",
35
+ "GroundTruth",
36
+ "SOURCE_KINDS",
37
+ "SOURCE_TYPES",
38
+ "Source",
39
+ "TEST_MODES",
40
+ "TIMEBASE_ROLES",
41
+ "VALIDATION_STATES",
42
+ "ParserEntry",
43
+ "WIGLE_DIRECT_ROLES",
44
+ "WIGLE_INDIRECT_ROLES",
45
+ "WIGLE_TIMING_SUBFLAGS",
46
+ "all_parser_info",
47
+ "clear_registry",
48
+ "entries_for",
49
+ "load_plugins",
50
+ "parse",
51
+ "parse_outer_frame",
52
+ "parser_info",
53
+ "register",
54
+ "registered_codes",
55
+ "resolve",
56
+ ]
57
+
58
+ import diaggrok.parsers # noqa: E402, F401 — trigger built-in parser registration
@@ -0,0 +1 @@
1
+ __version__ = '2026.11.8'