Results 1 to 9 of 9

Thread: freedrive sdk and receiving messages

  1. #1
    Variable Bitrate warnockm's Avatar
    Join Date
    Jun 2004
    Location
    Virginia
    Posts
    433

    freedrive sdk and receiving messages

    I'm playing w/ freedrive and the sdk. I'm looking at your functions included and i understand sending messages to FD, but which function do you use to receive data? I see the ReceiveMSG sub, but obviously doesn't return data. What am i missing?

    Thanks!
    Progress - VIA EPIA SP8000 | 120 Opus Power Supply & Case | 1GB Ram | 120GB 2.5" Hard Drive | Bluetooth 2.0 | GPRS/3G | Wifi | Road Runner/LSX 2.0 (waiting for a day skin for 3.0) | iGuidance 4.0 | Lilliput 7"

  2. #2
    Constant Bitrate weekendowel's Avatar
    Join Date
    Jan 2004
    Location
    Stockholm, Sweden
    Posts
    209
    You can do it by putting a new label on the form, for example label3 and then add the following code to the modSDK module, text marked with red are existing code:

    Public Sub COMReceive(Data As String)

    'Never executed


    label3.text = Data


    End Sub

    Then you have to send a message in this format, for example if your app name is Form1 then you have to send something like this : REQUEST:FDSPEED:FORM1

  3. #3
    Variable Bitrate warnockm's Avatar
    Join Date
    Jun 2004
    Location
    Virginia
    Posts
    433
    I dont know man... for some reason it's not working. added a label and put the code in that sub. I stepped through the lines and it never seem to go into the ReceiveMsg or COMReceive subs. If i get it to work, i'll just make a dll w/ a function and not use the windows messaging stuff. It's probably good for skins, but i dont' really like it.
    Progress - VIA EPIA SP8000 | 120 Opus Power Supply & Case | 1GB Ram | 120GB 2.5" Hard Drive | Bluetooth 2.0 | GPRS/3G | Wifi | Road Runner/LSX 2.0 (waiting for a day skin for 3.0) | iGuidance 4.0 | Lilliput 7"

  4. #4
    Confusion Master
    Auto Apps:loading...
    Enforcer's Avatar
    Join Date
    Sep 2003
    Location
    If you go down to the woods today, You're sure of
    Posts
    14,618
    with weekend's example above

    make sure that the FD sdk.ini has

    FDSPEED=FORM1

    in it.

    This tells freedrive to send the information to that form/program

  5. #5
    Constant Bitrate weekendowel's Avatar
    Join Date
    Jan 2004
    Location
    Stockholm, Sweden
    Posts
    209
    Quote Originally Posted by Enforcer
    with weekend's example above

    make sure that the FD sdk.ini has

    FDSPEED=FORM1

    in it.

    This tells freedrive to send the information to that form/program
    You don't actually need to add something to sdk.ini as long as you are sending the request from your app. I know for sure this is working very well and reliable.

  6. #6
    Variable Bitrate warnockm's Avatar
    Join Date
    Jun 2004
    Location
    Virginia
    Posts
    433
    how is ReceiveMsg & COMReceive called? and why is COMReceive have the comment "'Never executed". I'm sending messages fine and FD is responding, but i can't get anything returned.
    Progress - VIA EPIA SP8000 | 120 Opus Power Supply & Case | 1GB Ram | 120GB 2.5" Hard Drive | Bluetooth 2.0 | GPRS/3G | Wifi | Road Runner/LSX 2.0 (waiting for a day skin for 3.0) | iGuidance 4.0 | Lilliput 7"

  7. #7
    FreeDrive Creator CdRsKuLL's Avatar
    Join Date
    Feb 2004
    Location
    Manchester
    Posts
    3,469
    try this example.. I have added whats needed so it now shows you how to send and rec..

    Please remember it only works in the compiled form, not in the ide

    hope it helps

    cdr
    Attached Files Attached Files

  8. #8
    Variable Bitrate warnockm's Avatar
    Join Date
    Jun 2004
    Location
    Virginia
    Posts
    433
    Doh, all it was was the name of the window. Instead of the caption name, i was using the actual form name "frmSDKExample".

    thanks for clarification.
    Progress - VIA EPIA SP8000 | 120 Opus Power Supply & Case | 1GB Ram | 120GB 2.5" Hard Drive | Bluetooth 2.0 | GPRS/3G | Wifi | Road Runner/LSX 2.0 (waiting for a day skin for 3.0) | iGuidance 4.0 | Lilliput 7"

  9. #9
    Constant Bitrate
    Join Date
    Nov 2005
    Posts
    215
    Hey on the topic of the SDK, I am working with address input.

    Question one:
    street - like pressing the street button
    is this the street in the address screen? Should using 'street' from this app respond in the address screen?

    Question two:
    input - Sends anytext to the textbox
    I am not having consistent responses with this, sometimes it will not show in the box, I should be able to use the this SDK test and send 'input:12345' to the postcode box in the address screen, yes?

    in short I am trying to add an address programmatically, currently having to use combo of input and using mouse events to work thru the address screen and not getting the best consistency.

    so is this currently the only way to enter an address?
    would expanding the 'home' function to accept a parameter and default to home if none be an idea?

    Thanks for all the work and looking forward to the new release,

    Kth

Bookmarks

Posting Permissions

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