Shop OBEX P1 Docs P2 Docs Learn Events
Hi everyone,<br><br> ft232: getting version back — Parallax Forums

Hi everyone,<br><br>ft232: getting version back

drussdruss Posts: 2
edited 2006-07-26 14:39 in BASIC Stamp
Hi everyone,

i hope someone can help me out. Please be patient, as i'm a TOTAL newb to ...all of this.
apologies if this is the wrong forum to post this, or if this is a silly question.

i recently got a Parallax Servo Controller. i see it says on a chip there FTDI FT232BM.
Got a little servo connected to it, and a battery pack(7.2V).

I've connected the above together, plugged in a USB cable to it and the computer and
now i have a little red light shining on the board. That's good right?

my dmesg says:

usb 2-10: new full speed USB device using ohci_hcd and address 8
ftdi_sio 2-10:1.0: FTDI USB Serial Device converter detected
drivers/usb/serial/ftdi_sio.c: Detected FT232BM
usb 2-10: FTDI USB Serial Device converter now attached to ttyUSB0


ALL that i would like to do, at the moment, is get the version back from the chip.
In the manual i saw:

SEROUT Sdat, Baud+$8000, [noparse][[/noparse]"!SCVER?",CR]
SERIN Sdat, Baud, 500, FindPSC, [noparse][[/noparse]STR buff\3]

I'm running linux, so i can't exactly do the above.
I've opened the serial port in all sorts of ways(re parity, speed, etc).

I've tried echoing "!SCVER\r"(and similar) stuff to the serial port.
The green light on the board blinks. When i read the port, i get back exactly everything i echoed.

I've tried a few languages(Py, C, plain ol' bash, perl) with the same result. I see someone on the forums tried
doing something similar with c#.
i've read the docs, the forums, howtos..everything i could find.

now...am i being so silly here and missing a piece of hardware or something to do this?
Can someone please point me in the right direction? or smack me over the head for missing
something obvious.


tia,

druss

Comments

  • Bruce BatesBruce Bates Posts: 3,045
    edited 2006-07-26 14:18
    druss -

    It looks to me like you missed the question mark. This is what you must send, in its entirety:

    !SCVER?

    You appear to have sent:

    !SCVER

    Regards,

    Bruce Bates

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    <!--StartFragment -->
  • drussdruss Posts: 2
    edited 2006-07-26 14:39
    Hi,

    thanks for the quick reply. Sorry, that was a typo in the post. I had the ? in the code.

    as luck(or the·<expletive> Murphy) would have it, as i pressed the send button on the message...something started
    working and i got 1.4 back! yaaay! I'm not really sure what changed. I fiddled with minicom, maybe it reset something
    on the port. I'll post it when i find out.

    let me try move the dann servo now.

    i'll post the code when i'm done here. not like there's much of it, but still...

    Post Edited By Moderator (Chris Savage (Parallax)) : 7/26/2006 3:24:12 PM GMT
Sign In or Register to comment.