Announcement

Collapse
No announcement yet.

freedrive sdk and receiving messages

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    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

    Comment


    • #3
      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"

      Comment


      • #5
        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.

        Comment


        • #6
          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"

          Comment


          • #7
            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
            Follow me on Twitter

            http://www.FreeICE.co.uk

            Comment


            • #8
              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"

              Comment


              • #9
                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

                Comment

                Working...
                X