160 Baud aldl scantool


Closed Thread
Results 1 to 29 of 29
  1. #1
    Join Date
    Aug 2008
    Posts
    31

    Default 160 Baud aldl scantool

    hi,
    i am trying to build a scantool using pic16f84 and lcd to read daewoo data stream i think it is 160 baud data , can any one guide me how to start building this project

    ASM

  2. #2
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924

    Default

    Is this a barcode reader?

    What have you done so far? Can you display anything on the LCD?

    In the mean time.
    http://www.google.com/custom?hl=en&c...arcode&spell=1
    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Aug 2008
    Posts
    31

    Default

    no i want to read data stream from daewoo car i think it uses GM ECM running on ALDL baud 160

  4. #4
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924

    Default

    Oh, well that makes sense.

    Go here and get the picmulticalc. http://www.mister-e.org/pages/utilitiespag.html
    It will show how to set the USART for any baud.
    Thats the best I can do for you.
    Dave
    Always wear safety glasses while programming.

  5. #5
    Join Date
    Aug 2008
    Posts
    31

    Default

    is there any one who can guide me to start design this project i am new in picbasic

  6. #6
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924

    Default

    If you are new to this the first thing you need to do is learn how to blink an LED. Then learn how to make the LCD work, and then learn how to use the USART. (a different PIC chip will be needed)

    Just how new are you? We need to know where to start.
    Dave
    Always wear safety glasses while programming.

  7. #7
    Join Date
    Aug 2008
    Posts
    31

    Default

    hi,
    thanks for your fast replay i can blink a led and also i can display text on lcd that what i test before

  8. #8
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924

    Default

    I think the next step would be to get a chip with hardware serial (USART) and work with that. The USART is not to much different than using SERIN2, just seems to be a bit more useful at times.

    If you can find out exactly what the ECM baud is and if the signal is inverted or not. Can you connect a PC to it? Then we should be able to see what you have to work with.
    Dave
    Always wear safety glasses while programming.

  9. #9
    skimask's Avatar
    skimask Guest

    Default

    Quote Originally Posted by ahmed_salah View Post
    thanks for your fast replay i can blink a led and also i can display text on lcd that what i test before
    Do you have the actual ALDL160 protocol standard?
    You can read it at 160 baud all day, but without the protocol or knowing how the data is formatted, the numbers are going to be jibberish on the LCD and useless.

    And, for me anyways, a Google search on '160 baud aldl' brings me a whole load of decent links with hardware, software, and at the very least, a base to work with....if I was building an ALDL reader....which I'm not....

  10. #10
    Join Date
    Aug 2008
    Posts
    31

    Default

    what chip have serial (USART) to start working with.
    ECM baud rate 160 Baud
    there is a lot of circuits which can be interfaced with PC and using special software we can see these data e

    during my search on internet i found some one make circuit to do that using pic16f84 and lcd (20*4) but the one who design this circuit place assembely software for the pic but i am not good at all on assembely

  11. #11
    skimask's Avatar
    skimask Guest

    Default

    Quote Originally Posted by ahmed_salah View Post
    what chip have serial (USART) to start working with.
    Use the Parametric search at www.microchip.com, find one with a UART/USART on it, pick and chose which one you want.

    during my search on internet i found some one make circuit to do that using pic16f84 and lcd (20*4) but the one who design this circuit place assembely software for the pic but i am not good at all on assembely
    Well, email them, maybe they'll share their code...maybe not...
    that's the breaks...and without knowing what data is where in the data stream, you may as well be receiving random noise.

  12. #12
    Join Date
    Aug 2008
    Posts
    31

    Default

    hi,
    please find attached file for published aldl display circuit using pic16f84 and lcd display u will find also attached assembly program if u can help cause i am not good in assembely to convert this program into picbasic ????
    Attached Files Attached Files

  13. #13
    skimask's Avatar
    skimask Guest

    Default

    Quote Originally Posted by ahmed_salah View Post
    please find attached file for published aldl display circuit using pic16f84 and lcd display u will find also attached assembly program if u can help cause i am not good in assembely to convert this program into picbasic ????
    I could help, but my time/effort cost more than FREE...

    However, if you attempt to convert this over to PBP yourself, and you have problems, I am absolutely sure that a number of people here on these forums would be more than happy to assist in the endeavour.

  14. #14
    Join Date
    Aug 2008
    Posts
    31

    Default

    so u will help me to do that or ????

  15. #15
    Join Date
    Jun 2005
    Location
    Wisconsin
    Posts
    382

    Default

    Quote Originally Posted by ahmed_salah View Post
    so u will help me to do that or ????
    I think skimask's point is the folks on this forum will help answer specific questions but can't do the work for you.

    If you want the work done for you some member are willing to do it but they will charge for their services.

  16. #16
    Join Date
    Aug 2008
    Posts
    31

    Default

    and how much that will cost

  17. #17
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959

    Default

    I don't think you'll find anyone to convert that program.
    It's the absolute worst ASM program I've ever seen.

    Code:
    Label_0045  MOVLW   0x20
    Label_0046  MOVWF   0x1C
                MOVF    0x18      , W
                ANDLW   0x0F
                ADDLW   0x30
                MOVWF   0x1B
                RETLW   0x00
    Label_0029  MOVF    0x1C      , W
                CALL    Label_0003
                MOVF    0x1D      , W
                CALL    Label_0003
                MOVF    0x1E      , W
                CALL    Label_0003
                MOVF    0x1F      , W
                CALL    Label_0003
                RETLW   0x00
    Label_0031  MOVLW   0x04
                GOTO    Label_0047
                MOVLW   0x03
    Label_0047  MOVWF   0x12
    Label_0048  BCF     STATUS    , C
                RRF     0x15      , f
                RRF     0x16      , f
    No comments, numbered labels, yuck!

    I doubt that it could be converted without extensive knowlege of the protocol.
    And if they already knew the protocol, it would be easier to just rewrite it from scratch.

    DT

  18. #18
    Join Date
    Aug 2008
    Posts
    31

    Default

    thanks for your trying there are another ones do not want to help at all ???

  19. #19
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924

    Default

    Here is what you do.

    Forget about the assembly, most likely will not work for you.
    From the zip you provided.
    I have tested this only with 1227747 ECM but it should work also with other 160 baud units after you have verified / altered ALDL data stream decoding to match with your application.
    You can blink an LED and make a LCD work. Learn about serial communications and write you own code. Then you can say that PBP paid for its self.

    Seems like the trick is in finding the protocol.
    Dave
    Always wear safety glasses while programming.

  20. #20
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924

    Default

    Quote Originally Posted by ahmed_salah View Post
    thanks for your trying there are another ones do not want to help at all ???
    And who are these people??? The 500,000 ones who have not answered your post???
    Dave
    Always wear safety glasses while programming.

  21. #21
    skimask's Avatar
    skimask Guest

    Default

    Quote Originally Posted by mackrackit View Post
    And who are these people??? The 500,000 ones who have not answered your post???
    Besides that...
    From what I see, I don't see the O/P asking for HELP as defined as HELP as defined as 'helping somebody out', as in somebody has done something and is looking for somebody else to assist in completion of something.
    What I see is still 'Could somebody do this for me'...

    And here's my contribution
    Should compile in PBP just fine!
    Attached Files Attached Files

  22. #22
    Join Date
    Aug 2008
    Posts
    31

    Thumbs down

    no those people who wants money to help another ones

  23. #23
    skimask's Avatar
    skimask Guest

    Default

    Quote Originally Posted by ahmed_salah View Post
    no those people who wants money to help another ones
    I don't WANT money and I sure don't NEED any money (well, I guess I could always use an extra buck or two).
    However, and I think I speak for more than one person, what you WANT is for somebody to convert this 'program' (and I use that term loosely) to PicBasicPro. What we NEED is a frame of reference on which to convert this program. We've got no idea how this program should work in the end product, no datasheet for the module you are trying to COPY. You haven't provided anyone with any sort of reference for the ALDL protocol (yes, I know it's 160 baud async-serial).
    All you've done is downloaded a bunch of assembly (and a hex file) and wanted somebody to convert it for you.
    Where's this HELP you're asking for?
    I see you asking for somebody to DO for you, not HELP you.

    Again, you make an attempt at converting the code, and I'm sure a dozen or more people will step up and help you fix any errors you may have made...until then, well, I'm taking a nap...

  24. #24
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959

    Default

    Quote Originally Posted by skimask View Post
    And here's my contribution
    Should compile in PBP just fine!
    I see you're overcoming the colon addiction, by switching to @ signs.

    It's a step forward.

    DT

  25. #25
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818

    Default

    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  26. #26
    skimask's Avatar
    skimask Guest

    Default

    Quote Originally Posted by Darrel Taylor View Post
    I see you're overcoming the colon addiction, by switching to @ signs.
    It's a step forward.
    Ctrl-H is a wonderful thing!
    I still like my colons though.

  27. #27
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959

    Default

    Quote Originally Posted by skimask View Post
    Ctrl-H is a wonderful thing!
    I still like my colons though.
    In notepad maybe. MCSP is ctrl-R

    I've seen you say that before.
    But I still haven't figured out how to replace a colon with a carriage return.

    DT

  28. #28
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818

    Default

    Quote Originally Posted by Darrel Taylor View Post
    In notepad maybe. MCSP is ctrl-R

    I've seen you say that before.
    But I still haven't figured out how to replace a colon with a carriage return.
    A clever macro perhaps ?
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  29. #29
    skimask's Avatar
    skimask Guest

    Default

    Quote Originally Posted by Darrel Taylor View Post
    In notepad maybe. MCSP is ctrl-R

    I've seen you say that before.
    But I still haven't figured out how to replace a colon with a carriage return.
    MS Word lets you special characters in either the top or bottom field.
    And yes, it's Ctrl-R in MCS, but seems to be Ctrl-H everywhere else.

Similar Threads

  1. A Serial GLCD 128x64 Simple Project
    By Oldspring in forum Off Topic
    Replies: 0
    Last Post: - 8th March 2010, 20:58
  2. PIC 18f1220 EUSART Baud Rate Cache Problem
    By wklose99 in forum Off Topic
    Replies: 3
    Last Post: - 15th April 2008, 00:39
  3. Auto Baud Rate Detection
    By mytekcontrols in forum Serial
    Replies: 10
    Last Post: - 31st October 2005, 02:17
  4. PIC12F675, accuracy of baud rate with Internal Oscillator
    By Chris Mayhew in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 31st August 2005, 22:41
  5. Baud Rate and Timing Calculator
    By picnaut in forum General
    Replies: 3
    Last Post: - 23rd January 2004, 16:48

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

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