Shop OBEX P1 Docs P2 Docs Learn Events
New computer, no RS-232 for SX-Key — Parallax Forums

New computer, no RS-232 for SX-Key

KenBashKenBash Posts: 68
edited 2008-07-30 14:19 in General Discussion
I had to purchase a new laptop recently,· I got a really nice HP with all the bells and whistles.... except when I went to work on an SX-48 project and went to plug in the RS-232 cable for the SX-KEY...· NO BELL.... NO WHISTLE.· I hadn't even thought to check for an RS-232 port when I purchased it.


I bought a couple of different USB to RS-232 converters, but they don't work with the SX-Key.

The HP docking station doesn't even have RS-232!

I am considering purchasing a third party docking station that does have RS-232 but I have difficulty with purchasing a $200.00 device with no certianty that it will work.

questions:·

·· 1. Is there any way to make an SX-Key work with a USB port?

···2. if not, are there any other ways to bring SX development to the newer laptops·without an RS-232 port?

·I have several SX-keys, I don't mind sacrificing one. ( cut, patch, hack, whatever).

·A new SX-Key that works from·a USB port would be better.

Any solution would be greatly appreciated!



Ken Bash




▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
" Anything worth doing... is worth overdoing. "

··············································· ( R.A.H. )
····································

Comments

  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2006-07-04 17:04
    You may have to wait 24 hrs for someone from Parallax. Everyone has taken the 4th of July off.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    "If you want more fiber, eat the package.· Not enough?· Eat the manual."········
    ···················· Tropical regards,····· G. Herzog [noparse][[/noparse]·黃鶴 ]·in Taiwan
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2006-07-04 17:14
    Kramer,

    ·· Not everyone...· =)· We have a USB to Serial Adapter which works with our products.· You can find it at the following link.· $34.00 VS $200.00· I hope this helps.· Take care.

    http://www.parallax.com/detail.asp?product_id=800-00030

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
    csavage@parallax.com
  • BeanBean Posts: 8,129
    edited 2006-07-04 17:24
    Ken,
    I have the same problem with my notebooks. I tried a belkin USB to serial adapter, but no dice.
    So I bought the one from Parallax and it works fine.
    Bean.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Cheap 4-digit LED display with driver IC·www.hc4led.com

    Low power SD Data Logger www.sddatalogger.com

    "I'm a man, but I can change, if I have to, I guess" The Red Green Show
    ·
  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2006-07-04 17:59
    Chris,
    I really thought everyone was off. Don't work to hard.

    Bean,
    From what I recall, several of these USB to serial adapters do not provide all the connections needed to use the SX-Key. Correct me if this is wrong.

    1. The chip provides all the signals needed
    2. The software drivers are NOT a problem as Parallax provides those for their adapter
    3. The USB port can support RS-232
    4. The problem lies in several manufactures preferring not to connect handshaking and control lines on the RS-232 side. [noparse][[/noparse]I suppose to reduce production costs].

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    "If you want more fiber, eat the package.· Not enough?· Eat the manual."········
    ···················· Tropical regards,····· G. Herzog [noparse][[/noparse]·黃鶴 ]·in Taiwan
  • KenBashKenBash Posts: 68
    edited 2006-07-05 02:57
    Thanks Chris! I'll get one on the way.

    Hope you're out enjoying the fireworks somewhere and not reading this! LOL

    Ken

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    " Anything worth doing... is worth overdoing. "

    ··············································· ( R.A.H. )
    ····································
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2006-07-05 04:01
    Kramer, Ken,

    ·· My family is on the other side of the country for the summer, so I'm trying to keep busy.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Tech Support
    csavage@parallax.com
  • Guenther DaubachGuenther Daubach Posts: 1,321
    edited 2006-07-05 07:46
    Kramer,

    for the SX-Key, no handshake lines are required, just RxD, TxD, and Signal Ground.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Greetings from Germany,

    G
  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2006-07-05 10:48
    Thanks Guenther,
    My recollections seem to be based on using the USB to Serial Adapter or USB2SER for the BasicStamps and the Propeller which require the DTR line. I didn't realize that the SX-Key doesn't have hardware handshaking. It seems important that the user buys the Parallax adapter as it supports all of these products.

    Since none of the items on my list are involved, I still wonder where the problem lies.

    There has been a lot of discussion that laptop serial ports do not provide a high enough voltage swings for the RS-232 standard. Could it be that most of these converters are no better? After all they are relying on the USB line for +5volts.

    In other words, does anyone know what are the true RS-232 thresholds for the SX-Key?
    If you are trying to use another RS-232 interface, that seems to be a useful piece of trouble shooting information for all.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    "If you want more fiber, eat the package.· Not enough?· Eat the manual."········
    ···················· Tropical regards,····· G. Herzog [noparse][[/noparse]·黃鶴 ]·in Taiwan
  • Clock LoopClock Loop Posts: 2,069
    edited 2006-07-06 00:09
    I have looked for schematics on the sx-key to figure out this one. I gave up after not finding any. I wanted to hook up the sx-key to my pc via 2 fiber optic lines. one tx one rx, but after not finding any info on the rs-232 interface on the sx-key, I gave up.

    I would really like to know if I can just hook up the TX and RX lines, and have my sx key still work. If so, I will desolder the rs-232 plug, and replace it with fiber. Also, it would help to know the voltage swing VPP width.. Normal rs-232 can swing from -15v to +15v. What does the sx-key do?

    Would like to know more.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Meh. Nothing here, move along.
  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2006-07-06 06:31
    BPM,
    I couldn't locate a schematic either. I suspect that you need to insert a MAX-232 to get proper TTL with a good RS-232 interface. I would keep the SX-key intact and just build a converter as you need to provide outside power.

    The basics are that RS-232 is NOT TTL; it should have a positive and a negative voltage of about 9 volts (but many manufacturers have been lax in providing those voltages as they require more parts); and also the RS-232 signals are inverted from the TTL. So a TTL high would be a -9Volts.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    "If you want more fiber, eat the package.· Not enough?· Eat the manual."········
    ···················· Tropical regards,····· G. Herzog [noparse][[/noparse]·黃鶴 ]·in Taiwan
  • Clock LoopClock Loop Posts: 2,069
    edited 2006-07-07 05:03
    I know about rs-232 on the pc side. And the differences between ttl and 232, I own a few max232 chips, and have used them.

    To be honest I want to interface my sx-key ttl only, so that would mean getting a schematic. I don't see why would be such a big deal, as I would need the sx-key code to even replacate a sx-key. As a matter a fact, I don't even want the schematic.

    If parallax would just tell me where I can send the RX and TX ttl level signals into, then I would do that. I don't want to mess around with rs-232 levels, and the chip / caps associated with it. Its a waste of space, the reason I like the sx-key is its size.

    For some reason i feel that i just may have to go scope on this one. Its eaiser to have parallax tell me, but if the schematic for the sx-key isn't currently available, I doubt they will tell me how I can do this. So if anyone has any tips to save me some time, that would be great.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Meh. Nothing here, move along.
  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2006-07-07 09:32
    There is not much to look at or attach to on the SX-Key. It is all surface mounted. I don't think they used a Max-232 chip.

    There is a coil and some circuity set up to provide the higher voltage for the Osc pins to enter programing mode. Possibly they provided the higher RS-232 via their own power supply adaptation.

    This seems to be geting off track. Mainly I wanted to clarify the V+ and V- threshold because the RS-232 standard has been compromised on many newer devices. The Forum gets a lot of postings from users that have problems starting out. Usually, it is a laptop or a USB port that is involved. Many have wasted money by buying a locally available product and found they still don't have what they need.

    BTW, One other user had his SX-Key on a 25 or 50 cable. It is hard to believe, but it seems that whatever is driving the RS-232 is putting out good quality signals. I have no idea why he needed such a cable on the SX-Key, but it seems you have a similar need.

    You could simply use that and forget the fiber optics. It certainly would be better to scope the RS-232 signal than to try to cut into an surface mount IC that is the size of a house fly.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    "If you want more fiber, eat the package.· Not enough?· Eat the manual."········
    ···················· Tropical regards,····· G. Herzog [noparse][[/noparse]·黃鶴 ]·in Taiwan
  • Guenther DaubachGuenther Daubach Posts: 1,321
    edited 2006-07-07 17:23
    Hey Guys,

    no more guesswork...

    Please find attached a schematic showing the SX-Key serial interface circuitry. This is a really tricky way to interface to an RS-232 port, and it only works when only one device is sending data at a time (which is the case with the SX-Key).

    The Schematic also shows that it is pretty simple to interface to TTL level: Simply connect the RxD line to X1, pin 2, and the TxD line to X1, pin 3. X1, pin 2 will be driven to +5V when the TX line is low, and pulled to low through R1+R2 when the TX line is high. When the SX-Key Transmitter is idle, TX is high, so a high or low TTL signal on X1, pin 3 will drive RX high or low through R1+R3.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Greetings from Germany,

    G
    877 x 784 - 33K
  • Clock LoopClock Loop Posts: 2,069
    edited 2008-07-26 00:40
    Is this schematic of circuitry inside the SX key (under the plastic cover) or is this a circuit I should build and then attach it to the serial interface of the sx key.?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Meh. Nothing here, move along.
  • Guenther DaubachGuenther Daubach Posts: 1,321
    edited 2008-07-26 08:07
    BPM,

    this schematic shows the circuitry inside the SX-Key, so don't build it. In the meantime, the serial SX-Key has been replaced by the new SX-Key USB, so there is no more need for USB to Serial adapters here.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Greetings from Germany,

    G
  • Clock LoopClock Loop Posts: 2,069
    edited 2008-07-29 00:00
    Well, i have 2 sx-keys, no money, and a few ftdi chips...

    Sooo.... Just getting tired of all the static and stuff with serial. Ground loops thru computers that have not so good power supplys, etc...

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Meh. Nothing here, move along.
  • Guenther DaubachGuenther Daubach Posts: 1,321
    edited 2008-07-29 15:19
    Hey BPM,

    this sounds promising, so why don't you build your own USB-Serial adapter. Knowing the Serial SX-Key input circuitry, you may notice that there is no need for shifting the FTDI chip's signals to +/- 12V.

    Regarding ground loops, I absolutely agree with you, as I made my special experience yesterday. On a new SX-based board with an SX-Key USB attached to the usual 4-pin header, I tried to un-solder a capacitor I had added for testing before to a +24 V power line. Unfortunately, my soldering iron was grounded, my PC as well, and the board was still powered when I started this operation.

    When I touched the cap's lead with the solder tip, I saw a little spark, and noticed that my 24 V, 8 Amp power supply had switched to fold-back mode, but only after sending at least 8 Amps through the SX-Key USB to the PC to ground to my soldering iron to the cap, etc....

    When restoring power, my SX-Key USB got really hot, Totally frustrated, I turned off the whole setup, marked the SX-Key USB as "fried", and had a beer (or two).

    Guess what - when I started my work on the setup again today, everything worked as usual, including the "fried" SX-Key. I'm not sure if it has seven lives - at least, it has two smile.gif .

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Greetings from Germany,

    G
  • Clock LoopClock Loop Posts: 2,069
    edited 2008-07-29 20:10
    Yea even the usb version dosen't prevent those nastly usb or serial ground loops.

    I had planned to turn the sx-key into optical. then from optical to usb serial ftdi.

    With the sx-key I can do this. But the sxusb version i cannot.

    (unless i was able to find a optical transmitter/receiver combo that is fast enough to pass the OSC1 and OSC2 data to and from the sx key.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Meh. Nothing here, move along.
  • Bill ChennaultBill Chennault Posts: 1,198
    edited 2008-07-29 21:46
    G
  • Clock LoopClock Loop Posts: 2,069
    edited 2008-07-29 22:15
    I actually like the OSC1 and OSC2 idea. Is it possible? I suppose I should just try it, but don't know what smallest pulse width that passes thru osc1 and osc2 when using the sx-key. Also, are OSC1 and OSC2 bidirectional data streams? (when using sx-key)

    Then I can actually keep the serial stuff in place, power the sx-key with the serial line (regulated) and optically isolate my sx and my sx-key.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Meh. Nothing here, move along.

    Post Edited (BPM) : 7/29/2008 10:20:44 PM GMT
  • Guenther DaubachGuenther Daubach Posts: 1,321
    edited 2008-07-30 14:19
    BPM,

    sorry to say that isolating OSC1/2 with optos won't work. Why? Well, the SX-Key uses OSC1 for clocking the target SX but also for feeding the +12V programming voltage Vpp into the chip. In addition, OSC2 is used for serial communication between the SX-Key and the target SX, and it is bi-directional.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Greetings from Germany,

    G
Sign In or Register to comment.