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?

跳至解决方案
937 次查看
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 解答
354 次查看
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 回复
355 次查看
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 项奖励