Shop OBEX P1 Docs P2 Docs Learn Events
Basic Stamp and bluetooth serial cable replacement — Parallax Forums

Basic Stamp and bluetooth serial cable replacement

shortcircuitshortcircuit Posts: 11
edited 2007-05-13 15:54 in BASIC Stamp
using bluetooth serial works fine for my CMU cam.

But I can neither program the stamp over BT nor get a pre loaded program to serout data to a teminal

and no.. i dont want to buy some other parallax BT solution.

any ideas???

Comments

  • Martin_vLMartin_vL Posts: 18
    edited 2006-10-25 11:22
    may be the baudrate is differend

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
  • shortcircuitshortcircuit Posts: 11
    edited 2006-10-25 17:53
    uh.. nope. good try though

    how does the whole DTR-->ATN process work anyway? Can I emulate the ATN signal needed locally w/ the stamp?
    maybe I can jump the DTR line to something else?
  • allanlane5allanlane5 Posts: 3,815
    edited 2006-10-25 18:38
    The problem with 'jumping' DTR is that the BS2 IDE uses DTR as a 'master reset' signal. It expects a response back from the BS2 when it is reset within a narrow time window. So there's a closed loop -- DTR hit, BS2 recieves DTR hit and is reset, BS2 responds back that it IS reset, IDE receives BS2's message. There's no real way for you to interrupt this loop.

    And the IDE uses a hard-wired RTS to CTS connection to detect if the cable is connected -- which removes those two signals as a way of remapping DTR.
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2006-10-25 19:43
    allanlane5 said...(trimmed)
    And the IDE uses a hard-wired RTS to CTS connection to detect if the cable is connected -- which removes those two signals as a way of remapping DTR.
    Allan, correction, the IDE uses loop back on RTS/DSR.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
  • Steve JoblinSteve Joblin Posts: 784
    edited 2006-10-25 20:00
    There used to be a product called the Linkmatik Stamp Edition made by FlexiPanel that enabled you to program the Stamp without having to connect it to your PC via serial cable... doesn't look like they make it anymore though...
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2006-10-25 20:40
    Steve,
    ·
    ·· The Toothpick Stamp Edition has this facility and can be found on our website.

    http://www.parallax.com/detail.asp?product_id=30076

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
  • shortcircuitshortcircuit Posts: 11
    edited 2006-10-26 06:32
    ok. so theres no way to assert ATN if DTR is not replicated by the Btooth.. right?
    So ill give up on remote programming for now..... mad.gif

    This is where I am so far. I can receive data from stamp to terminal but cannot send from terminal, or sent data is not being recognised.
    All works fine over hardline but over BT i get nothing. Data is xmitted on TX RX only.. right? These Have to be replicated by the Btooth right! (iogear).

    also the SERIN command.... does this thing just wait when initiated until data is received? (unless a timeout is specified?) if so is there a "whenever data comes in .. 'deal with it' command

    Id hate to pepetually loop SERIN with a small timout just to pickup instructions.
  • shortcircuitshortcircuit Posts: 11
    edited 2006-10-26 06:55
    About this toothpic.
    is this PIC basic ?

    This would be a great idea if i hadn't already bought a bunch of PARALLAX stuff! and all my progs were in Pbasic!

    Man, Parallax is really gonna miss the boat if they dont get something like this on the market themselves.
  • Bruce BatesBruce Bates Posts: 3,045
    edited 2006-10-26 07:37
    Steve -

    Let me see if I can offer you a few clues here, although I've never used BlueTooth anything. This is by no means a "blueprint" for what one needs to do.

    The following is just generic information, and I do not have more specific information to offer about Stamp programming means. However, those who have had a specific need to develop remote programming means (I.E. the Stache - ask if you would like to know more) have done their homework to unearth the necessary control signalling to perform such a task.

    Programming the Stamp remotely is a process in and of itself. In other words, ordinary serial processing, via any means (including BlueTooth) is done in one manner, and the act of programming the Stamp is done in a different manner. Said differently, if you were able to communicate with a Stamp via some particular serial means successfully, that is NOT to say that you could use the same means to program the Stamp successfully.

    In general terms, the IDE and the Stamp transmit and receive certain hardware signals, along with the normal software data transmissions and software handshaking which would be required to merely transmit the "data" (actually the program in this case) from one to the other. This process, in and of itself, is fairly transparent and ordinary. HOWEVER, there is a preface or prefix·routine or methodology, which is really the crux of the matter.

    There are really very few simple means by which any software program (the IDE in this case) is able to thoroughly "investigate" a hardware device to ensure it meets a host of criteria, short of transmitting a "serial number" (aka identification methodology) or something similar. Thus, a series of steps must be taken, in order to provide this communications link integrity.

    First, and foremost, a check must be made to see if something is physically attached. This is done via the "loopback test". Second, if something is there, there must be some sort of software and/or hardware handshaking, to attempt to communicate "I am who you think I am". Some other interim checks are then made. Lastly, there must be some insurance that the serial programming line is solid, true, and as expected. The most simple way to do this is by relying on expected handshake timing. If a "PING" (inquiry) gets a "PONG" (response) in an appropriate and timely manner, then the serial line can be SAID to be solid, true, and as expected. HOWEVER, the PRESUMPTION is that this is a HARDWARE or HARD WIRED connection! Therein TIMING becomes VERY important if done by some means other than a "hard" connection.

    It is this last timing aspect which causes many "cheap" USB-to-serial converters to fail during the programming exercise, as well as many wireless programming methods. I suppose it deserves being said that if every system and device played exactly by the "rules" then there would (almost) never be a problem. Fortunately or unfortunately, this often costs $$, and some systems or companies aren't willing to spend the money to ensure 100% compatibility with the established "rules"; thus they fail the "test".

    There are also some security concerns enveloped within the programming methodology, but that goes beyond the scope of this message.

    I hope you find that basic information helpful.

    Regards,

    Bruce Bates
  • shortcircuitshortcircuit Posts: 11
    edited 2006-10-26 08:13
    nice bruce, thanks for the time it took 2 write all that.

    so is there some way to bypass the editor handshake function to act in the same regard as the UDP (network) protocol ie.. fire and forget, wherein the editor dosent do the loopback test, just sends the signal hoping there's something on the other line to receive it? Ive searched for settings similar to this in the GUI but alas havent found any [noparse]:([/noparse]

    i guess i'd have to loop the ATN pin to a constant inverted 12v from the board and hope the BS2 doenst just constantly reset itself

    and then what? somehow fake a signal change on DTR

    oh BTW, when it does signal out for programming what does the voltage 'look like'. Whats acutally happening? I noticed a quick change from -12v to -9v when the program is sent to the BS2 on my VM but the VM is a cheap one and the process is kind of fast so I cant tell if its actually 'zeroing' or going to +V and i just cant see it..

    bruce said...
    if every system and device played exactly by the "rules" then there would (almost) never be a problem

    are you suggesting Actually complying with RS232... there goes all the fun!
    bruce said...
    some systems or companies aren't willing to spend the money to ensure 100% compatibility with the established "rules"

    I wonder who you're talking about smilewinkgrin.gif
  • Bruce BatesBruce Bates Posts: 3,045
    edited 2006-10-26 10:06
    Steve -

    I think you're still missing at least part of the point here. So long as you think or feel that you can short-cut, circumvent or bypass some of the innate and necessary communications protocal protections required for Stamp programming, you will probably continue to experience problems.

    Here is another "clue" for you. So long as "you" (generic) control both ends of any wireless link, regardless of the methodology or protcal, you can simulate any kind of hardware or software handshaking you want to, and you have TOTAL control of the data. Pretty powerful thought when you consider it. To go WAY afield here for just a brief a moment - Transparent wireless encryption-on-the-fly or transparent wireless data-compression-on-the-fly both come to mind.

    By way of another wired example, a USB dongle (USB to serial converter) "sees" and controls BOTH the USB and serial side. IF it were done USB -->> wireless -->> serial and you DIDN'T have control of the wireless section, can you imagine that you might have a communications problem? If not, you'd better stop here and do a good deal of reading on the topics of: Hardware/software simulation of communications signals, How to defeat or control hardware/software handshaking, and Methods and concepts in the control of remote serial devices. At least that's a start.

    Just in passing, what your'e looking to do is eminently doable, so long as you control both ends of the wireless link. Somewhat needless to say, it's a GOOD deal easier to do it with a hard wired connection!· As they say, it's all in knowing how.

    For a fee I could lay it out for nearly anyone, mostly because I've been in this business for over 38 years, so I've had some experience in this and other communications areas. In case it didn't occur to you this is a VERY salable product, thus the possible or potential reluctance of many to participate in this thread, and my reluctance to offer much more than I have. In the end analysis, there's really nothing propriatary or difficult about it. It's just not an innately easy or obvious thing to do, nor one which doesn't involve some hard development time, or seasoned insight, and as I'm sure you know, time is $$$, and so is "seasoned insight". Yes, I can be BOUGHT, just bring CASH :-)

    In conclusion, and referring back to my original message, Tracy Allen and Steve Parkiss developed the Stache, a hardware Stamp programmer (link below) which permits you to load programs into any PBASIC Stamp without the need of a computer. Just for emphasis - WITHOUT THE NEED FOR A COMPUTER. Therein they MUST have had to be in total control of ALL the signals which would ordinarily be provided by a PC and thus it is doable on a hard wired basis, right from a microcontroller. Why do I even mention the Stache when you're talking wireless? Because, in essense, the Stache is a PORTABLE wireless link - think about it!

    Link to Stache:· http://www.emesystems.com/stache.htm

    Regards,

    Bruce Bates

    Post Edited (Bruce Bates) : 10/26/2006 10:31:34 AM GMT
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2006-10-26 14:38
    shortcircuit said...
    About this toothpic.
    is this PIC basic ?
    This would be a great idea if i hadn't already bought a bunch of PARALLAX stuff! and all my progs were in Pbasic!
    Man, Parallax is really gonna miss the boat if they dont get something like this on the market themselves.
    Short Circuit,
    ·
    ·· I never mentioned anything about PICBASIC.· The Toothpick SE (Stamp Edition) is designed for the BASIC Stamp.· It is not a stand-alone microcontroller, but a means to wirelessly program a BASIC Stamp over a Bluetooth link.· I would recommend reading the documentation before deciding that a product we sell for use with the BASIC Stamp Microcontroller would make all of the Parallax parts you bought a waste.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support


    Post Edited (Chris Savage (Parallax)) : 10/26/2006 2:51:40 PM GMT
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2006-10-26 14:52
    shortcircuit said...(trimmed)
    oh BTW, when it does signal out for programming what does the voltage 'look like'. Whats acutally happening? I noticed a quick change from -12v to -9v when the program is sent to the BS2 on my VM but the VM is a cheap one and the process is kind of fast so I cant tell if its actually 'zeroing' or going to +V and i just cant see it..
    shortcircuit,

    ·· If you look in the documentation for the Tokenizer Library on our website the details for the signals are provided right there in the documentation.


    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
  • shortcircuitshortcircuit Posts: 11
    edited 2006-10-26 20:01
    chris said...
    "the details for the signals are provided right there in the documentation", "I would recommend reading the documentation"

    Chris. The 'documentation' www.parallax.com/dl/docs/prod/compshop/Toothpick-v1.2.pdf consists of only three hundred words and left me with more questions than answers.

    I got the idea that it was picbasic from the flexipanel website www.flexipanel.com/BluetoothModules.htm


    Any way you can be less pedantic? "look it up" is not a helpful response.
  • Tom WalkerTom Walker Posts: 509
    edited 2006-10-26 20:11
    shortcircuit,
    I think that Chris was referring to the Tokenizer library documentation (at least that's what he said)...which does have the programming protocol outlined.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Truly Understand the Fundamentals and the Path will be so much easier...
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2006-10-26 20:22
    Tom,
    ·
    ·· You are correct, I was referring to the Tokenizer Library documentation, which I clearly stated.· When I mentioned the Toothpick SE I also referred to the link on our website, not the one he posted.· Clearly my replies are not being read in detail.
    ·
    shortcircuit,
    ·
    ·· The complete documentation for the Toothpick SE can be found at the following link.··Hopefully this will answer some of your questions.··Pedantic?· I’m trying to help you.

    http://www.flexipanel.com/Stamp.htm

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
  • Larry~Larry~ Posts: 242
    edited 2006-10-26 21:23
    I get all post on email !
    Chris why do all your emails come through with xtra stuff attached it makes it hard to read
    something like HTML tags all over your messages. Im asking not complaining
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2006-10-26 22:45
    This is off topic, but are you saying I am the only person whose messages contain HTML tags?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
  • BenoitBenoit Posts: 47
    edited 2006-10-26 23:41
    Yes Chris, your messages are full of tags, very hard to read.

    Ben.
  • Bruce BatesBruce Bates Posts: 3,045
    edited 2006-10-27 08:13
    Chris -

    This same problem exists from the posts of a NUMBER of Parallax employees. I stoppped complaining about this a year ago, when it appeared that no one at Parallax cared to cease using the tags.

    The most disappointing case is Andy Linsay's L-O-N-G and excellent posts when he writes his online books disguised as messages smile.gif Very sadly I just delete them since they are wholly unreadable. I considered deleting yours as well, but haven't yet.

    One of the obvious problems is that no one at Paralax must be reading the email output. It's obvious that they just read the web output and nothing else. Those of us that RELY on the email output are the ones who see the problem constantly.

    Regards,

    Bruce Bates

    Post Edited (Bruce Bates) : 10/27/2006 8:29:01 AM GMT
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2006-10-27 14:57
    Bruce,
    ·
    ·· I can tell you that most of us simply write our replies using Microsoft Word and then copy and paste them into the forum editor.· We use the full editor so that links are created when necessary, however I myself do not do anything to the text.· No color changes or special things like bold or italics are being added to generate tags.· It must be automatically being done by Word?· I will pass this thread on to our IT Dept.· This stuff should really be in the “Support For Using This Forum” area and he would already see it, but I will mention it.· Thanks for your feedback.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
  • shortcircuitshortcircuit Posts: 11
    edited 2006-10-27 19:23
    Please move this nag fest to another topic.
  • shortcircuitshortcircuit Posts: 11
    edited 2006-10-28 00:38
    chris said...


    You are more than welcome to participate in our forums if you can converse in a decent manner. Your current demeanor is unacceptable as people are trying to help you and you are being somewhat hostile in your replies. Please discontinue this if you wish to continue to participate. Thank you.

    chris. this is a forum where i expect people with similar problems can find each other and perhaps hammer out some answers. The only trouble I have had so far is with you. You are condescending in your unsolicited aid and I would really appreciate the opportunity to solve the specific problem stated in the opening post rather than some issue centered around you and your HTML tags. I have been courteous in my replies to those who have offered some insight but I fault you for engaging in a post whose opening caveat stated "i dont want to buy some other parallax BT solution." with the sales pitch "The Toothpick Stamp Edition has this facility and can be found on our website".

    i have spent hundreds of dollars with parallax and i dont like being secretly threatened with expulsion from the forum just because you chose to enter my post and start a commotion. I expect this post will be deleted now and my user removed but if you have any humanity at all, just stop 'helping' me and go patronize someone else.
  • shortcircuitshortcircuit Posts: 11
    edited 2006-10-28 09:07
    I have given up on programming wirelessly but am still having trouble with generic bi-directional comms.

    IOGEAR Serial Adapter with Bluetooth
    Model # GBS301
    IOGEAR USB Adapter with Bluetooth
    Model # GBU311

    when i installed the iogear adaptor/s it came up with two devices in the xp dev.mgr one (in) on COM 6 and (out) COM 7
    seemed curious to me so I wrote prog to send to the stamp and return that input to a seperate terminal. works fine over hardline but not over BT.
    Tried opening two diff com connections one on 6 and one on 5 but no luck.
    tried crossing the TX&RX lines for fun .. nothing..

    tried not using serin/out on 16 and splitting the comms on two different I/O pins but I must have done something wrong because I get nothing at all . zero response. this was accomplished via instructions/ish on pp338 of basic stamp manual using 22kohm R

    do i need to do something else besides simply call a serin on pin 1, do i need to set the pin somehow.

    has anyone dealt whith this before? I know there are others out there. and like Ive stated before, the whole schebang works fine with the CMU cam. can send/receive perfectly .. so what gives about the stamp????


    i hate to sound frantic but im losing my mind trying to get this going.
  • Justin RatliffJustin Ratliff Posts: 14
    edited 2006-11-27 18:50
    I am also using the GBS301 IOgear serial to bluetooth link.· I used a Zoom brand blutooth dongle which came with Toshiba drivers to link with the GBS301.· Like you I also could not get the Basic Stamp editor to sync with the GBS301.·

    If I programmed the Basic Stamp to transmit input via a debug statment, I could use Hyperterminal to read the input wireless.· This is proving handy, because I can see in real time what my robot sees via it's input untethered.

    However I really which that was a way to program via the bluetooth link.· I have used the DOS editor, the Windows version 1.5, 1.7, 2.2.5 and the newest 2.2.6 all failed to find the stamp via the wireless link.· I have adjusted through all the setting for the GBS301 and the virtual serial port Windows XP lists it as.· The editor does find the virtual port and try to communicate with it.·

    From under the editor RUN, then IDENTIFY, it will pause for long while on the virtual com port the BGS301 is on, the fail.· If I try to RUN a program or upload it to the Stamp, it actually generates a Blue Screen error which causes the computer to restart.· This is on a WindowsXP system, SP2.· I take it you're never failed hard enough to go to Blue Screen?

    It seems to me that our stamp editor needs more control options to alow for wireless programming to work.·

    -Justin Ratliff
    www.trcy.org
  • WarrlokWarrlok Posts: 77
    edited 2007-05-13 15:54
    yea i had that happen to me too with blue soleil sofware and adapter and a iogear think mine was i left the disk in the drive but i see this subject died with out a solution this is ashamed
    this would,ve been a nice thing to work with ,,,,$300 for a wirless BS2 hmmm think i,ll go ITX
    with a 2GIG procesor

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Problems are the "roads" of life,
    solutions are only "onramps" to the next problem



    ············································· "Brad Smith"
    ·
Sign In or Register to comment.