This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

omapl138 ipc 例程运行问题



各项环境都完善了,DSP端程序已经显示power up,然后运行例子程序HOST端,在MessageQ_Open处始终返回NOTFOUND状态,无法进行后续,查看代码然后在LAD.txt文件中发现是在connectsocket处返回错误22,无效参数,日志文件如下:

[0.449589]
Initializing LAD... [0.478113]
opening FIFO: /tmp/LAD/LADCMDS
[17.647355] Retrieving command...
[17.655084]
LAD_CONNECT:
[17.655300] client FIFO name = /tmp/LAD/69
[17.655453] client PID = 69
[17.655579] assigned client handle = 0
[17.661426] FIFO /tmp/LAD/69 created
[17.671404] FIFO /tmp/LAD/69 opened for writing
[17.672606] sent response
[17.672822] DONE
[17.672958] Retrieving command...
[17.673448] Sending response...
[17.674223] Retrieving command...
[17.674544] LAD_MULTIPROC_GETCONFIG: calling MultiProc_getConfig()...
[17.674717] MultiProc_getConfig() - 2 procs
[17.674850] # processors in cluster: 2
[17.674965] cluster baseId: 0
[17.675080] ProcId 0 - "HOST"
[17.675201] ProcId 1 - "DSP"
[17.675321] status = 0
[17.675431] DONE
[17.675534] Sending response...
[17.676273] Retrieving command...
[17.676590] LAD_NAMESERVER_SETUP: calling NameServer_setup()...
[17.676812] NameServer_setup: entered, refCount=0
[17.677259] NameServer_setup: creating listener thread
[17.678397] NameServer_setup: exiting, refCount=1
[17.678801] status = 0
[17.678983] DONE
[17.679122] Sending response...
[17.679826] Retrieving command...
[17.680570] LAD_MESSAGEQ_GETCONFIG: calling MessageQ_getConfig()...
[17.680775] status = 0
[17.680927] DONE
[17.681057] Sending response...
[17.681751] Retrieving command...
[17.682088] LAD_MESSAGEQ_SETUP: calling MessageQ_setup()...
[17.682269] MessageQ_setup: entered, refCount=0
[17.682427] NameServer_create(): 'MessageQ'
[17.682854] MessageQ_setup: exiting, refCount=1
[17.683056] status = 0
[17.683204] DONE
[17.683335] Sending response...
[17.685784] listener_cb: Entered Listener thread.
[17.686062] NameServer: waiting for unblockFd: 2, and socks: maxfd: 2
[17.686429] Retrieving command...
[17.686733] NameServer_attach: --> procId=1, refCount=0
[17.867796] NameServer_attach: created send socket: 5, procId 1
[17.868354] NameServer_attach: connect failed: procId=1, errno=22 (Invalid argument)
[17.868825] closing send socket: 5
[17.869129] NameServer_attach: <-- refCount=0, status=-1
[17.869324] Sending response...
[17.871084] Retrieving command...
[17.871426] LAD_MESSAGEQ_CREATE: calling MessageQ_create(0x30718, 0x30738)...
[17.871609] MessageQ_create: creating 'HOST:MsgQ:01'
[17.871801] MessageQ_create: returning obj=0x355d8, qid=0x80
[17.871971] status = 0
[17.872109] DONE
[17.872237] Sending response...
[17.875429] Retrieving command...
[17.875769] LAD_MESSAGEQ_ANNOUNCE: calling MessageQ_announce(0x30718, 0x355d8)...
[17.875958] MessageQ_announce: announcing 0x355d8
[17.876165] NameServer_add: Entered key: 'HOST:MsgQ:01', data: 0x80
[17.876342] status = 0
[17.876481] DONE
[17.876607] Sending response...
[17.882580] Retrieving command...
[17.882914] LAD_NAMESERVER_GETUINT32: calling NameServer_getUInt32(0x354f0, 'DSP:MsgQ:01')...
[17.883135] NameServer_getLocal: entry key: 'DSP:MsgQ:01' not found!
[17.883315] NameServer_getRemote: no socket connection to processor 1
[17.883468] value = 0x80
[17.883604] status = -5
[17.883732] DONE
[17.883859] Sending response...
[17.889372] Retrieving command...
[18.885452] LAD_NAMESERVER_GETUINT32: calling NameServer_getUInt32(0x354f0, 'DSP:MsgQ:01')...
[18.885731] NameServer_getLocal: entry key: 'DSP:MsgQ:01' not found!
[18.885916] NameServer_getRemote: no socket connection to processor 1
[18.886066] value = 0x80
[18.886202] status = -5
[18.886430] DONE
[18.886571] Sending response...
[18.886832] Retrieving command...
[19.888050] LAD_NAMESERVER_GETUINT32: calling NameServer_getUInt32(0x354f0, 'DSP:MsgQ:01')...
[19.888329] NameServer_getLocal: entry key: 'DSP:MsgQ:01' not found!
[19.888517] NameServer_getRemote: no socket connection to processor 1
[19.888672] value = 0x80
[19.888806] status = -5
[19.889022] DONE
[19.889168] Sending response...
[19.889722] Retrieving command...
[20.890669] LAD_NAMESERVER_GETUINT32: calling NameServer_getUInt32(0x354f0, 'DSP:MsgQ:01')...
[20.890949] NameServer_getLocal: entry key: 'DSP:MsgQ:01' not found!
[20.891130] NameServer_getRemote: no socket connection to processor 1
[20.891533] value = 0x80
[20.891705] status = -5
[20.891847] DONE
[20.891975] Sending response...
[20.892518] Retrieving command...
[21.893259] LAD_NAMESERVER_GETUINT32: calling NameServer_getUInt32(0x354f0, 'DSP:MsgQ:01')...
[21.893539] NameServer_getLocal: entry key: 'DSP:MsgQ:01' not found!
[21.893723] NameServer_getRemote: no socket connection to processor 1
[21.893882] value = 0x80
[21.894020] status = -5
[21.894249] DONE
[21.894392] Sending response...
[21.894944] Retrieving command...
[22.895692] LAD_NAMESERVER_GETUINT32: calling NameServer_getUInt32(0x354f0, 'DSP:MsgQ:01')...
[22.895971] NameServer_getLocal: entry key: 'DSP:MsgQ:01' not found!
[22.896157] NameServer_getRemote: no socket connection to processor 1
[22.896311] value = 0x80
[22.896447] status = -5
[22.896673] DONE
[22.896812] Sending response...
[22.897361] Retrieving command...
[23.900678] LAD_MESSAGEQ_DESTROY: calling MessageQ_destroy()...
[23.900918] MessageQ_destroy: entered, refCount=1
[23.901077] MessageQ_delete: deleting 0x355d8
[23.901333] MessageQ_delete: returning 0
[23.901578] MessageQ_destroy: exiting, refCount=0
[23.901839] status = 0
[23.902000] DONE
[23.902132] Sending response...
[23.902845] Retrieving command...
[23.903256] LAD_NAMESERVER_DESTROY: calling NameServer_destroy()...
[23.903450] NameServer_destroy: entered, refCount=1
[23.903603] NameServer_destroy: shutdown listener...
[23.903957] NameServer: back from select()
[23.904219] NameServer: listener thread, event: SHUTDOWN
[23.905423] NameServer_destroy: joining listener thread...
[23.905926] NameServer_destroy: exiting, refCount=0
[23.906129] status = 0
[23.906275] DONE
[23.906400] Sending response...
[23.908274] Retrieving command...
[23.915365]
LAD_DISCONNECT: [23.915598]
client handle = 0[23.915753]
closing FIFO /tmp/LAD/69 (filePtr=0x342f0)
[23.916031] done, unlinking /tmp/LAD/69
[23.926267] DONE
[23.926497] Retrieving command...
[23.931941] EOF detected on FIFO, closing FIFO: /tmp/LAD/LADCMDS
[23.932284]
opening FIFO: /tmp/LAD/LADCMDS

求问,后续无法打印显示了,日志文件也没法写,这个可能会是什么错误?谢谢……