supplierdeeply

a800 UART

  • 4 Replies
  • 1149 Views
*

Offline alvm

  • ***
  • 116
  • Publish
    a800 UART
    « on: 23 / April / 2012, 06:13:20 »
    Advertisements
    Tx and Rx pins: https://www.box.com/s/ffd64853fcafb973531b

    UART settings 115200 1-N-8

    Event[1]>?
    [PutsCameraLogEvent]
    [DispDev_EnableEventProc]
    [StopCameraLog]
    [EngineDriver.Create]
    [Mecha.Create]
    [ShowCameraLog]
    [ExMem]
    [SS.Create]
    [Driver_EnableEventProc]
    [UI_RegistDebugEventProc]
    [StartCameraLog]
    [UI.CreatePublic]
    [ShowCameraLogInfo]
    [drysh]
    [Capture.Create]
    [DispDev.Create]
    [NewTaskShell]
    [UI.Create]
    [StopRedirectUART]
    [OpLog.Create]
    [Driver.Create]
    [StartRedirectUART]
    [EngApp.Create]
    [System.Create]
    [FA.Create]

    === Dry-shell start ===
    Dry> task
    task
    ID STATE PRI WAIT(ID) NAME
    00010001 READY 33 ------- idle
    000d0004 READY 32 ------- ClockSave
    00160005 WAIT 24 SLEEP(00160005) WdtReset
    00180006 WAIT 1 SEM(00170011) WdtPrint
    00470008 WAIT 2 EVENT(00460004) _ImageSensorTask
    004a0009 WAIT 26 SLEEP(004a0009) Thermometer
    0064000a WAIT 7 SEM(00620050) TmgGen
    0069000b WAIT 10 RCVMQ(00680004) ZoomLens
    006c000c WAIT 8 EVENT(006a0005) ZoomEvent
    006f000d WAIT 9 EVENT(006d0006) ZoomActuatorSpeedCheck
    0075000e WAIT 9 RCVMQ(00740006) FocusLens
    0078000f WAIT 8 EVENT(00770007) FocusEvent
    00800010 WAIT 1 SEM(007e005c) MechaShutter
    00850011 WAIT 17 SEM(0082005f) Nd
    008a0012 WAIT 21 RCVMQ(00890008) CZ
    00910013 WAIT 22 RCVMQ(008f0009) LEDCon
    009a0014 WAIT 19 RCVMQ(0095000a) ImgPlayDrv
    00a00015 WAIT 9 RCVMQ(009f000b) FWDDATA
    00aa0016 WAIT 22 SEM(00a60071) BeepTask
    00ab0017 SUSPEND 0 ------- errLogTask
    00b10018 WAIT 24 RCVMQ(00ad000e) CtrlSrv
    00b30019 WAIT 25 SLEEP(00b30019) SpyTask <----------------------------------------------- :D
    00b4001a WAIT 23 SLEEP(00b4001a) PhySw
    00b7001b WAIT 23 RCVMQ(00b60011) SsTask
    00c2001c WAIT 23 RCVMQ(00c10012) ShutterSoundTask
    00c9001d WAIT 23 RCVMQ(00c60013) CaptSeqTask
    00ce001e WAIT 1 SEM(00cd007c) Bye
    00d2001f WAIT 29 RCVMQ(00d10014) BatteryTask
    00dd0023 WAIT 23 RCVMQ(00dc0015) FsIoNotifyTask
    00e40024 WAIT 29 EVENT(00e10017) DPOFTask
    00f10025 WAIT 27 EVENT(00f00018) ReadScheduleTask
    00f30026 WAIT 27 EVENT(00f20019) ReadFileTask
    011d0028 WAIT 23 EVENT(011a001b) Fencing
    01230029 WAIT 21 RCVMQ(011f0017) MotionVector
    0126002a WAIT 21 EVENT(0124001e) SceneDetectTask
    012d002b WAIT 25 RCVMQ(012c001a) DevelopModule
    013a002c WAIT 1 EVENT(01360024) SynchTask
    013b002d WAIT 1 SEM(013800c1) SyncPeriod
    0140002e WAIT 21 RCVMQ(013f001c) AfIntSrvTask
    0143002f WAIT 23 RCVMQ(0141001d) AFTask
    01550030 WAIT 6 RCVMQ(01530026) WBIntegTask
    01590031 WAIT 21 EVENT(0158002c) OBCtrlTask
    015d0032 WAIT 21 RCVMQ(015b002a) ExpDrvTask
    01650033 WAIT 22 RCVMQ(0163002e) BrtMsrTask
    016a0034 WAIT 22 RCVMQ(01680031) EFChargeT
    016e0035 WAIT 21 EVENT(016b0031) CntFlashTask
    01780036 WAIT 23 RCVMQ(01770034) WBCtrl
    01930037 WAIT 22 RCVMQ(01910042) PrcssFil
    01960038 WAIT 25 SEM(019400da) FramePosition
    01990039 WAIT 23 RCVMQ(01970043) DetectMoveTask
    01a0003a READY 1 ------- EvShel
    01a5003b SUSPEND 25 ------- LowConsole
    01a6003c WAIT 24 RCVMQ(01a10045) ConsoleSvr
    01d1003f WAIT 25 RCVMQ(01ce0048) PTPSessionTASK
    01df0040 WAIT 25 RCVMQ(01de004b) TimerUtility
    01e00041 WAIT 25 RCVMQ(021b0058) DPSwitcher
    01e40042 WAIT 21 RCVMQ(01e1004c) FuUSB20Drv
    01ee0043 WAIT 21 RCVMQ(01ec0050) TrnsCtrlTask
    01f70044 WAIT 23 RCVMQ(01f40051) PTPBulkState
    02040045 WAIT 21 RCVMQ(02010054) PTPEventCnt
    02100046 WAIT 23 EVENT(020f003e) NormalThumbCache
    02150047 WAIT 25 RCVMQ(02140057) PTPtoFAPI_EventProcTask

    *

    Offline funnel

    • ****
    • 349
  • Publish
    Re: a800 UART
    « Reply #1 on: 23 / April / 2012, 08:17:56 »
    Nice that you have the courage to open the cam. However other ways exist to get similar results without opening the camera.

    For example this lua script on sx220 (uartr.lua is required):

    Code: [Select]
    require('uartr').start('A/CAMINFO.LOG')

    call_event_proc('OpenConsole')

    call_event_proc('Printf','\n\nShowAllTaskInfo() output: \n')
    sleep(10)
    call_event_proc('ShowAllTaskInfo')
    call_event_proc('Printf','\n\n')
    sleep(10)

    call_event_proc('CloseConsole')
    require('uartr').stop()

    outputs this

    Code: [Select]
    uartr.lua: start UART redirection


    ShowAllTaskInfo() output:

     NAME            ID   STATE PRI         WAIT(ID)      STACK  %        SP
    errLogTask 00e70021 SUSPEND   0         -------   0040/0400 06  00388be8
    WdtPrint   001a0006    WAIT   1    SEM(00190012)  0098/0200 29  0037b2b8
    MechaShutt 00af0017    WAIT   1    SEM(00ad0073)  0088/0800 06  00381f50
    Bye        010d0029    WAIT   1    SEM(010c0096)  0088/0200 26  003911e0
    SynchTask  019f003b    WAIT   1  EVENT(019b0039)  00d0/1000 05  0039f418
    SyncPeriod 01a0003c    WAIT   1    SEM(019d00ee)  0090/1000 03  003a0460
    _ImageSens 0064000c    WAIT   2  EVENT(0063000b)  0100/1000 06  0037e280
    LiveImageT 01880039    WAIT   4  RCVMQ(01870029)  00b8/1000 04  0039d020
    WBIntegTas 01c5003f    WAIT   6  RCVMQ(01c3003d)  00e0/1000 05  003a3428
    MechaAlarm 0086000e    WAIT   7    SEM(00830062)  00e8/0400 22  0037eae8
    TmgGen     008a000f    WAIT   7    SEM(00880064)  0088/0400 13  0037ef10
    ZoomEvent  00920011    WAIT   8  EVENT(0090000d)  00c0/0400 18  0037fae8
    FocusEvent 009e0014    WAIT   8  EVENT(009d000f)  00c0/0400 18  00380b00
    IrisEvent  00a90016    WAIT   8  EVENT(00a80010)  00c8/0400 19  00381708
    ZoomActuat 00950012    WAIT   9  EVENT(0093000e)  00c8/0400 19  0037fee8
    FocusLens  009b0013    WAIT   9  RCVMQ(009a000a)  00b0/0800 08  00380708
    Iris       00a60015    WAIT   9  RCVMQ(00a5000c)  00b0/0800 08  00381318
    ASIF       00dc001e    WAIT   9  RCVMQ(00db0011)  00b8/1000 04  00386f58
    ZoomLens   008f0010    WAIT  10  RCVMQ(008e0008)  00b0/0800 08  0037f6f0
    CZ         00b40018    WAIT  17  RCVMQ(00b3000e)  00b0/0800 08  00382730
    ImgPlayDrv 00d5001d    WAIT  19  RCVMQ(00d00010)  05d8/1000 36  00385f28
    MechaNCTas 00b60019    WAIT  20  EVENT(00b50011)  00c0/1000 04  00383728
    HecMngTask 005c000b    WAIT  21  RCVMQ(005a0005)  0178/0200 73  0037d2b8
    MotionVect 01680034    WAIT  21  RCVMQ(0164001e)  02c8/1000 17  00397de8
    SceneDetec 016b0035    WAIT  21  EVENT(0169002e)  0130/1000 07  00398f88
    AfIntSrvTa 01a5003d    WAIT  21  RCVMQ(01a4002c)  00b8/1000 04  003a1440
    OBCtrlTask 01c90040    WAIT  21  EVENT(01c80045)  00e8/0400 22  0037be78
    ExpDrvTask 01cd0041    WAIT  21  RCVMQ(01cb0041)  00e0/0800 10  003a3c30
    CntFlashTa 01de0044    WAIT  21  EVENT(01db004a)  00c8/0800 09  003a5c60
    MechaCom   00c4001b    WAIT  22    SEM(00c3007b)  0330/1000 19  00384b70
    LEDCon     00cb001c    WAIT  22  RCVMQ(00c9000f)  0108/0400 25  00384ef8
    BeepTask   00e60020    WAIT  22    SEM(00e2008a)  00b0/0800 08  00388770
    ChaseTask  016d0036    WAIT  22  EVENT(016c0030)  00f8/1000 06  00399fc8
    MainTarget 016f0037    WAIT  22  EVENT(016e0031)  0108/1000 06  0039afc0
    BrtMsrTask 01d50042    WAIT  22  RCVMQ(01d30045)  0190/1000 09  003a4b88
    EFChargeT  01da0043    WAIT  22  RCVMQ(01d80048)  00d8/0800 10  003a5448
    PrcssFil   02090047    WAIT  22  RCVMQ(02070059)  00b8/1000 04  003a8c88
    HdmiTask   00560009    WAIT  23  RCVMQ(00540003)  0140/0800 15  0037cca0
    CecTask    0059000a    WAIT  23  RCVMQ(00570004)  0158/0400 33  0037d0b8
    PhySw      00f00024 RUNNING  23         -------   0e3c/2000 44  0038e208
    SsTask     00f50026    WAIT  23  RCVMQ(00f40018)  00b8/1000 04  0038fb98
    ShutterSou 01010027    WAIT  23  RCVMQ(01000019)  00c0/0400 18  0038ff98
    CaptSeqTas 01080028    WAIT  23  RCVMQ(0105001a)  00c0/1000 04  00390fa0
    FsIoNotify 0120002e    WAIT  23  RCVMQ(011f001c)  00b0/1000 04  00393fe0
    Fencing    01620033    WAIT  23  EVENT(0160002b)  00d0/1000 05  0037adf0
    AutoShutte 01720038    WAIT  23  RCVMQ(01710021)  00b0/1000 04  0039c020
    AFTask     01aa003e    WAIT  23  RCVMQ(01a8002f)  00b8/1000 04  003a2448
    ISMainTask 01e40045    WAIT  23  EVENT(01e3004c)  0120/1000 07  003a6c70
    WBCtrl     01ed0046    WAIT  23  RCVMQ(01ec004b)  0448/1000 26  003a7c80
    ChaseFrame 02140049    WAIT  23  RCVMQ(0212005a)  00b8/1000 04  003aac98
    DetectMove 0218004a    WAIT  23  RCVMQ(0216005c)  0218/1000 13  003abb40
    WdtReset   00180005    WAIT  24  SLEEP(00180005)  0080/0200 25  0037b0c8
    LcdConTask 00530008    WAIT  24  RCVMQ(00520002)  00b8/0200 35  0037c4a8
    CtrlSrv    00ed0022    WAIT  24  RCVMQ(00e90014)  1058/1800 68  0038a380
    RotaryEnco 00f10025    WAIT  24  RCVMQ(00f20017)  00e0/0800 10  0038eb68
    EvShel     021f004b    WAIT  24    SEM(02260115)  01a0/8000 01  003b3bc0
    ConsoleSvr 0225004d    WAIT  24  RCVMQ(0220005e)  0198/0800 19  003b4cb0
    MechaAlarm 00b9001a    WAIT  25  EVENT(00bb0013)  00e0/0400 21  00383b10
    AudioLvl   00e1001f    WAIT  25    SEM(0114009b)  00a8/1000 04  00387f70
    SpyTask    00ef0023    WAIT  25  SLEEP(00ef0023)  04b4/2000 14  0038c3ac
    InitCHDKPT 0116002b    WAIT  25  SLEEP(0116002b)  0080/0200 25  003917f8
    DevelopMod 0191003a    WAIT  25  RCVMQ(0190002a)  00e8/1400 04  0039e3f8
    DispFace   020f0048    WAIT  25  EVENT(020e0050)  0838/1000 51  003a9510
    LowConsole 0224004c    WAIT  25    SEM(00050003)  00b0/0800 08  003b44b8
    ReadMultiC 0237004e    WAIT  25  RCVMQ(0235005f)  00b8/1000 04  003b5cc0
    Thermomete 0069000d    WAIT  26  SLEEP(0069000d)  00f8/0400 24  0037e690
    ReadSchedu 01340030    WAIT  27  EVENT(01330028)  0100/1000 06  00395fe0
    ReadFileTa 01360031    WAIT  27  EVENT(01350029)  0408/1000 25  00396fd8
    UartLog    025d0053    WAIT  27    SEM(025e013d)  0098/1000 03  003927e8
    CtgTotalTa 0241004f    WAIT  28  RCVMQ(02400061)  0610/1000 37  003b6cc8
    CtgTotalTa 02550052    WAIT  28  RCVMQ(02540064)  00d4/1000 05  003b9ce0
    BatteryTas 0112002a    WAIT  29  RCVMQ(0111001b)  00c8/0400 19  003915a8
    DPOFTask   0127002f    WAIT  29  EVENT(01240027)  0408/1000 25  00394fa0
    MetaCtgPrs 024b0050    WAIT  30  RCVMQ(02480063)  01b8/1000 10  003b7bd0
    MetaCtg    024c0051    WAIT  30  RCVMQ(02450062)  0a58/1000 64  003b8cd8
    ClockSave  000d0004   READY  32         -------   0060/0200 18  00379e58
    idle       00010001   READY  33         -------   0070/00a0 70  00379c40


    uartr.lua: stop UART redirection

    This can also be used with drysh shell functions but you need to find the function addresses manually because they aren't available as eventprocs afaik.

    *

    Offline alvm

    • ***
    • 116
  • Publish
    Re: a800 UART
    « Reply #2 on: 23 / April / 2012, 10:10:00 »
    I need some booting messages before EventShell is active and some mem info on fly.

    *

    Offline reyalp

    • ******
    • 9955
  • Publish
    Re: a800 UART
    « Reply #3 on: 23 / April / 2012, 12:20:06 »
    Good work, feel free to add your info to http://chdk.wikia.com/wiki/UART
    Don't forget what the H stands for.


    *

    Offline alvm

    • ***
    • 116
  • Publish
    Re: a800 UART
    « Reply #4 on: 23 / April / 2012, 14:26:59 »
    Hi reyalp,

    Could you add the info to wiki, please? I'm not familiar with it...

    Thanks,
    Alex.
    « Last Edit: 23 / April / 2012, 14:50:28 by alvm »

     

    Related Topics