Results 1 to 5 of 5

Thread: Packed data anyone????????

  1. #1
    Newbie
    Join Date
    Jan 2009
    Posts
    10

    Packed data anyone????????

    Hey everyone, I know someone can help me here. I created the OBD program OBD INFORMER and everything works rather well however when I try to capture data from a lot of sensors, it take around 6 seconds per cycle. I would like to use the packed data mode on the elms 323 interface but I dont know how to read the data in VB6.

    right now i have a comport called obd2 and I read the data into a string using the normal data mode so it looks like this....

    obd2.Output = "010D" & vbCr
    Do
    mystrg = mystrg & frmObd2.obd2.Input
    Loop While InStr(1, mystrg, ">", vbTextCompare) < 1
    B1 = Mid(mystrg, 7, 2)
    'convert selection into decimal
    B3 = ("&H" & B1)
    'Do calculation for speed
    Speed = (B3 * 0.6215)

    Can someone post the same code sample using packed data mode????? I know someone can help me here! THANKS EVERYONE!!!

  2. #2
    Newbie
    Join Date
    Jan 2009
    Posts
    10

    Answer

    Well if anyone wants the solution, here it is!

    obd2.Output = "010D" & vbCr
    Do
    mystrg = mystrg & obd2.Input
    'Debug.Print mystrg
    DoEvents
    Loop While InStr(1, mystrg, ">", vbTextCompare) < 1
    bytes = StrConv(mystrg, vbFromUnicode)
    If UBound(bytes) >= 3 Then
    'Do calculation for speed
    Speed = (bytes(3) * 0.6215)
    end if

  3. #3
    VENDOR - ScanTool Vitaliy's Avatar
    Join Date
    Dec 2006
    Location
    Phoenix, AZ
    Posts
    624
    Quote Originally Posted by jfiliaul View Post
    Well if anyone wants the solution, here it is!

    obd2.Output = "010D" & vbCr
    Do
    mystrg = mystrg & obd2.Input
    'Debug.Print mystrg
    DoEvents
    Loop While InStr(1, mystrg, ">", vbTextCompare) < 1
    bytes = StrConv(mystrg, vbFromUnicode)
    If UBound(bytes) >= 3 Then
    'Do calculation for speed
    Speed = (bytes(3) * 0.6215)
    end if
    Is it really any faster using the packed data mode?

    Vitaliy
    OBDLink MX: world's smallest, fastest, most advanced OBD/Bluetooth adapter with SW and MS CAN support. Read the review to learn more.
    Need to look up a diagnostic trouble code? Try the most up-to-date, free DTCsearch.com!

    You cannot send me a private message using this forum. Use my email instead: vitaliy[@]scantool.net.

  4. #4
    Newbie
    Join Date
    Jan 2009
    Posts
    10
    Quote Originally Posted by Vitaliy View Post
    Is it really any faster using the packed data mode?

    Vitaliy
    Truth is, NO its really not. the documentation says it is 2 to 3 times faster but in my case its really not! The other thing I'm afraid of, if I use packed data mode, it is not supported with the ELM 327. Im not sure what I'm going to do now.

  5. #5
    VENDOR - ScanTool Vitaliy's Avatar
    Join Date
    Dec 2006
    Location
    Phoenix, AZ
    Posts
    624
    Send me an email, vitaliy at scantool.net. I may be able to help.
    OBDLink MX: world's smallest, fastest, most advanced OBD/Bluetooth adapter with SW and MS CAN support. Read the review to learn more.
    Need to look up a diagnostic trouble code? Try the most up-to-date, free DTCsearch.com!

    You cannot send me a private message using this forum. Use my email instead: vitaliy[@]scantool.net.

Similar Threads

  1. Renault "Tuner List" Head Unit/CD changer hacking - Controls
    By Vicne in forum Hardware Development
    Replies: 800
    Last Post: 10-30-2012, 07:09 PM
  2. Replies: 437
    Last Post: 04-16-2012, 07:49 AM
  3. Can you guys please help me??? OBD Renault Clio help needed!
    By madtoonbull in forum Engine Management, OBD-II, Engine Diagnostics, etc.
    Replies: 7
    Last Post: 02-19-2009, 10:36 AM
  4. Pinout Color Codes / Tables
    By gummybear in forum General Hardware Discussion
    Replies: 4
    Last Post: 05-12-2005, 03:05 AM
  5. VOICES Traffic Data
    By stevieg in forum V.O.I.C.E.S
    Replies: 85
    Last Post: 05-31-2004, 08:24 PM

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
  •