Does anybody knows where to open a mssg and use it with cgi functions?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Does anybody knows where to open a mssg and use it with cgi functions?

ソリューションへジャンプ
1,581件の閲覧回数
MQXuser
Contributor III
I need to  send and receive Messages From other Tasks into cgi functions. In order to do this
I need to open a mssg queue and create a message pool in the task calling this functions.

Where should I open mssg queue and create the mssg pool??
0 件の賞賛
返信
1 解決策
998件の閲覧回数
JuroV
NXP Employee
NXP Employee

You create message pool in order to have "shared common memory" to which you send messages and read messages from.

You can imagine message queue as a mailbox. A task can send messages to any mailbox (queue), but if you want to read from a queue, you have to open it.

So: you have to open queue in the task, which should read those messages (place breakpoint on the CGI request handler and you can see in which task's context you are). You create pools independetly on queues: e.g. at init of main task.

Messages cannot be read in the interrupt service routines.

Message Edited by JuroV on 2009-09-09 05:02 PM

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
999件の閲覧回数
JuroV
NXP Employee
NXP Employee

You create message pool in order to have "shared common memory" to which you send messages and read messages from.

You can imagine message queue as a mailbox. A task can send messages to any mailbox (queue), but if you want to read from a queue, you have to open it.

So: you have to open queue in the task, which should read those messages (place breakpoint on the CGI request handler and you can see in which task's context you are). You create pools independetly on queues: e.g. at init of main task.

Messages cannot be read in the interrupt service routines.

Message Edited by JuroV on 2009-09-09 05:02 PM
0 件の賞賛
返信