Author Topic: MPU communication  (Read 24131 times)

leegong

  • New to the forum
  • *
  • Posts: 42
Re: MPU communication
« Reply #50 on: March 28, 2018, 12:10:51 PM »
Any idea where this might be used in Canon code? Tried to grep for this command in my logs with MPU messages, but found nothing.
My wild guessing , these Msg08 02 might belong to factory debug section ,
they don't belong to normal Msg transfering workflow between MPU and CPU .
Code: [Select]
00023BD0 Msg08_02_CallTable:.word Action_On_Msg0802_fun00+1 # 0
ROM:00023BD0                                          # DATA XREF: Msg08_Handler+134r
ROM:00023BD0                 .word Action_On_Msg0802_fun01+1 # 1  # in a0 = 0xFFFFD2E0
ROM:00023BD0                 .word Action_On_Msg0802_fun02+1 # 2
ROM:00023BD0                 .word Action_On_Msg0802_fun03_load_EEPROM_2_RAM+1 # 3
ROM:00023BD0                 .word Action_On_Msg0802_fun04_get_Image_orientation+1 # 4
ROM:00023BD0                 .word Action_On_Msg0802_fun05+1 # 5
ROM:00023BD0                 .word Action_On_Msg0802_fun06+1 # 6
ROM:00023BD0                 .word Action_On_Msg0802_fun07+1 # 7
ROM:00023BD0                 .word Action_On_Msg0802_fun08+1 # 8
ROM:00023BD0                 .word Action_On_Msg0802_fun09+1 # 9
ROM:00023BD0                 .word Action_On_Msg0802_fun0A+1 # 0xA
ROM:00023BD0                 .word Action_On_Msg0802_fun0B+1 # 0xB
ROM:00023BD0                 .word Action_On_Msg0802_fun0C+1 # 0xC
ROM:00023BD0                 .word Action_On_Msg0802_fun0D+1 # 0xD
ROM:00023BD0                 .word Action_On_Msg0802_fun0E+1 # 0xE
ROM:00023BD0                 .word Action_On_Msg0802_fun0F_custom_LensCMD+1 # 0xF
ROM:00023BD0                 .word Action_On_Msg0802_fun10_FocusScan+1 # 0x10
ROM:00023BD0                 .word Action_On_Msg0802_fun11+1 # 0x11
ROM:00023BD0                 .word Action_On_Msg0802_clear_RAM_byte+1 # 0x12
ROM:00023BD0                 .word Action_On_Msg0802_clear_RAM_byte+1 # 0x13
ROM:00023BD0                 .word Action_On_Msg0802_clear_RAM_byte+1 # 0x14
ROM:00023BD0                 .word Action_On_Msg0802_clear_RAM_byte+1 # 0x15
ROM:00023BD0                 .word Action_On_Msg0802_clear_RAM_byte+1 # 0x16
ROM:00023BD0                 .word Action_On_Msg0802_fun13+1 # 0x17
ROM:00023BD0                 .word Action_On_Msg0802_clear_RAM_byte+1 # 0x18
ROM:00023BD0                 .word Action_On_Msg0802_fun19_Lens_RTX_1byte+1 # 0x19
ROM:00023BD0                 .word Action_On_Msg0802_clear_RAM_byte+1 # 0x1A
ROM:00023BD0                 .word Action_On_Msg0802_clear_RAM_byte+1 # 0x1B
ROM:00023BD0                 .word Action_On_Msg0802_clear_RAM_byte+1 # 0x1C
ROM:00023BD0                 .word Action_On_Msg0802_clear_RAM_byte+1 # 0x1D
ROM:00023BD0                 .word Action_On_Msg0802_clear_RAM_byte+1 # 0x1E
ROM:00023BD0                 .word Action_On_Msg0802_clear_RAM_byte+1 # 0x1F
ROM:00023BD0                 .word Action_On_Msg0802_fun20+1 # 0x20
ROM:00023BD0                 .word Action_On_Msg0802_fun21+1 # 0x21
ROM:00023BD0                 .word Action_On_Msg0802_fun22+1 # 0x22
ROM:00023BD0                 .word Action_On_Msg0802_fun23+1 # 0x23
ROM:00023BD0                 .word Action_On_Msg0802_fun24+1 # 0x24
ROM:00023BD0                 .word Action_On_Msg0802_fun25+1 # 0x25
ROM:00023BD0                 .word Action_On_Msg0802_fun26+1 # 0x26
ROM:00023BD0                 .word Action_On_Msg0802_fun27+1 # 0x27
ROM:00023BD0                 .word Action_On_Msg0802_clear_RAM_byte+1 # 0x28
ROM:00023BD0                 .word Action_On_Msg0802_fun29+1 # 0x29
ROM:00023BD0                 .word Action_On_Msg0802_clear_RAM_byte+1 # 0x2A
ROM:00023BD0                 .word Action_On_Msg0802_fun2B+1 # 0x2B
ROM:00023BD0                 .word Action_On_Msg0802_clear_RAM_byte+1 # 0x2C
ROM:00023BD0                 .word Action_On_Msg0802_clear_RAM_byte+1 # 0x2D
ROM:00023BD0                 .word Action_On_Msg0802_fun2E+1 # 0x2E
ROM:00023BD0                 .word Action_On_Msg0802_fun2F+1 # 0x2F
ROM:00023BD0                 .word Action_On_Msg0802_fun30_DISPALLOFF+1 # 0x30
ROM:00023BD0                 .word Action_On_Msg0802_fun31_DISPALLON+1 # 0x31
ROM:00023BD0                 .word Action_On_Msg0802_clear_RAM_byte+1 # 0x32
ROM:00023BD0                 .word Action_On_Msg0802_clear_RAM_byte+1 # 0x33
ROM:00023BD0                 .word Action_On_Msg0802_clear_RAM_byte+1 # 0x34
ROM:00023BD0                 .word Action_On_Msg0802_clear_RAM_byte+1 # 0x35
ROM:00023BD0                 .word Action_On_Msg0802_clear_RAM_byte+1 # 0x36
ROM:00023BD0                 .word Action_On_Msg0802_clear_RAM_byte+1 # 0x37
ROM:00023BD0                 .word Action_On_Msg0802_fun38+1 # 0x38
ROM:00023BD0                 .word Action_On_Msg0802_fun39+1 # 0x39
ROM:00023BD0                 .word Action_On_Msg0802_clear_RAM_byte+1 # 0x3A
ROM:00023BD0                 .word Action_On_Msg0802_clear_RAM_byte+1 # 0x3B
ROM:00023BD0                 .word Action_On_Msg0802_fun3C+1 # 0x3C
ROM:00023BD0                 .word Action_On_Msg0802_clear_RAM_byte+1 # 0x3D
ROM:00023BD0                 .word Action_On_Msg0802_fun3E+1 # 0x3E
ROM:00023BD0                 .word Action_On_Msg0802_fun3F+1 # 0x3F
ROM:00023BD0                 .word Action_On_Msg0802_fun40+1 # 0x40
ROM:00023BD0                 .word Action_On_Msg0802_fun41+1 # 0x41
ROM:00023BD0                 .word Action_On_Msg0802_fun42+1 # 0x42
ROM:00023BD0                 .word Action_On_Msg0802_fun43+1 # 0x43
ROM:00023BD0                 .word Action_On_Msg0802_fun44+1 # 0x44
ROM:00023BD0                 .word Action_On_Msg0802_fun45+1 # 0x45
ROM:00023BD0                 .word Action_On_Msg0802_fun46+1 # 0x46
ROM:00023BD0                 .word Action_On_Msg0802_fun47+1 # 0x47
ROM:00023BD0                 .word Action_On_Msg0802_fun48_copy_Lens_aperture_data+1 # 0x48
ROM:00023BD0                 .word Action_On_Msg0802_fun49_read_EEPROM+1 # 0x49
ROM:00023BD0                 .word Action_On_Msg0802_fun4A+1 # 0x4A
ROM:00023BD0                 .word Action_On_Msg0802_fun4B+1 # 0x4B
ROM:00023BD0                 .word Action_On_Msg0802_fun4C+1 # 0x4C
ROM:00023BD0                 .word Action_On_Msg0802_fun4D+1 # 0x4D
ROM:00023BD0                 .word Action_On_Msg0802_fun4E_read_button+1 # 0x4E
ROM:00023BD0                 .word Action_On_Msg0802_fun4F_backup_byte20004+1 # 0x4F
ROM:00023BD0                 .word Action_On_Msg0802_clear_RAM_byte+1 # 0x50
ROM:00023BD0                 .word Action_On_Msg0802_clear_RAM_byte+1 # 0x51
ROM:00023BD0                 .word Action_On_Msg0802_fun52+1 # 0x52
ROM:00023BD0                 .word Action_On_Msg0802_fun53+1 # 0x53
ROM:00023BD0                 .word Action_On_Msg0802_fun54+1 # 0x54
ROM:00023BD0                 .word Action_On_Msg0802_fun55+1 # 0x55
ROM:00023BD0                 .word Action_On_Msg0802_fun56+1 # 0x56
ROM:00023BD0                 .word Action_On_Msg0802_fun57+1 # 0x57
ROM:00023BD0                 .word Action_On_Msg0802_fun58+1 # 0x58
ROM:00023BD0                 .word Action_On_Msg0802_fun59+1 # 0x59
ROM:00023BD0                 .word Action_On_Msg0802_clear_RAM_byte+1 # 0x5A
ROM:00023BD0                 .word Action_On_Msg0802_clear_RAM_byte+1 # 0x5B
ROM:00023BD0                 .word Action_On_Msg0802_clear_RAM_byte+1 # 0x5C
ROM:00023BD0                 .word Action_On_Msg0802_clear_RAM_byte+1 # 0x5D
ROM:00023BD0                 .word Action_On_Msg0802_clear_RAM_byte+1 # 0x5E
ROM:00023BD0                 .word Action_On_Msg0802_clear_RAM_byte+1 # 0x5F
ROM:00023BD0                 .word Action_On_Msg0802_fun60_cal_MPU_CodeArea_checksum+1 # 0x60
ROM:00023BD0                 .word Action_On_Msg0802_clear_RAM_byte+1 # 0x61
ROM:00023BD0                 .word Action_On_Msg0802_clear_RAM_byte+1 # 0x62
ROM:00023BD0                 .word Action_On_Msg0802_fun63+1 # 0x63
ROM:00023BD0                 .word Action_On_Msg0802_fun64+1 # 0x64
ROM:00023BD0                 .word Action_On_Msg0802_fun65+1 # 0x65
ROM:00023BD0                 .word Action_On_Msg0802_fun66+1 # 0x66
ROM:00023BD0                 .word Action_On_Msg0802_clear_RAM_byte+1 # 0x67
ROM:00023BD0                 .word Action_On_Msg0802_fun68_Fresh_temperature+1 # 0x68
ROM:00023BD0                 .word Action_On_Msg0802_fun69_read_EEPROM_0x113B+1 # 0x69
ROM:00023BD0                 .word Action_On_Msg0802_fun6A_write_EEPROM_0x113B+1 # 0x6A
ROM:00023BD0                 .word Action_On_Msg0802_fun6B_read_temperature+1 # 0x6B
ROM:00023BD0                 .word Action_On_Msg0802_fun6C+1 # 0x6C
ROM:00023BD0                 .word Action_On_Msg0802_fun6D+1 # 0x6D
ROM:00023BD0                 .word Action_On_Msg0802_clear_RAM_byte+1 # 0x6E
ROM:00023BD0                 .word Action_On_Msg0802_fun6F+1 # 0x6F
ROM:00023BD0                 .word Action_On_Msg0802_fun70+1 # 0x70
ROM:00023BD0                 .word Action_On_Msg0802_fun71+1 # 0x71
ROM:00023BD0                 .word Action_On_Msg0802_fun72+1 # 0x72
ROM:00023BD0                 .word Action_On_Msg0802_clear_RAM_byte+1 # 0x73
ROM:00023BD0                 .word Action_On_Msg0802_clear_RAM_byte+1 # 0x74
ROM:00023BD0                 .word Action_On_Msg0802_fun75_read_RAM_byte+1 # 0x75
ROM:00023BD0                 .word Action_On_Msg0802_fun76+1 # 0x76
ROM:00023BD0                 .word Action_On_Msg0802_fun77_NULL+1 # 0x77
ROM:00023BD0                 .word Action_On_Msg0802_fun78+1 # 0x78
ROM:00023BD0                 .word Action_On_Msg0802_fun79_change_button_flag+1 # 0x79
ROM:00023BD0                 .word Action_On_Msg0802_fun7A_EEPROM_0x1360_verify+1 # 0x7A
ROM:00023BD0                 .word Action_On_Msg0802_fun7B+1 # 0x7B
ROM:00023BD0                 .word Action_On_Msg0802_clear_RAM_byte+1 # 0x7C
ROM:00023BD0                 .word Action_On_Msg0802_clear_RAM_byte+1 # 0x7D
ROM:00023BD0                 .word Action_On_Msg0802_clear_RAM_byte+1 # 0x7E
ROM:00023BD0                 .word Action_On_Msg0802_fun7F+1 # 0x7F
     

a1ex

  • Administrator
  • Hero Member
  • *****
  • Posts: 12323
  • Emergencies only
Re: MPU communication
« Reply #51 on: March 28, 2018, 12:26:57 PM »
Do you happen to know any low-level details on the MPU communication? (e.g. what I/O registers are used for that, or where the messages are sent/received in Canon code). For the ARM side, I've documented the process in the MPU communication section in the QEMU RE guide.

The RXDMPU/TXDMPU pins from the battery grip connector are also a good choice for investigation (requires an Arduino board or equivalent).

leegong

  • New to the forum
  • *
  • Posts: 42
Re: MPU communication
« Reply #52 on: March 28, 2018, 01:04:37 PM »
@a1ex :
SC1 on MPU side is responsible for these debug info communication .
I guess that maybe there is a backdoor in normal communication workflow for normal Msg ,  but not found yet .
In Nikon d5100 , both of UART(similar as SC1 in 550D) and HSC (similar as HSC for communication between
MPU and CPU in 550D) may communicate debug CMD .

leegong

  • New to the forum
  • *
  • Posts: 42
Re: MPU communication
« Reply #53 on: March 28, 2018, 01:10:05 PM »
@a1ex,here is debug UI on 550D MPU side :
Code: [Select]
ROM:00004448 asc_4448:       .ascii "-----------------------------------------------------------\n"
ROM:00004448                                          # DATA XREF: TITLE+12o
ROM:00004448                                          # TITLE+20o
ROM:00004448                 .ascii "               K270 Debug Monitor (Ver 1.00)               \n"
ROM:00004448                 .ascii "     Copyright(C) CANON INC. 2007  All Rights Reserved.    \n"
ROM:00004448                 .ascii "-----------------------------------------------------------\n"
ROM:00004448                 .ascii 0
ROM:00004539                 .byte 0xFF
ROM:0000453A                 .byte 0xFF
ROM:0000453B                 .byte 0xFF

leegong

  • New to the forum
  • *
  • Posts: 42
Re: MPU communication
« Reply #54 on: March 30, 2018, 05:01:30 PM »
@a1ex:
After Msg05 03 (after release data) is sent from MPU to CPU ,   
MPU may send AF debug info to CPU , size of AF debug info is inside Msg05 08 ,
payload of AFdebug info is probably sent to CPU with Multi-Msg05 09 .

How AFdebug info is used on CPU side ? is it for Canon private AF info in CR2 ?
 

a1ex

  • Administrator
  • Hero Member
  • *****
  • Posts: 12323
  • Emergencies only
Re: MPU communication
« Reply #55 on: March 30, 2018, 09:05:28 PM »
Here's a conversation during a still photo capture (1/60 ISO 800 triggered from LiveView, 5D3 1.1.3):

Code: [Select]
0.324.096  **INT-36h*:ff2e4494:00:00: *** mpu_recv(06 04 05 01 00)                                  ; EVENTID_RELEASE_ON
0.324.443  **INT-36h*:ff2e4494:00:00: *** mpu_recv(06 04 05 0e 00)                                  ; EVENTID_RELEASE_START
0.324.735  **INT-36h*:ff2e4494:00:00: *** mpu_recv(06 05 04 17 00 00)                               ; PROP_REMOTE_SW2
0.325.044  **INT-36h*:ff2e4494:00:00: *** mpu_recv(06 05 03 12 00 00)                               ; ???
0.326.144  ShootCaptu:ff14b8ac:93:03: scsReleaseOn
0.326.459  ShootCaptu:ff147854:93:03: scsReleaseStart
0.326.840  **INT-36h*:ff2e4494:00:00: *** mpu_recv(38 36 05 02 53 00 53 00 60 00 00 bd 00 ae 00 03 00 00 00 00 00 00 03 00 0 06 00 00 00 a3 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 03 00 00 00 00 01 01 00) ; EVENTID_RELEASE_DATA_SW2ON
0.331.468  **INT-36h*:ff2e4494:00:00: *** mpu_recv(10 0f 0a 08 41 00 04 00 01 01 fb 01 01 fb 00 00) ; PD_NotifyOlcInfoChanged
0.352.199  ShootCaptu:ff14827c:93:03: scsReleaseData
0.360.349  ShootCaptu:ff1489ac:93:03: EShutCapture(scsReleaseData)
0.367.974  ShootCaptu:ff1491a0:93:03: scsDummyCapEnd
0.372.660     PropMgr:ff122df8:00:00: *** mpu_send(0a 08 03 0b 00 00 00 01 00)                      ; PROP 80030007
0.375.111  ShootCaptu:ff14b6f4:93:03: scsProperty ID=0x80030012(0x16)
0.382.693     PropMgr:ff122df8:00:00: *** mpu_send(08 07 01 2a 23 59 00 40)                         ; PROP_CARD2_FILE_NUMBER
0.385.863  ShootCaptu:ff1492a8:93:03: scsDummyReadoutDone
0.386.295  ShootCaptu:ff149378:93:03: EShutCapture(scsDummyReadoutDone)
0.392.720     PropMgr:ff122df8:00:00: *** mpu_send(06 05 03 07 07 00)                               ; PROP_BURST_COUNT
0.402.752     PropMgr:ff122df8:00:00: *** mpu_send(0a 08 03 06 00 00 00 cc 00)                      ; PROP_AVAIL_SHOT
0.412.779     PropMgr:ff122df8:00:00: *** mpu_send(06 05 03 07 0a 00)                               ; PROP_BURST_COUNT
0.424.119  ShootCaptu:ff149874:93:03: scsCapReady
0.424.143  ShootCaptu:ff1498e4:93:03: scsCapReady EShutter
0.473.119     PropMgr:ff122df8:00:00: *** mpu_send(06 05 03 19 01 00)                               ; PROP_TFT_STATUS
0.490.601     PropMgr:ff122df8:00:00: *** mpu_send(06 05 03 34 00 00)                               ; PROP_Q_POSITION
0.535.218  ShootCaptu:ff149c50:93:03: scsCapEnd
0.555.495  **INT-36h*:ff2e4494:00:00: *** mpu_recv(46 45 05 12 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 a4 00) ; EVENTID_AFPintData
0.555.925  **INT-36h*:ff2e4494:00:00: *** mpu_recv(0c 0b 05 13 06 00 7d 1b 01 ac 0f 00)             ; EVENTID_ImageParamData
0.556.715    EventMgr:ff0da6cc:93:03: scsAFPINTParamCBR(JobID=86909)
0.557.358  **INT-36h*:ff2e4494:00:00: *** mpu_recv(3a 39 05 03 01 01 00 00 00 00 03 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ff ff ff ff 0c a7 44 b3 d6 ba 6d 6b b3 78 b6 80 36 00) ; EVENTID_AFTER_RELEASE_DATA
0.557.486    EventMgr:ff0da638:93:03: scsIMAGEParamCBR(JobID=86909)
0.557.612    EventMgr:ff0dabd8:93:03: scsAfterReleaseDataCBR(86909)
0.629.940  **INT-36h*:ff2e4494:00:00: *** mpu_recv(0c 0a 0a 08 10 00 04 02 00 cc 00)                ; PD_NotifyOlcInfoChanged
0.639.966     PropMgr:ff122df8:00:00: *** mpu_send(08 06 04 17 00 00 00)                            ; PROP_REMOTE_SW2
0.640.635  **INT-36h*:ff2e4494:00:00: *** mpu_recv(06 05 04 17 00 00)                               ; PROP_REMOTE_SW2
0.650.662     PropMgr:ff122df8:00:00: *** mpu_send(08 06 04 16 00 00 00)                            ; PROP_REMOTE_SW1
0.651.297  **INT-36h*:ff2e4494:00:00: *** mpu_recv(06 05 04 16 00 00)                               ; PROP_REMOTE_SW1
0.654.087  **INT-36h*:ff2e4494:00:00: *** mpu_recv(06 04 05 0f 00)                                  ; EVENTID_RELEASE_END
0.654.429  **INT-36h*:ff2e4494:00:00: *** mpu_recv(06 04 05 04 00)                                  ; EVENTID_RELEASE_OFF_SW2OFF
0.654.969  ShootCaptu:ff14a70c:93:03: scsReleaseEnd
0.655.040  ShootCaptu:ff14b8ec:93:03: scsReleaseOff
0.660.721  **INT-36h*:ff2e4494:00:00: *** mpu_recv(06 04 05 0b 00)                                  ; EVENTID_METERING_TIMER_START_SW1OFF
0.661.112  **INT-36h*:ff2e4494:00:00: *** mpu_recv(08 06 09 0c 00 00 00)                            ; PROP_LV_HALF_SHUTTER
0.665.787  ShootCaptu:ff149d60:93:03: scsFinalReadoutDone
0.670.388  ShootCaptu:ff14a154:93:03: scsFinalReadoutDone (2057)

The AfterReleaseData is required to create a CR2, but I'm not sure how exactly it's used.

Some full logs here (not this exact one, but in the same format). The SCS state machine (ShootCapture task) is described here.

a1ex

  • Administrator
  • Hero Member
  • *****
  • Posts: 12323
  • Emergencies only
Re: MPU communication
« Reply #56 on: March 31, 2018, 10:07:49 AM »
Please find a custom build for logging MPU messages on most EOS models (and a few Canon messages, to get some context):

https://builds.magiclantern.fm/jenkins/view/Experiments/job/startup-log-mpu/

Expected to work in demanding scenarios (such as LiveView or photo capture), unlike the general-purpose startup log (which is quite a bit more verbose).

The resulting logs should be annotated to understand what's up with them (unless you already know MPU message codes by heart).

leegong

  • New to the forum
  • *
  • Posts: 42
Re: MPU communication
« Reply #57 on: March 31, 2018, 06:53:12 PM »
@a1ex :
Sorry , just get why no Msg 05 08 in your log , Msg05 08 is not enabled  in usual setting , it's a hidden option ,
In 550D , Msg05 08 depends on 16bits setting data at eeprom ADDR 0x1042 ,
you have to modify setting in eeprom @0x1042 to enable Msg05 08 at first .
EDIT :
Msg08 02 fun_0x52 changes eeprom @0x1042.
Msg08 02 fun_0x53 reads eeprom @0x1042.
EDIT :
The 16bits comes from EEPROM @0x1042 , but i have no idea about big endian or little endian in EEPROM ,
bit1:bit0 = 0 - Msg0508 disabled
bit1:bit0 = 1 ,2 ,3 -  type of info data

leegong

  • New to the forum
  • *
  • Posts: 42
Re: MPU communication
« Reply #58 on: April 13, 2018, 08:39:07 AM »
Decoding of part of Msg05 02 :
Code: [Select]
00000000 struc_Msg05_02  struc  # (sizeof=0x2E)
00000000 MsgHeader:      struc_msg_header ?       # == 0x2E , 0x5 , 0x2
00000003 TV?:            .byte ?                  # XREF: build_msg05_02_ReleaseBeforeData+2Ew
00000004 AV?:            .byte ?
00000005 TV??ISO??:      .byte ?                  # XREF: build_msg05_02_ReleaseBeforeData:loc_54462w
00000006 field_6:        .byte ?
00000007 ISO_sure:       .byte ?                  # XREF: build_msg05_02_ReleaseBeforeData+D4w
00000008 field_8:        .byte ?
00000009 LV_BV_char0:    .byte ?
0000000A LV_BV_char1:    .byte ?
0000000B field_B:        .byte ?
0000000C field_C:        .byte ?                  # == 0x3
0000000D field_D:        .byte ?
0000000E field_E:        .byte ?
0000000F _PROP_WBB_GM:   .byte ?
00000010 _PROP_WBB_BA:   .byte ?
00000011 _PROP_WBS_GM:   .byte ?
00000012 _PROP_WBS_BA:   .byte ?
00000013 field_13:       .byte ?
00000014 field_14:       .byte ?
00000015 field_15:       .byte ?
00000016 field_16:       .byte ?
00000017 field_17:       .byte ?
00000018 field_18:       .byte ?
00000019 LV_HALF_SHUTTER_bit0:.byte ?
0000001A temperature:    .byte ?
0000001B Lens_attrib:    .byte ?
0000001C _important_char0:.byte ?
0000001D _important_char1:.byte ?
0000001E _important_char2:.byte ?
0000001F Focal_Length:   .half ?
00000021 Focus_Point:    .half ?
00000023 field_23:       .byte ?
00000024 field_24:       .byte ?
00000025 field_25:       .byte ?
00000026 field_26:       .byte ?
00000027 field_27:       .byte ?
00000028 field_28:       .byte ?
00000029 field_29:       .byte ?
0000002A field_2A:       .byte ?
0000002B field_2B:       .byte ?
0000002C field_2C:       .byte ?
0000002D field_2D:       .byte ?
0000002E struc_Msg05_02  ends

leegong

  • New to the forum
  • *
  • Posts: 42
Re: MPU communication
« Reply #59 on: April 13, 2018, 08:48:58 AM »
There are two kinds of Msg05 03 Release after data , the difference between them is from field0x1A to field0x29 ,
this section (16 bytes) may contains power info or AF info , depending on setting in eeprom .
Here is  Msg05 03 which contains power info :
Code: [Select]
00000000 struc_Msg05_03  struc  # (sizeof=0x3D)
00000000 MsgHeader:      struc_msg_header ?       # == 0x3D , 0x5 , 0x3
00000003 field_3:        .byte ?
00000004 field_4:        .byte ?
00000005 CYC07_timing_counter:.word ?
00000009 PROP_AF_MODE:   .byte ?
0000000A field_A:        .byte ?
0000000B Image_orientation:.byte ?
0000000C field_C:        .byte ?
0000000D field_D:        .byte ?
0000000E field_E:        .byte ?
0000000F field_F:        .byte ?
00000010 field_10:       .byte ?
00000011 field_11:       .byte ?
00000012 field_12:       .byte ?
00000013 field_13:       .byte ?
00000014 field_14:       .byte ?
00000015 field_15:       .byte ?
00000016 field_16:       .byte ?
00000017 field_17:       .byte ?
00000018 field_18:       .byte ?
00000019 field_19:       .byte ?
0000001A Vfo1_div_4:     .byte ?
0000001B Vfo2_div_4:     .byte ?
0000001C vbat_noload:    .byte ?
0000001D vbat_bcon:      .byte ?
0000001E field_1E:       .byte ?
0000001F field_1F:       .byte ?
00000020 _Resister:.byte ?
00000021 _remaining_capacity:.byte ?
00000022 field_22:       .byte ?
00000023 field_23:       .byte ?
00000024 field_24:       .byte ?
00000025 field_25:       .byte ?
00000026 field_26:       .byte ?
00000027 field_27:       .byte ?
00000028 field_28:       .byte ?
00000029 field_29:       .byte ?
0000002A FocusDistance_first?:.half ?
0000002C FocusDistance_second?:.half ?
0000002E field_2E:       .byte ?
0000002F field_2F:       .byte ?
00000030 field_30:       .byte ?
00000031 field_31:       .byte ?
00000032 field_32:       .byte ?
00000033 field_33:       .byte ?
00000034 field_34:       .byte ?
00000035 field_35:       .byte ?
00000036 field_36:       .byte ?
00000037 field_37:       .byte ?
00000038 field_38:       .byte ?
00000039 field_39:       .byte ?
0000003A field_3A:       .byte ?
0000003B field_3B:       .byte ?
0000003C field_3C:       .byte ?
0000003D struc_Msg05_03  ends

a1ex

  • Administrator
  • Hero Member
  • *****
  • Posts: 12323
  • Emergencies only
Re: MPU communication
« Reply #60 on: April 15, 2018, 03:58:11 PM »
On some models (those with TX19A MPU), you can read the EEPROM, with the mpu_dump module. The 70D is not one of them - it uses F74966A, just like 100D and 700D. The 5D3 and 6D use F74965A, while the 650D and EOSM use F74964A. These are probably Fujitsu FR (just a guess), and the protocol for talking to the main CPU is the same as with those models with TX19A (many messages are actually identical).

Vanilla mpu_dump already outputs some valid files on 5D3:
- MPU-ROM.BIN (size 1MB, trying to dump more results in duplicate copies of the same data)
- MPU-EEP.BIN (last used lens names are present here)

Ran cpu_rec against MPU-ROM.BIN, and the closest one appears to be SuperH.

Guess: R5F74965ANBG?

String: V1.00-SH2A-FPU
Software manual, hardware manual
Renesas search page: F74
Wanted: datasheet of a similar device (with SH2A-FPU core).

ArcziPL

  • Contributor
  • Member
  • *****
  • Posts: 135
Re: MPU communication
« Reply #61 on: April 15, 2018, 06:28:16 PM »
- MPU-EEP.BIN (last used lens names are present here)

This EEPROM content most probably stores AF calibration data, correct? If it is already readable and writeable on ML level (!), understanding its content should be the key to AF-adjustment in all bodies. Here I have an idea: reading the content before and after altering AFMA settings in a AFMA-enabled body. Might be, that this setting is transferred to MPU, which then stores it in EEPROM?
70D.112 | M50.102 | M.202

leegong

  • New to the forum
  • *
  • Posts: 42
Re: MPU communication
« Reply #62 on: May 18, 2018, 02:45:28 AM »
STROBO communication interface is found , lots of STROBO commands such as 0xA1 , 0xA2 .......
AE CCD data is found , double int16 7x9 array , low 10bits are effective , then converted into 8bits 7x9 array.
Code: [Select]
00000000 Msg0502_ReleaseBeforeData struc  # (sizeof=0x2E)
00000000 MsgHeader:      struc_msg_header ?       # XREF: build_msg05_02_ReleaseBeforeData+Ew
00000000                                          # build_msg05_02_ReleaseBeforeData+12w ...  # == 0x2E , 0x5 , 0x2
00000003 TV?:            .byte ?                  # XREF: build_msg05_02_ReleaseBeforeData+2Ew
00000004 AV?:            .byte ?                  # XREF: build_msg05_02_ReleaseBeforeData+30o
00000005 TV??ISO??:      .byte ?                  # XREF: build_msg05_02_ReleaseBeforeData:loc_54462w
00000006 field_6:        .byte ?
00000007 ISO_sure:       .byte ?                  # XREF: build_msg05_02_ReleaseBeforeData+D4w
00000008 field_8:        .byte ?                  # XREF: build_msg05_02_ReleaseBeforeData+DCw
00000009 LV_BV_char0:    .byte ?                  # XREF: build_msg05_02_ReleaseBeforeData:loc_544F0w
0000000A LV_BV_char1:    .byte ?                  # XREF: build_msg05_02_ReleaseBeforeData+F6w
0000000B AE??:           .byte ?                  # XREF: build_msg05_02_ReleaseBeforeData+102o
0000000C field_C:        .byte ?                  # XREF: build_msg05_02_ReleaseBeforeData+120w  # == 0x3
0000000D field_D:        .byte ?                  # XREF: build_msg05_02_ReleaseBeforeData+1B8w
0000000E _PROP_AEB_div_3:.byte ?                  # XREF: build_msg05_02_ReleaseBeforeData+1BCw
0000000F _PROP_WBB_GM_div_3:   .byte ?                  # XREF: build_msg05_02_ReleaseBeforeData+1C4w
00000010 _PROP_WBB_BA_div_3:   .byte ?                  # XREF: build_msg05_02_ReleaseBeforeData+1CCw
00000011 _PROP_WBS_GM_div_3:   .byte ?                  # XREF: build_msg05_02_ReleaseBeforeData+1D4w
00000012 _PROP_WBS_BA_div_3:   .byte ?                  # XREF: build_msg05_02_ReleaseBeforeData+1DCw
00000013 field_13:       .byte ?                  # XREF: build_msg05_02_ReleaseBeforeData+1E4w
00000014 strobo_CMD_0xA9_response:.byte ?         # XREF: build_msg05_02_ReleaseBeforeData+1ECw
00000015 field_15:       .byte ?                  # XREF: build_msg05_02_ReleaseBeforeData+23Aw
00000016 strobo_CMD_0xE6_Response_char01_b2b1b0_remapped:.byte ?
00000016                                          # XREF: build_msg05_02_ReleaseBeforeData+23Cw
00000017 field_17:       .byte ?                  # XREF: build_msg05_02_ReleaseBeforeData+244w
00000018 field_18:       .byte ?                  # XREF: build_msg05_02_ReleaseBeforeData+248w
00000019 PROP_LV_HALF_SHUTTER_bit0:.byte ?        # XREF: build_msg05_02_ReleaseBeforeData+252w
0000001A temperature_plus_128:    .byte ?                  # XREF: build_msg05_02_ReleaseBeforeData+25Cw
0000001B Lens_attrib:    .byte ?                  # XREF: build_msg05_02_ReleaseBeforeData+26Cw
0000001B                                          # build_msg05_02_ReleaseBeforeData+2A6w
0000001C _important_char0:.byte ?                 # XREF: build_msg05_02_ReleaseBeforeData+296w
0000001C                                          # build_msg05_02_ReleaseBeforeData+2B4w ...
0000001D _important_char1:.byte ?                 # XREF: build_msg05_02_ReleaseBeforeData+29Cw
0000001D                                          # build_msg05_02_ReleaseBeforeData+2B6w ...
0000001E _important_char2:.byte ?                 # XREF: build_msg05_02_ReleaseBeforeData:loc_546C0w
0000001E                                          # build_msg05_02_ReleaseBeforeData+2C4o
0000001F Focal_Length:   .half ?                  # XREF: build_msg05_02_ReleaseBeforeData+2C8o
0000001F                                          # build_msg05_02_ReleaseBeforeData+2DEo
00000021 FocusPoint_bit_pattern:.half ?           # XREF: build_msg05_02_ReleaseBeforeData+30Cw
00000021                                          # build_msg05_02_ReleaseBeforeData+312w
00000023 field_23:       .byte ?
00000024 field_24:       .byte ?
00000025 field_25:       .byte ?
00000026 field_26:       .byte ?
00000027 Metering_calculating_result_char00:.byte ?
00000027                                          # XREF: build_msg05_02_ReleaseBeforeData+31Cw
00000028 Metering_calculating_result_char01:.byte ?
00000028                                          # XREF: build_msg05_02_ReleaseBeforeData+324w
00000029 Metering_calculating_result_char02:.byte ?
00000029                                          # XREF: build_msg05_02_ReleaseBeforeData+32Cw
0000002A Metering_calculating_result_char03:.byte ?
0000002A                                          # XREF: build_msg05_02_ReleaseBeforeData+334w
0000002B field_2B:       .byte ?                  # XREF: build_msg05_02_ReleaseBeforeData+33Aw  # == 1
0000002C BOOL_unknown:   .byte ?                  # XREF: build_msg05_02_ReleaseBeforeData+348w
0000002D field_2D:       .byte ?                  # XREF: build_msg05_02_ReleaseBeforeData+18w
0000002E Msg0502_ReleaseBeforeData ends

leegong

  • New to the forum
  • *
  • Posts: 42
Re: MPU communication
« Reply #63 on: May 18, 2018, 02:50:16 AM »
Code: [Select]
Msg0503_ReleaseAfter_Data struc  # (sizeof=0x3D)
00000000 MsgHeader:      struc_msg_header ?       # == 0x3D , 0x5 , 0x3
00000003 field_3:        .byte ?
00000004 field_4:        .byte ?
00000005 CYC07_timing_counter_X_10:.word ?        # XREF: build_msg05_03_ReleaseAfterData+6Co
00000009 PROP_AF_MODE:   .byte ?                  # XREF: build_msg05_03_ReleaseAfterData+82w
0000000A field_A:        .byte ?                  # XREF: build_msg05_03_ReleaseAfterData+90w
0000000B Image_orientation:.byte ?                # XREF: build_msg05_03_ReleaseAfterData+98w
0000000C strobo_CMD_0xFC_response_char0:.byte ?   # XREF: build_msg05_03_ReleaseAfterData+A6o
0000000D strobo_CMD_0xFC_response_char1:.byte ?
0000000E strobo_CMD_0xFC_response_char2:.byte ?
0000000F strobo_CMD_0xFC_response_char3:.byte ?
00000010 strobo_CMD_0xFC_response_char4:.byte ?
00000011 strobo_CMD_0xFC_response_char5:.byte ?
00000012 field_12:       .byte ?                  # XREF: build_msg05_03_ReleaseAfterData+D4w
00000013 field_13:       .byte ?                  # XREF: build_msg05_03_ReleaseAfterData+EAw
00000014 field_14:       .byte ?                  # XREF: build_msg05_03_ReleaseAfterData+F8w
00000015 field_15:       .byte ?                  # XREF: build_msg05_03_ReleaseAfterData+106w
00000016 field_16:       .byte ?                  # XREF: build_msg05_03_ReleaseAfterData+110w
00000017 field_17:       .byte ?                  # XREF: build_msg05_03_ReleaseAfterData:loc_54934w
00000018 field_18:       .byte ?                  # XREF: build_msg05_03_ReleaseAfterData+166w
00000019 field_19:       .byte ?                  # XREF: build_msg05_03_ReleaseAfterData+16Cw
0000001A Vfo1_div_4:     .byte ?                  # XREF: build_msg05_03_ReleaseAfterData+17Ew
0000001B Vfo2_div_4:     .byte ?                  # XREF: build_msg05_03_ReleaseAfterData+184w
0000001B                                          # build_msg05_03_ReleaseAfterData+1BEo
0000001C vbat_noload_div_4:.byte ?                 # XREF: build_msg05_03_ReleaseAfterData+18Aw
0000001D vbat_bcon_div_4: .byte ?                  # XREF: build_msg05_03_ReleaseAfterData+190w
0000001E Aop_div_4:       .byte ?                  # XREF: build_msg05_03_ReleaseAfterData+196w
0000001F Aop??_div_4:     .byte ?                  # XREF: build_msg05_03_ReleaseAfterData+19Cw
00000020 battery_Resister_div4:.byte ?            # XREF: build_msg05_03_ReleaseAfterData+1A2w
00000021 battery_remaining_capacity:.byte ?       # XREF: build_msg05_03_ReleaseAfterData+1A8w
00000022 field_22:       .byte ?
00000023 field_23:       .byte ?
00000024 field_24:       .byte ?
00000025 field_25:       .byte ?
00000026 field_26:       .byte ?
00000027 field_27:       .byte ?
00000028 field_28:       .byte ?
00000029 field_29:       .byte ?
0000002A FocusDistance_first:.half ?              # XREF: build_msg05_03_ReleaseAfterData+1CEw
0000002A                                          # build_msg05_03_ReleaseAfterData+1D6w  # from response half00 of Lens CMD 0xC2
0000002C FocusDistance_second:.half ?             # XREF: build_msg05_03_ReleaseAfterData+1E0w
0000002C                                          # build_msg05_03_ReleaseAfterData+1E8w  # from response half02 of Lens CMD 0xC2
0000002E field_2E:       .byte ?                  # XREF: build_msg05_03_ReleaseAfterData+1EEw  # == 0
0000002F field_2F:       .byte ?                  # XREF: build_msg05_03_ReleaseAfterData+B0w  # == 0xC
00000030 TMRC_Capture03_timing_1st:.half ?        # XREF: build_msg05_03_ReleaseAfterData+C0o
00000032 TMRC_Capture03_timing_2nd:.half ?
00000034 TMRC_Capture03_timing_3th:.half ?
00000036 TMRC_Capture02_timing_1st:.half ?
00000038 TMRC_Capture02_timing_2nd:.half ?
0000003A TMRC_Capture02_timing_3th:.half ?
0000003C dummy:          .byte ?                  # XREF: build_msg05_03_ReleaseAfterData+22w
0000003D Msg0503_ReleaseAfter_Data ends

leegong

  • New to the forum
  • *
  • Posts: 42
Re: MPU communication
« Reply #64 on: May 21, 2018, 02:56:33 AM »
Code: [Select]
00000000 Metering_Row    struc  # (sizeof=0x12) 
00000000 Pixel_00:       .half ?                  # XREF: AE_action_API+17Cr
00000002 Pixel_01:       .half ?
00000004 Pixel_02:       .half ?
00000006 Pixel_03:       .half ?
00000008 Pixel_04:       .half ?
0000000A Pixel_05:       .half ?
0000000C Pixel_06:       .half ?
0000000E Pixel_07:       .half ?
00000010 Pixel_08:       .half ?
00000012 Metering_Row    ends
Code: [Select]
00000000 half_7x9_Metering struc  # (sizeof=0x7E)
00000000 Metering_Row0:  Metering_Row ?           # XREF: AE_action_API+17Cr
00000012 Metering_Row1:  Metering_Row ?
00000024 Metering_Row2:  Metering_Row ?
00000036 Metering_Row3:  Metering_Row ?
00000048 Metering_Row4:  Metering_Row ?
0000005A Metering_Row5:  Metering_Row ?
0000006C Metering_Row6:  Metering_Row ?
0000007E half_7x9_Metering ends
Code: [Select]
RAM:FFFFAE98 ADch02_Metering_LayerA:half_7x9_Metering <0>  # DATA XREF: AE_action_API+1A8r
RAM:FFFFAE98                                          # AE_data_non_linear_converting+E2r ...
RAM:FFFFAE98                                          # from AD CH02
RAM:FFFFAF16 ADch02_Metering_LayerB:half_7x9_Metering <0>:3  # DATA XREF: AE_action_API+1C0r
RAM:FFFFAF16                                          # AE_data_non_linear_converting+12Ar ...
RAM:FFFFAF16                                          # from AD CH02

leegong

  • New to the forum
  • *
  • Posts: 42
Re: MPU communication
« Reply #65 on: May 25, 2018, 04:46:27 AM »
Based on known_spells.h ,  on 550D MCU side ,
 if i'm not mistaken ,  MCU reports PROP 80030035  to CPU , which is equal to ( temperature + 128 ) inside Msg_03_0x38.

a1ex

  • Administrator
  • Hero Member
  • *****
  • Posts: 12323
  • Emergencies only
Re: MPU communication
« Reply #66 on: May 26, 2018, 10:40:18 AM »
Nice find; on my startup logs, this property has values from 0x8c to 0xb5, most of them around 0x9a, and appears to be valid on all models.

TODO: cross-check this with temperature info written in EXIF.

Edit: in 500D firmware, this is called PROP_BOARD_TEMP. Greg found it a while ago:

Video temperature :
Code: [Select]
mpu_recv(06 05 03 38 af 00) // 0xAF - 128 = 47°C
PROP_BOARD_TEMP 47Ž

leegong

  • New to the forum
  • *
  • Posts: 42
Re: MPU communication
« Reply #67 on: May 28, 2018, 09:49:11 AM »
550D MCU sends many structures to CPU with successive multi Msg03_0x32 (PROP 8003003A)
which is stated in known_spells.h , the following table is info of structures inside PROP 8003003A ,
each Msg03_0x32 contains of 0x32 bytes of payload of structures listed in TAB_Msg03_32_payload_info .
EDIT : Name in TAB_Msg03_32_payload_info is just the name of first byte of the structure , does't stands for
name of structure .

Code: [Select]
00000000 struc_23FC0     struc  # (sizeof=0x8)    # XREF: ROM:TAB_Msg03_32_payload_infor
00000000 SizeOfByte:     .half ?                  # XREF: Report_Msg03_32+3Ar
00000002 SRC_Data_Location:.byte ?                # 0 - RAM , 1 : EEPROM
00000003 unused_byte:    .byte ?
00000004 RAM_ADDR:           .word ?                  # offset
00000008 struc_23FC0     ends

Code: [Select]
00000000 struc_94        struc  # (sizeof=0x8)    # XREF: ROM:00024008r
00000000 SizeOfByte:     .half ?
00000002 SRC_Data_Location:.byte ?                # 0 - RAM , 1 : EEPROM
00000003 field_3:        .byte ?
00000004 EEPROM_ADDR:    .word ?                  # base 16
00000008 struc_94        ends

Code: [Select]
00023FC0 TAB_Msg03_32_payload_info:struc_23FC0 <  0x12,    0,    0, PROP_SHUTTER_bak00> # 0
ROM:00023FC0                 struc_23FC0 <     8,    0,    0, PROP_SHUTTER_FFFFD7E4> # 1
ROM:00023FC0                 struc_23FC0 <  0x1E,    0,    0, RAM00_struc_D7B0> # 2
ROM:00023FC0                 struc_23FC0 <  0x1A,    0,    0, PROP_SHOOTING_MODE> # 3
ROM:00023FC0                 struc_23FC0 <  0x1E,    0,    0, RAM01_struc_D7B0> # 4
ROM:00023FC0                 struc_23FC0 <     4,    0,    0, Msg01_42_PROP_PHOTO_STUDIO_MODE> # 5
ROM:00023FC0                 struc_23FC0 <  0x64,    0,    0, unk_FFFFD568> # 6
ROM:00023FC0                 struc_23FC0 <  0x64,    0,    0, unk_FFFFD630> # 7
ROM:00023FC0                 struc_23FC0 <  0x64,    0,    0, unk_FFFFD5CC> # 8
ROM:00024008                 struc_94 <  0x12,    1,    0,     0x14D0> # 0
ROM:00024008                 struc_94 <     8,    1,    0,     0x15C0> # 1
ROM:00024008                 struc_94 <  0x1A,    1,    0,     0x1480> # 2
ROM:00024008                 struc_94 <  0x1A,    1,    0,     0x1480> # 3
ROM:00024008                 struc_94 <  0x1A,    1,    0,     0x1480> # 4
ROM:00024008                 struc_94 <  0x64,    1,    0,     0x1300> # 5
ROM:00024008                 struc_94 <  0x64,    1,    0,     0x1380> # 6
ROM:00024008                 struc_94 <  0x64,    1,    0,     0x1400> # 7
ROM:00024008                 struc_94 <  0x64,    1,    0,     0x1500> # 8
ROM:00024008                 struc_94 <  0x64,    1,    0,     0x1300> # 9
ROM:00024008                 struc_94 <  0x64,    1,    0,     0x1300> # 0xA
ROM:00024008                 struc_94 <  0x1E,    1,    0,     0x14A0> # 0xB
ROM:00024008                 struc_94 <  0x1E,    1,    0,     0x14A0> # 0xC
ROM:00024008                 struc_94 <  0x1E,    1,    0,     0x1580> # 0xD

   

leegong

  • New to the forum
  • *
  • Posts: 42
Re: MPU communication
« Reply #68 on: May 29, 2018, 12:18:36 PM »
Any info of pixel color pattern of AE CCD ?   

leegong

  • New to the forum
  • *
  • Posts: 42
Re: MPU communication
« Reply #69 on: May 30, 2018, 02:00:28 PM »
Msg0303 is ERR code , Msg03_0x29 (PROP 80030023) is Err ClassID which may be remapped from ERR code .

leegong

  • New to the forum
  • *
  • Posts: 42
Re: MPU communication
« Reply #70 on: June 01, 2018, 01:27:48 PM »
On 550D MCU side ,  sub_0x376F8 sends and receives 16bits Command/Response to/from AF ccd .
in TX 16bits , bit15:bit13 looks like CMD code , bit12:bit0 is unknown .
Does anybody know the detailed info of AF CCD in550D ?

reddeercity

  • Contributor
  • Hero Member
  • *****
  • Posts: 2101
Re: MPU communication
« Reply #71 on: December 16, 2018, 04:32:59 AM »
Is there anyway to decipher the MPU String in  dm-log ?
I have a belief that the HDMI somehow uses the MPU

What I'm looking for is info on remove the black side bar on 5d2 in HDMI ,
In Liveview the side pillar bars in hdmi  causing it to be downsize to 1650x1080
but I notice if I play back a H264 .Mov file in camera with HDMI connected to Ninja HDMI Harddrive recorder
I get full width (1920x1080) , so no more side pillar black bars
On exit of h264 .Mov file to Liveview , the pillar side bars return -- back to 1650x1080
So I run a dm-log build , basically connected hdmi then  loaded a .mov with the play button
while the cam was logging , so the first one is before I plugged hdmi cable in , and it just repeated
4 "mpu send" & 1 "mpu recv" until I plugged in the hdmi
Code: [Select]
446F4>    PropMgr:00096948:00:00: *** mpu_send(26 24 09 17 ca 01 e5 00 ee 2b 00 00 b0 21 00 00 1d 12 00 00 97 01 a0 00 00 00 00 00 00 00 00 00 00 00 98 19 00), from ff861a88
81766>    PropMgr:00096948:00:00: *** mpu_send(26 24 09 17 a7 01 d3 00 ab dd 00 00 88 7c 00 00 59 4b 00 00 b8 00 5f 00 00 00 00 00 00 00 00 00 00 00 17 00 00), from ff861a88
BE98A>    PropMgr:00096948:00:00: *** mpu_send(26 24 09 17 ec 01 f6 00 6b 5d 00 00 18 35 01 00 6a aa 00 00 d2 01 ea 00 00 00 00 00 00 00 00 00 00 00 98 19 00), from ff861a88
FBA69>    PropMgr:00096948:00:00: *** mpu_send(26 24 09 17 c4 01 e2 00 3a 2b 00 00 f7 8c 00 00 18 59 00 00 5c 01 b8 00 00 00 00 00 00 00 00 00 00 00 98 19 00), from ff861a88
2362E> **INT-36h*:000969b4:00:00: *** mpu_recv(06 05 03 17 a5 00), from ff99f6cc

When I plugged in the hdmi cable I got
2 "mpu send" & 1 "mpu recv" , and it just cycle with the 2 send  & 1 recv
Code: [Select]
83424>    PropMgr:00096948:00:00: *** mpu_send(0c 0a 09 0a 71 6e 01 29 54 65 00), from ff861a88
8374A>    PropMgr:00096948:00:00: *** mpu_send(08 07 09 04 29 00 01 00), from ff861a88
83E01> **INT-36h*:000969b4:00:00: *** mpu_recv(0a 09 09 10 71 54 65 6d 6d 00), from ff99f6cc

Edit: here the log file
mpu_hdmi_review_h264-5d2-dm-0001.log


reddeercity

  • Contributor
  • Hero Member
  • *****
  • Posts: 2101
Re: MPU communication
« Reply #72 on: December 16, 2018, 06:19:12 AM »
Did a little more reading searching , found  a link to mpu-communication in qemu source
Quote
The message sent by the main CPU is:
06 04 02 00 00 00
•06 is message size (always even)
•04 is payload size (always message_size - 1 or message_size - 2)
•02 00 00 00 is the payload:◦02 00 identifies the message (look it up in known_spells.h)
◦the last 00 means no special confirmation was requested (Complete WaitID string)
◦the remaining 00 may contain
If I fellow this example ,
Code: [Select]
83E01> **INT-36h*:000969b4:00:00: *** mpu_recv(0a 09 09 10 71 54 65 6d 6d 00), from ff99f6cc1st set of number "0a"=10> even
2nd set : "09" payload size -1  , ok good so far so good
3rd set of numbers "09 10 71 54" is the payload
"09 10" are define in the know_spells.h
{ 0x09, 0x10, 0x80050010, "PROP_BV" }
Don't know what "Prop_BV" is  but there is for sure HDMI spells too -- more research

a1ex

  • Administrator
  • Hero Member
  • *****
  • Posts: 12323
  • Emergencies only
Re: MPU communication
« Reply #73 on: December 16, 2018, 07:08:11 PM »
Is there anyway to decipher the MPU String in  dm-log ?

Of course, here's a short example:

Code: [Select]
cd qemu-eos/qemu-2.5.0/hw/eos/mpu_spells/
python annotate_mpu_log.py 5D2 /path/to/logfile.log

From your log, it just shows regular LiveView activity, nothing unusual.

Code: [Select]
0E91F>    PropMgr:00096948:00:00: *** mpu_send(06 04 09 00 00), from ff861a88                        ; PROP_LV_LENS
0FB36> **INT-36h*:000969b4:00:00: *** mpu_recv(3e 3c 09 00 bb 93 40 00 be 8e a0 00 bd c3 00 00 3b c0 a0 00 00 00 00 00 bd ea 60 00 ba 9f 40 00 00 00 00 00 00 00 08 10 21 20 50 64 00 26 51 66 00 18 00 56 00 4e 00 00 00 81 00 00 00), from ff99f6cc ; PROP_LV_LENS
234B4>    PropMgr:00096948:00:00: *** mpu_send(0c 0a 09 0a 71 6e 01 29 54 65 00), from ff861a88      ; PROP_LV_BV
23816>    PropMgr:00096948:00:00: *** mpu_send(08 07 09 04 29 00 01 00), from ff861a88               ; PROP_LV_APERTURE
23F63> **INT-36h*:000969b4:00:00: *** mpu_recv(0a 09 09 10 71 54 65 6d 6d 00), from ff99f6cc         ; PROP_BV
2424E> **INT-36h*:000969b4:00:00: *** mpu_recv(0a 08 09 05 00 81 00 00 00), from ff99f6cc            ; PROP_LV_LENS_STABILIZE
3C5DA>    PropMgr:00096948:00:00: *** mpu_send(26 24 09 17 f7 01 fb 00 03 c7 00 00 41 a3 01 00 9a d8 00 00 d9 01 ee 00 00 00 00 00 00 00 00 00 00 00 00 00 00), from ff861a88 ; PROP_LV_FOCUS_DATA
...

Quote
I have a belief that the HDMI somehow uses the MPU

I have a strong belief it does not. I'm not sure if it's even aware of whether an external monitor is connected, but need to double-check.

The HDMI chip appears to use I2C, but I did not attempt to understand what exactly it does. I'm pretty sure there's a lot of interesting stuff there, but it's not my primary focus (at least for now).

reddeercity

  • Contributor
  • Hero Member
  • *****
  • Posts: 2101
Re: MPU communication
« Reply #74 on: December 17, 2018, 05:51:33 AM »
Thanks for the pointers , yes I see you're  right I forgot about HDMI I2C communication thread
still good to learn about MPU & spells , helps me understand more  :D