You Are Here:

Community: Developer Discussion Boards

#1 Old using indicator structures in linux - 1970-01-01, 02:00

Join Date: Mar 2003
Posts: 1
zephyia
Offline
Registered User
I have manged to create applications that pass request structures through the message queue and recieve response structures back, which is analougous to the IPC pipe used in the windows SDK. However how does one register to recieve an indicator event from the message queue. There is no example of this avliable. IE it is easy to write functions to use a message queue in linux to emulate the IPCSendRequest and related functions from the windows SDK, however how would one emulate the IPCRegisterIndications function?? do we pass an indicator structure through the message queue and then poll the third queue the driver creates ? if indications are recieved on the third queue the process of recieving them is simple, just need to know how to register for the indicators.

Hopefully I have explained my question well, otherwise please post and I will elaborate. Asides from this minor gripe I have no problems with the linux version of the driver and SDK, although it would be nice if it would work with SMP based systems.

Thanks

Chris

#2 Old RE: using indicator structures in linux - 1970-01-01, 02:00

Join Date: Mar 2003
Posts: 452
Nokia_D211_Support
Offline
Regular Contributor
Hello,

In the Windows side the the following works. Please, try it on Linux, too:

Indications are sent to a third message queue (you can see all the three queues with ipcs -q). They can be received in the similar manner as responces, with the difference that no request sent (check d211/ui/sndmsg.cpp) first. The key argument for the msgget can be discovered with KEY_OF_MSQ macro (in d211/control/public/ipclinux.h), e.g. KEY_OF_MSQ(ipc_indication->Header.MessageID). The msgrcv is used to get the indication from the indication queue. The msgtyp argument for the msgrcv can be get with the IND_MSG_TYPE macro: IND_MSG_TYPE(ipc_indication->Header.MessageID). The msgflg argument must be set to 0.

Note, that the driver supports only a subset of SDK indications.


Best Regards,

Nokia D211 Support
  « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia