×

Discussion Board

Results 1 to 6 of 6
  1. #1
    Super Contributor
    Join Date
    Mar 2004
    Location
    Czech Republic
    Posts
    2,037

    BIO messaging on 3rd (HOW TO SEND BIO MESSAGE)

    Hi,

    I've tried to implement my own bio parser. I prepared parser dll (and corresponing 'bif' resource file). I derived my own parser from CBaseScriptParser2. It seems to work, because when I've tried to enumerate bio uids and dlls over CBIODatabase API I'm able to find the parser, load the dll and invoke the parser manually. So I expect that parser works.

    Then I tried to send BIO message. I was able to send vCard without problems, but when I tried to call RSendAsMessage::SetBioTypeL() with some other uid it crash with -1 when I put here some non-existing uid. It seems to bo O.K. But when I put here UID related to my BIO message parser, which I put into corresponding resoure it leaves with -15 (KErrServerTerminated!!) and 'Main' application crash with E32USER CBase21 error on both emulator and device. It seems like Series 60 bug(

    Resource:

    RESOURCE BIO_INFO_FILE
    {
    message_type_uid=0x101F1122;
    message_parser_name="MyOwnParser.dll";
    message_app_uid=KUidUseDefaultApp;
    }

    When I called
    TRAP( err, message.SetBioTypeL(TUid::Uid(0x101F1122)) )
    'Main' application crash on both device and emulator:
    http://www.bombon.name/others/Main_E32User_CBase21.GIF
    (screenshot from emulator - sorry that I was forced to cover the app name

    So - is possible to send own BIO message type?
    Doesn anybody tried it?

    Thanks a lot for help
    Best Regaqrds,
    STeN

  2. #2
    Nokia Developer Moderator
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    28,740

    Re: BIO messaging on 3rd (HOW TO SEND BIO MESSAGE)

    Sending a BIO message does not really involve the parser.
    Priju has had some success in sending BIO stuff according to this thread: http://discussion.forum.nokia.com/fo...icture+message

  3. #3
    Super Contributor
    Join Date
    Mar 2004
    Location
    Czech Republic
    Posts
    2,037

    Re: BIO messaging on 3rd (HOW TO SEND BIO MESSAGE)

    Hi,

    first - big thank for replying..

    You'r right - parser has nothing to do with message sending itself. But then is BIO message copied to outbox it can be opened - that's the place, when parser and/or controller (to display content) is invoked.

    I wanted to create BIO message - and using RSendAsMessage class I must call SetBioTypeL() method, so it was necessary to pass as a parameter bio message uid. When I tried to put here KMsgBioUidVCard I was able to send visit card message without any problem. BUT when I tried some other number it leaves with -1 (KErrNotFound). So I've created BIO_INFO_FILE resource+parser, because I thought that when system will see that parser is provided it will allow to create message. Situaution changed, but instead of -1 it leaves with -15 and Main built-in application panics with E32USER CBase21... This panics is from my point of view OS bug. But there is still question how to send BIO message??

    I checked your VERY NICE example, but unfortunatelly:
    ---------------------------------------------------------------------
    You're using KMsgBioUidRingingTone, so you were able to send your own content, BUT not own BIO message, beacuse content was processed by system os ringbc.dll. I need to have my own BIO, which will be processed by my own parser.

    You did the same thing as me when I send visit card with my own data inside.The only difference is that you're using MTM way to send a message, while I used RSendAs API. But I need something different.

    If you have any comment or I didn't understand something - please answer me. It's always fine to read your replies!!!

    Best Regards
    and!!
    have a nice day
    STeN
    Last edited by stenlik; 2007-02-28 at 11:31.

  4. #4
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,165

    Re: BIO messaging on 3rd (HOW TO SEND BIO MESSAGE)

    The required capabilities are:

    For parser DLL: ReadDeviceData WriteDeviceData DiskAdmin NetworkControl SwEvent NetworkServices LocalServices ReadUserData WriteUserData Location UserEnvironment

    And for control DLL: NetworkControl Location ReadDeviceData WriteDeviceData SwEvent ReadUserData WriteUserData NetworkServices LocalServices UserEnvironment


    yucca

  5. #5
    Regular Contributor
    Join Date
    Oct 2003
    Location
    Spain
    Posts
    329

    Re: BIO messaging on 3rd (HOW TO SEND BIO MESSAGE)

    Hi,

    For parser DLL: ReadDeviceData WriteDeviceData DiskAdmin NetworkControl SwEvent NetworkServices LocalServices ReadUserData WriteUserData Location UserEnvironment
    As one need NetworkControl and DiskAdmin capabilities, is it reasonable to get them from symbiansigned for this pourpose?

    I have an app that needs to listen for incoming messages and do some configuration and I think this is the best solution to do it. Right now I'm abble to run app on startup and listen all the time to the message server, but I would prefer to start my app just when a incoming message arrives.

    Do you think that I will get those capabilities?

    Many thanks in advance.

  6. #6
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,165

    Re: BIO messaging on 3rd (HOW TO SEND BIO MESSAGE)


Similar Threads

  1. BIO Message Sending
    By arunshah in forum Symbian
    Replies: 1
    Last Post: 2006-11-17, 23:55
  2. Send multiple message from client to server
    By Palermo4Ever in forum Mobile Java Networking & Messaging & Security
    Replies: 2
    Last Post: 2006-06-19, 11:49
  3. BIO message problem
    By mingkit in forum General Messaging
    Replies: 1
    Last Post: 2004-08-05, 13:40
  4. nokia 7210 modem via IR doesn't work !
    By oussamaaiadi in forum PC Suite API and PC Connectivity SDK
    Replies: 1
    Last Post: 2003-03-06, 10:46

Posting Permissions

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