BS2e in Professionl Development Board
Bullwinkle
Posts: 101
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
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
check that.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
E=mc^2
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.
·· 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
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...
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!
Post Edited (Bullwinkle) : 11/2/2006 9:13:19 AM GMT
So the problem is with the stampbc program and/or Linux.
Thanks for the advice.
·
·· 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
The joy of open source.
Might try a stack trace first ...
I did contact Adrian Schnieder, not reply yet.
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!
The joy of open source. I have sent Adrian a PM so he can incorporate this change into his master version of the code.