Shop OBEX P1 Docs P2 Docs Learn Events
BS2e in Professionl Development Board — Parallax Forums

BS2e in Professionl Development Board

BullwinkleBullwinkle Posts: 101
edited 2006-11-04 00:53 in BASIC Stamp
G'Day dudes,

I just took delivery on a brand new BS2e microcontroller board for my Professional Development Board, since I simply ran out of EEPROm storage on the BS2 for my irrigation project.

Before I disconnected the BS2 I ran the stampbc -j -p /dev/ttyUSB1 command and got this result:

trying to identify the stamp
-- stamp is a BS2, firmware 16

Then I connected the BS2e and ran the same command and got this result:

trying to identify the stamp
** no stamp or unable to identify


What gives? What have I done wrong? The orientation of the BS2 and BS2e boards are the same. What have I missed?

BTW - I am running the stampbc program on Linux. The showtty program has also been run and setup accordingly.

What is going one here? This is a brand new processor board?

Steve

Comments

  • Aaqil KhanAaqil Khan Posts: 60
    edited 2006-11-01 19:21
    Did u modify the directive in your program for the new BS2e?
    check that.


    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    E=mc^2
  • BullwinkleBullwinkle Posts: 101
    edited 2006-11-01 20:59
    Aaqil Khan said...
    Did u modify the directive in your program for the new BS2e?
    check that.

    Yes, but it won't even get that far.

    I'm just trying the -j switch on the stampbc to get the BS2e it identify itself. But it does not.

    I think it might be DOA.
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2006-11-01 22:58
    Hello,

    ·· If you feel the BASIC Stamp is not working you can send it in to us for testing.· Please note that all BASIC Stamp Modules are 100% tested before shipping so I can't help but wonder if this is just an issue with the Linux Software.· If you have access to a PC you could certainly narrow things down.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
  • BullwinkleBullwinkle Posts: 101
    edited 2006-11-01 23:03
    I tried the -i BS2e switch on the stampbc program, with the -v switch, and got this result:

    steve@bullwinkle:~/stamp$ ./stampbc -i BS2e -p /dev/ttyUSB1 -j -v -s 0
    trying to identify the stamp
    -- opened /dev/ttyUSB1 as 3
    break sequence
    -- try BS2
    -- sending identification sequence
    ** could not identify stamp as a BS2
    -- closed 3
    -- opened /dev/ttyUSB1 as 3
    break sequence
    -- try BS2e
    -- sending identification sequence
    ** could not identify stamp as a BS2e
    -- closed 3
    -- opened /dev/ttyUSB1 as 3
    break sequence
    -- try BS2sx
    -- sending identification sequence
    ** could not identify stamp as a BS2sx
    -- closed 3
    -- opened /dev/ttyUSB1 as 3
    break sequence
    -- try BS2p
    -- sending identification sequence
    ** could not identify stamp as a BS2p
    -- closed 3
    -- opened /dev/ttyUSB1 as 3
    break sequence
    -- try BS2pe
    -- sending identification sequence
    ** could not identify stamp as a BS2pe
    -- closed 3
    -- opened /dev/ttyUSB1 as 3
    break sequence
    -- try BS2px
    -- sending identification sequence
    ** could not identify stamp as a BS2px
    ** no stamp or unable to identify

    I will connect the Prof. Dev board to my daughter's Windows PC later and see what happens there. It's not looking good thus far... cry.gif

    BTW - Swapping the BS2 back into the Prof. Dev board, still connected to the same Linux laptop gives this result:

    steve@bullwinkle:~/stamp$ ./stampbc -p /dev/ttyUSB1 -v -j
    trying to identify the stamp
    -- opened /dev/ttyUSB1 as 3
    break sequence
    -- try BS2
    -- sending identification sequence
    -- stamp is a BS2, firmware 16

    Works like a bought one! tongue.gif

    Post Edited (Bullwinkle) : 11/2/2006 9:13:19 AM GMT
  • BullwinkleBullwinkle Posts: 101
    edited 2006-11-02 10:30
    I just tried it in my daughters Windows PC - it was detected no problem.

    So the problem is with the stampbc program and/or Linux.

    Thanks for the advice.
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2006-11-02 15:16
    Bullwinkle,
    ·
    ·· At this point I would recommend contacting the author of the program to see if he might have some insight as to what’s happening.· Take care.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
  • BullwinkleBullwinkle Posts: 101
    edited 2006-11-02 20:54
    Or fix the code myself!?

    The joy of open source. wink.gif

    Might try a stack trace first ...

    I did contact Adrian Schnieder, not reply yet.
  • BullwinkleBullwinkle Posts: 101
    edited 2006-11-04 00:53
    I fixed it! smile.gif

    I did an strace on Adrian Schieder's stampbc program and noticed that when stampbc sent an "e" to the BS2e, it got back "ef". Stampbc then timed out and went on to try the values for other stamps. So I edited SBloader.cc and chenged the line:

    {"e", "e", STAMPID_BS2E, 8},

    to

    {"e", "ef", STAMPID_BS2E, 8},

    Recompiled it, and now it works! smile.gif

    The joy of open source. I have sent Adrian a PM so he can incorporate this change into his master version of the code.
Sign In or Register to comment.