CECD Services

CECD Services

Streetpass stuff.

CECD Service “cecd:u” #

Command HeaderDescription
0x000100C2Open/ OpenRawFile
0x00020042Read/ ReadRawFile
0x00030104ReadMessage
0x00040106ReadMessageWithHMAC
0x00050042Write/ WriteRawFile
0x00060104WriteMessage
0x00070106WriteMessageWithHMAC
0x00080102Delete
0x000900C2SetData (16*length+10 of CecMessageId buffer in cmdbuff[4] (always 16*8+10), CecMessageId* in cmdbuf[5])
0x000A00C4ReadData/ GetSystemInfo
0x000B0040Start
0x000C0040Stop
0x000D0082GetCecInfoBuffer
0x000E0000GetCecdState (returns CecStateAbbreviated in cmdbuf[2])
0x000F0000GetCecInfoEventHandle (returns event handle in cmdbuf[3])
0x00100000GetChangeStateEventHandle (returns event handle in cmdbuf[3])
0x00110104OpenAndWrite
0x00120104OpenAndRead
0x001E0082GetEventLog
0x001F0000GetEventLogStart
0x0020….?
0x0021….?

CecDataPathType #

NameValueNotes
CEC_PATH_MBOX_LIST1data:/CEC/MBoxList____
CEC_PATH_MBOX_INFO2data:/CEC//MBoxInfo____
CEC_PATH_INBOX_INFO3data:/CEC//InBox___/BoxInfo_____
CEC_PATH_OUTBOX_INFO4data:/CEC//OutBox__/BoxInfo_____
CEC_PATH_OUTBOX_INDEX5data:/CEC//OutBox__/OBIndex_____
CEC_PATH_INBOX_MSG6data:/CEC//InBox___/_<message_id>
CEC_PATH_OUTBOX_MSG7data:/CEC//OutBox__/_<message_id>
CEC_PATH_ROOT_DIR10data:/CEC
CEC_PATH_MBOX_DIR11data:/CEC/
CEC_PATH_INBOX_DIR12data:/CEC//InBox___
CEC_PATH_OUTBOX_DIR13data:/CEC//OutBox__
101 thru 199 (inclusive)data:/CEC//MBoxData.0
CECMESSAGE_BOX_ICON101data:/CEC//MBoxData.001
CECMESSAGE_BOX_TITLE110data:/CEC//MBoxData.010

CecCommand #

NameValueNotes
CEC_COMMAND_NONE0
CEC_COMMAND_START1
CEC_COMMAND_RESET_START2
CEC_COMMAND_READYSCAN3
CEC_COMMAND_READYSCANWAIT4
CEC_COMMAND_STARTSCAN5
CEC_COMMAND_RESCAN6
CEC_COMMAND_NDM_RESUME7
CEC_COMMAND_NDM_SUSPEND8
CEC_COMMAND_NDM_SUSPEND_IMMEDIATE9
CEC_COMMAND_STOPWAIT0xA
CEC_COMMAND_STOP0xB
CEC_COMMAND_STOP_FORCE0xC
CEC_COMMAND_STOP_FORCE_WAIT0xD
CEC_COMMAND_RESET_FILTER0xE
CEC_COMMAND_DAEMON_STOP0xF
CEC_COMMAND_DAEMON_START0x10
CEC_COMMAND_EXIT0x11
CEC_COMMAND_OVER_BOSS0x12
CEC_COMMAND_OVER_BOSS_FORCE0x13
CEC_COMMAND_OVER_BOSS_FORCE_WAIT0x14
CEC_COMMAND_END0x15

CecStateAbbreviated #

NameValueNotes
CEC_STATE_ABBREV_IDLE1Corresponds to CEC_STATE_IDLE
CEC_STATE_ABBREV_INACTIVE2Corresponds to CEC_STATEs *FINISH*, *POST, and OVER_BOSS
CEC_STATE_ABBREV_SCANNING3Corresponds to CEC_STATE_SCANNING
CEC_STATE_ABBREV_WLREADY?4Corresponds to CEC_STATE_WIRELESS_READY when some unknown bool is true
CEC_STATE_ABBREV_OTHER5Corresponds to CEC_STATEs besides *FINISH*, *POST, and OVER_BOSS and those listed here

CecMessageId #

TypeField
char[8]data

CECD Service “cecd:s” #

This contains a similar (probably the same) command handler from 0x0001…. to 0x0021…. as them in cecd:u. In addition, it also contains

Command HeaderDescription
0x0401….?
0x04020002GetCecInfoEventHandleSys
0x040A….?
0x040B….?
0x040C0042?
0x040D0082?
0x040E….?
0x040F….?
0x0410….?
0x04110042?
0x041200C2?
0x0413….?
0x0414….?
0x0415….?
0x04160002?
0x0417….?

CECD Service “cecd:ndm” #

Command HeaderDescription
0x00010000Initialize
0x00020000Deinitialize
0x00030000ResumeDaemon
0x00040040SuspendDaemon(bool immediately)
0x00050000QueryStatus
0x00060042GetNZoneInfo
0x00070042SetNZoneSSIDList
0x00080042SetNZoneMacFilter

Category:Services