Advertisement
91tech

GET - AirPower

Aug 18th, 2022 (edited)
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.35 KB | None | 0 0
  1. // --------- AirPower Prototype Unit - GET - Developer Output --------- //
  2. Compiled by 91Tech - @91_tech - youtube.com/91tech
  3.  
  4. Main document: https://pastebin.com/CuvaGx0F
  5. This document contains output for the 'get' command.
  6.  
  7. // Contents //
  8. - Help
  9. - VERSIONS
  10. - CS
  11. - DEV
  12. - MCU_FW
  13. - TIMER
  14. - TIMERS
  15. - COIL
  16. - COILS
  17. - GPIOS
  18. - SENSORS
  19. - STATS
  20. - UDID
  21. - OTP
  22. - VER
  23. - STARTUP_CMDS
  24. - DEADTIME_PHASE_SHIFT
  25. - DEADTIME_FORCE
  26. - NOTCH_FILTER
  27.  
  28.  
  29.  
  30. --------- Help ---------
  31. B431-22-P2> get help
  32. Available commands:
  33. versions
  34. cs
  35. dev
  36. mcu_fw
  37. timer
  38. timers
  39. coil
  40. coils
  41. gpios
  42. sensors
  43. stats
  44. udid
  45. otp
  46. ver
  47. startup_cmds
  48. deadtime_phase_shift
  49. deadtime_force
  50. notch_filter
  51. help
  52.  
  53. * completely unrelated but I chuckled everytime I typed 'get help' *
  54.  
  55.  
  56.  
  57. --------- VERSIONS ---------
  58. B431-22-P2> get versions
  59. [STM32]
  60. application: 01090014
  61. [CCG2]
  62. bootloader: 1.0.699.0
  63. application: 2.0.714.12
  64. [FPGA]
  65. product id: 5, version: 14
  66. [NCO]
  67. application: 01.03.0002
  68.  
  69.  
  70.  
  71. --------- CS ---------
  72. B431-22-P2> get cs
  73. invalid number of parameters
  74. B431-22-P2> get cs 0
  75. [no output]
  76. B431-22-P2> get cs 91
  77. [no output]
  78.  
  79.  
  80.  
  81. --------- DEV ---------
  82. B431-22-P2> get dev
  83. 00:10:37.24 ### [ASSERT] DeviceTracking.c:5100 "getDeviceDetectionStatusCmd", "argc == 1"
  84. 00:10:37.24 [int getDeviceDetectionStatusCmd(uint8_t, char **, void *)] param count bad (0)
  85.  
  86. * Based on the error including 'DeviceTracking', 'dev' likely stands for 'device'. *
  87.  
  88.  
  89.  
  90. --------- MCU_FW ---------
  91. B431-22-P2> get mcu_fw
  92. [main] [0x08014000] 00 10 00 10 a1 b5 03 08 3d b6 03 08 a9 b7 03 08 |........=.......|
  93. [main] [0x08014040] 11 b6 03 08 11 b6 03 08 11 b6 03 08 ed a7 03 08 |................|
  94.  
  95. * this returns 6130 lines *
  96.  
  97. Starting line 4147, the output all looks like this:
  98. [main] [0x08054c40] ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................|
  99. [main] [0x08054c80] ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff |................|
  100.  
  101. * split up due to exceeding max size *
  102. -- Output lines 1-4146 - https://pastebin.com/j2TPC4Un --
  103. -- Output lines 4167-6130 - https://pastebin.com/yFqg71RG --
  104.  
  105. * The output is a total of 528,384 characters, enough to lag out my iMac when copying it from the terminal. *
  106.  
  107.  
  108.  
  109. --------- TIMER ---------
  110. B431-22-P2> get timer
  111. 00:08:56.124 ### [ASSERT] PowerDelivery.c:1156 "getTimerConfigCmd", "argc == 1"
  112. incorrect number of parameters
  113.  
  114.  
  115.  
  116. --------- TIMERS ---------
  117. B431-22-P2> get timers
  118. timer=TIM8 channel=1 port=PC6 func=4 PWM_2 freq=127772 duty=25.0 output=OFF
  119. timer=TIM1 channel=1 port=PC0 func=2 PWM_3 freq=127772 duty=25.0 output=OFF
  120. timer=TIM3 channel=1 port=PA6 func=2 PWM_4 freq=127772 duty=25.0 output=OFF
  121.  
  122.  
  123.  
  124. --------- COIL ---------
  125. B431-22-P2> get coil
  126. 00:12:52.88 ### [ASSERT] PowerDelivery.c:1400 "getCoilConfigCmd", "argc == 1"
  127. invalid number of parameters
  128. B431-22-P2> get coil 0
  129. coil=0 inverter=0 timer=255 x=2 y=3 z=3 freq=127772 duty=25.0 output=OFF commType=0 commFlags=0x00
  130.  
  131. * This appears to get the info of one coil at a time, whereas 'get coils' returns all 22 at once. *
  132.  
  133.  
  134.  
  135. --------- COILS ---------
  136. B431-22-P2> get coils
  137. coil=0 inverter=0 timer=255 x=2 y=3 z=3 freq=127772 duty=25.0 output=OFF commType=0 commFlags=0x00
  138. coil=1 inverter=1 timer=255 x=4 y=3 z=2 freq=127772 duty=25.0 output=OFF commType=0 commFlags=0x00
  139. coil=2 inverter=2 timer=255 x=6 y=3 z=1 freq=127772 duty=25.0 output=OFF commType=0 commFlags=0x00
  140. coil=3 inverter=3 timer=255 x=8 y=3 z=3 freq=127772 duty=25.0 output=OFF commType=0 commFlags=0x00
  141. coil=4 inverter=4 timer=255 x=10 y=3 z=2 freq=127772 duty=25.0 output=OFF commType=0 commFlags=0x00
  142. coil=5 inverter=5 timer=255 x=10 y=3 z=2 freq=127772 duty=25.0 output=OFF commType=0 commFlags=0x00
  143. coil=6 inverter=6 timer=255 x=10 y=3 z=2 freq=127772 duty=25.0 output=OFF commType=0 commFlags=0x00
  144. coil=7 inverter=7 timer=255 x=1 y=2 z=2 freq=127772 duty=25.0 output=OFF commType=0 commFlags=0x00
  145. coil=8 inverter=8 timer=255 x=3 y=2 z=1 freq=127772 duty=25.0 output=OFF commType=0 commFlags=0x00
  146. coil=9 inverter=9 timer=255 x=5 y=2 z=3 freq=127772 duty=25.0 output=OFF commType=0 commFlags=0x00
  147. coil=10 inverter=10 timer=255 x=7 y=2 z=2 freq=127772 duty=25.0 output=OFF commType=0 commFlags=0x00
  148. coil=11 inverter=11 timer=255 x=9 y=2 z=1 freq=127772 duty=25.0 output=OFF commType=0 commFlags=0x00
  149. coil=12 inverter=12 timer=255 x=11 y=2 z=3 freq=127772 duty=25.0 output=OFF commType=0 commFlags=0x00
  150. coil=13 inverter=13 timer=255 x=11 y=2 z=3 freq=127772 duty=25.0 output=OFF commType=0 commFlags=0x00
  151. coil=14 inverter=14 timer=255 x=2 y=1 z=3 freq=127772 duty=25.0 output=OFF commType=0 commFlags=0x00
  152. coil=15 inverter=15 timer=255 x=4 y=1 z=2 freq=127772 duty=25.0 output=OFF commType=0 commFlags=0x00
  153. coil=16 inverter=16 timer=255 x=6 y=1 z=1 freq=127772 duty=25.0 output=OFF commType=0 commFlags=0x00
  154. coil=17 inverter=17 timer=255 x=8 y=1 z=3 freq=127772 duty=25.0 output=OFF commType=0 commFlags=0x00
  155. coil=18 inverter=18 timer=255 x=10 y=1 z=2 freq=127772 duty=25.0 output=OFF commType=0 commFlags=0x00
  156. coil=19 inverter=19 timer=255 x=10 y=1 z=2 freq=127772 duty=25.0 output=OFF commType=0 commFlags=0x00
  157. coil=20 inverter=20 timer=255 x=10 y=1 z=2 freq=127772 duty=25.0 output=OFF commType=0 commFlags=0x00
  158. coil=21 inverter=21 timer=255 x=10 y=1 z=2 freq=127772 duty=25.0 output=OFF commType=0 commFlags=0x00
  159.  
  160.  
  161.  
  162. --------- GPIOS ---------
  163. B431-22-P2> get gpios
  164. [no output]
  165.  
  166.  
  167.  
  168. --------- SENSORS ---------
  169. B431-22-P2> get sensors
  170. description raw adc converted calculated
  171. ----------- ------- ---------- ----------
  172. mat voltage in 834 608 4955 mV
  173. 5V Buck output 885 645 1290 mV
  174. mat current in 102 74 148 mA
  175. board rev 1724 1257 1257 mV
  176. brick ID 67 48 65 mV
  177.  
  178.  
  179.  
  180. --------- STATS ---------
  181. B431-22-P2> get stats
  182. Statistics
  183. UpTime:
  184. 00 hours
  185. 14 minutes
  186. 01 seconds
  187. Error Flags:
  188. OTP: false [0]
  189. OCP: false [0]
  190. OVP: false [0]
  191. UVP: false [0]
  192. Additional Errors:
  193. 00
  194.  
  195. * 'UpTime' returns however long AirPower has been connected. *
  196.  
  197.  
  198.  
  199. --------- UDID ---------
  200. B431-22-P2> get udid
  201. UDID: 20373932-42345709-000C8015
  202.  
  203. -- UDID stands for 'Unique Device Identifier' and is used on Apple devices running their software. --
  204. See: https://en.wikipedia.org/wiki/UDID
  205. * It is unknown how the UDID is calculated on this AirPower unit. *
  206.  
  207.  
  208.  
  209. --------- OTP ---------
  210. B431-22-P2> get otp
  211. OTP threshold sets @ 50ºC and clears @ 47ºC
  212.  
  213. -- OTP may stand for 'One-Time-Programmable Memory'. --
  214. See: https://semiengineering.com/knowledge_centers/memory/one-time-programmable-memory/
  215.  
  216.  
  217.  
  218. --------- VER ---------
  219. B431-22-P2> get ver
  220. B431-22-P2 firmware version = 01090014
  221. Jun 7 2017, 17:22:52
  222.  
  223. BUILDER: John Doe (jdoe)
  224. HOSTNAME: john-J45.local
  225. GIT BRANCH: 'P2T_Factory'
  226. GIT HASH: 0aa885b (0aa885bba26749b83522037d93c5bd5629a2c85b)
  227. COMPILER: 4.2.1 Compatible Apple LLVM 8.1.0 (clang-802.0.42)
  228.  
  229.  
  230.  
  231. --------- STARTUP_CMDS ---------
  232. B431-22-P2> get startup_cmds
  233. No startup commands found.
  234.  
  235.  
  236.  
  237. --------- DEADTIME_PHASE_SHIFT ---------
  238. B431-22-P2> get deadtime_phase_shift
  239. Deadtime phase shift = 200 ns
  240.  
  241.  
  242.  
  243. --------- DEADTIME_FORCE ---------
  244. B431-22-P2> get deadtime_force
  245. Force deadtime is supported on B431 P1Bv2 only
  246.  
  247.  
  248.  
  249. --------- NOTCH_FILTER ---------
  250. B431-22-P2> get notch_filter
  251. Notch filter disabled
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement