BS2SX serial port and a Dell Laptop
okc.engineer
Posts: 12
Hi there,
Being a stamp newbie, I don't know how to solve this problem.· My company builds a product based on the BS2SX, and the firmware includes several commands that require communication with a terminal.· Since the stamp does not utilize the normal RS232 standard voltage levels, I can't seem to get it to communicate with my Dell D800 Laptop.· It works fine with my older desktop computer, and it seems to work fine on my boss's older Dell laptop, but no luck with my new laptop.
One of the things I have tried was placing a 10k pull-up resistor on the RS232 SOUT pin (1) and pull it up to the 12 volt level.· For communication this works fine, but when the RS232 plug is disconnected, the stamp appears to shut down.· The same thing happens if I connect the resistor to the SIN pin (2).
Does this mean I am going to have to use a level translator to get this to work with my Laptop?
Thanks!
Bill
Being a stamp newbie, I don't know how to solve this problem.· My company builds a product based on the BS2SX, and the firmware includes several commands that require communication with a terminal.· Since the stamp does not utilize the normal RS232 standard voltage levels, I can't seem to get it to communicate with my Dell D800 Laptop.· It works fine with my older desktop computer, and it seems to work fine on my boss's older Dell laptop, but no luck with my new laptop.
One of the things I have tried was placing a 10k pull-up resistor on the RS232 SOUT pin (1) and pull it up to the 12 volt level.· For communication this works fine, but when the RS232 plug is disconnected, the stamp appears to shut down.· The same thing happens if I connect the resistor to the SIN pin (2).
Does this mean I am going to have to use a level translator to get this to work with my Laptop?
Thanks!
Bill
Comments
Or have you built your own custom cable and using tx/rx and gnd.
A couple years ago I ran in to a problem (non-stamp related) with interfacing to a piece of gear.
The cable I had initially made used rx/tx and gnd.· (pins 2&3 and pin7 for gnd).·
This worked on an old laptop I was using....but when I upgraded to a new laptop it no longer worked.
Well, I wasn't happy!· And these were proper rs232 levels.
But I found that the pin7 I was using was a chassis ground and not the signal ground of pin5.
So that's my first tip is to be sure you're using a proper ground!
level translators are easy to use.· The MAX232CPE is one IC and 5caps...But, you can buy the MAX232 with the caps already in them (don't know the product code).
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·
Steve
http://members.rogers.com/steve.brady
"Inside each and every one of us is our one, true authentic swing. Something we was born with. Something that's ours and ours alone. Something that can't be learned... something that's got to be remembered."
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas, TX· USA
In this case I am using the main serial port SIN and SOUT, plus the ATN and VSSP pins. They are connected in this configuration:
SOUT to DB9 pin 2
SIN to DB9 pin 3
ATN to DB9 pin 4
VSSP (gnd) to DB9 pin 5
pins 6 and 7 of DB9 are shorted together, and in this design pin 9 of DB9 is connected to +5.
The cable I am using is a typical store-bought null-modem cable. What's interesting about this is that if I use a USB-to-serial adaptor, it works fine. It just won't work on the computer's direct-in serial port, unless I use a pull-up resistor.
I was hoping I could find out what causes the stamp to stop working with the pullup resistor. If I could prevent that, I wouldn't have any problem.
Should I assume that the computer's serial port is bad? Except I know that it works with other applications, just not this one.
Most of my design and programming background is 8051-based, so I have almost no hardware knowledge of the basic stamp.
Thanks again
Some laptops don't actually implement the +-12 volt RS232 standard, so that could be part of your problem. It's good you've found a USB to Serial adapter that works.
I don't think the pull-up on SIN is going to work, though.
Thanks for the information. It's disappointing to know that this expensive computer is not up to standard.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas, TX· USA
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas, TX· USA
Thanks again Jon.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Jon Williams
Applications Engineer, Parallax
Dallas, TX· USA