bs2-->rs232-->USB-->macintosh-->Java or C++
Archiver
Posts: 46,084
I think that my problem is of the most basic nature--software to
hardware-- but after searching for weeks for a definite answer, I am
almost sure it is hopeless.
Basically, I am trying to get numbers from a bs2 controlled sonar
circuit into a variable in either java or c++ in my macintosh
throught the usb port.
I believe I have solved the USB part of this, but now I do not know
how I will begin to go about getting the values into the software.
Perhaps someone here has done some similar work on the mac and can
help me a bit.
Thanks
hardware-- but after searching for weeks for a definite answer, I am
almost sure it is hopeless.
Basically, I am trying to get numbers from a bs2 controlled sonar
circuit into a variable in either java or c++ in my macintosh
throught the usb port.
I believe I have solved the USB part of this, but now I do not know
how I will begin to go about getting the values into the software.
Perhaps someone here has done some similar work on the mac and can
help me a bit.
Thanks
Comments
This is a copy of an email I sent to someone else (or is it the same
person??) :-)
It relates to the FTDI USB chips/Modules...
For the Mac, you install an Extension from ftdi which creates a "Virtual
serial port".
That means, that your existing programs that normally talk to the old Mac
serial port will still believe they are talking to one, and the Extension
will transfer any calls to the serial port to the FTDI chip instead.
So, as far as writing software goes, you just carry one writing your
programs, addressing the the serial port.
I'm not sure about how to address a serial port in C++ for the Mac, but in
RealBasic, it's something like:
serial1.write "Hello!"
As long as you have the extension installed, your program will work on a USB
based Mac.
Hope this helps,
Cheers,
Ben.
--
http://www.lennard.net.nz/
Ben Lennard, NCEE, Dip EE
Web Hosting and Electronics R&D
Club Coordinator, Victoria University of Wellington Hockey Club
Hm: +64 4 972 7567
Mb: +64 21 536 627
87 Spencer Street
Crofton Downs
Wellington
New Zealand
"To the optimist, the glass is half full. To the pessimist, the glass is
half empty. To the engineer, the glass is twice as big as it needs to be."
No animals were harmed in the transmission of this email, although the
Dog next door is living on borrowed time, let me tell you! Those of you
with an overwhelming fear of the unknown will be gratified to learn that
there is no hidden message revealed by reading this warning backwards.
>From: "papercats2000" <olegna78@a...>
>To: basicstamps@yahoogroups.com
>Subject: [noparse][[/noparse]basicstamps] bs2-->rs232-->USB-->macintosh-->Java or C++
>Date: Mon, 6 May 2002 6:46 PM
>
> I think that my problem is of the most basic nature--software to
> hardware-- but after searching for weeks for a definite answer, I am
> almost sure it is hopeless.
>
> Basically, I am trying to get numbers from a bs2 controlled sonar
> circuit into a variable in either java or c++ in my macintosh
> throught the usb port.
>
> I believe I have solved the USB part of this, but now I do not know
> how I will begin to go about getting the values into the software.
>
> Perhaps someone here has done some similar work on the mac and can
> help me a bit.
>
> Thanks
>
>
> To UNSUBSCRIBE, just send mail to:
> basicstamps-unsubscribe@yahoogroups.com
> from the same email address that you subscribed. Text in the Subject and
> Body of the message will be ignored.
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
be good to put it on the board for all to see.
Thanks again, and remember, the info you gave me is not on the internet at
all!
I don't know if this will help, I haven't used any of this, but from a
distance it looks like you should check out:
http://www.serialio.com/products/serialport/serialport.htm
They have mac versions, old and new. This stuff should work with any
aftermarket usb-> serial adapter. The way to connect the stamp to a serial port
is I think identical to how you would do it for the pc, you just need the
pinouts...
Good Luck, and please, if you make it work, post what you can here. I probably
need to solve a similar problem myself soon.
Stan
--- In basicstamps@y..., "papercats2000" <olegna78@a...> wrote:
> I think that my problem is of the most basic nature--software to
> hardware-- but after searching for weeks for a definite answer, I am
> almost sure it is hopeless.
>
> Basically, I am trying to get numbers from a bs2 controlled sonar
> circuit into a variable in either java or c++ in my macintosh
> throught the usb port.
>
> I believe I have solved the USB part of this, but now I do not know
> how I will begin to go about getting the values into the software.
>
> Perhaps someone here has done some similar work on the mac and can
> help me a bit.
>
> Thanks
searching for things that looked cheaper and finally settled on ftdi usb
chips and drivers.
Again thanks. I CAN'T BELIEVE i GET HELP WITH SUCH A SPECIFIC PROBLEM OOPS
SOrry for the all caps.
~Angelo