Shop OBEX P1 Docs P2 Docs Learn Events
RS232 Interface (for cameras) — Parallax Forums

RS232 Interface (for cameras)

ArchiverArchiver Posts: 46,084
edited 2002-10-02 15:39 in General Discussion
Speaking indirectly of proprietary camera serial communication formats, I
recently purchased a Nikon digital camera that has a proprietary serial
connection although the interface is standard RS232. However, Nikon does
not share the bi-directional command structure for communication. I have
found a source on the web for some of the Nikon codes, (reverse engineering
of the communication protocols) which should be sufficient to set up the
kind of straight forward interface I am looking for.

Has anyone else tried this with a Nikon or other digital camera that would
be willing to share BS2 Stamp code for? Apparently these protocols are not
entirely unique to each camera manufacturer, and if you have the protocol
for one manufacturer, many of the same protocols work for others.

Original Message
From: Jim Cambron [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=N9KhRQpMeGL7CmOqXOTDbSreRQlM7ceqZBMsTlDSkyAbnG2y9M-ZXpsWvWh4OWsYdBDs3iC3BLD3]nehsoft@h...[/url
Sent: Wednesday, October 02, 2002 10:00 AM
To: basicstamps@yahoogroups.com
Subject: [noparse][[/noparse]basicstamps] Re: RS232 Interface



Ahhh, someone with the same problem I have!

The problem is twofold (maybe threefold!):

1) The serial connector is actually an RS455 connector (a balabnced
232). Fortunately you can build a simple converter cable to solve
this problem. Email me for the diagram.

2) Sony has a table of data codes associated with the function that
you want camera to do (iris adjust, focus, etc) accompanied with a
checksum system to guarantee valid data being sent. You must have
access to this information to properly control the camera.

3) This is the tough one...
Sony uses the baudrate of 38400,1 stop and odd parity to communicate
with most of their commercial broadcast equipment (in my case, a Sony
portable Beta VCR). Your baudrate may be different... not enough
information provided by you...

The problem I have is the odd parity. Which brings me to my question:

What can you all suggest about getting around this by simulating odd
parity at 38400 on a BS2?

Jim "Ack" Cambron





--- In basicstamps@y..., "juijing" <juijing@y...> wrote:
> Hi all,
> I have a project, in which my 1st stage is to control the zooming
of
> a SONY video camera of the model no. FCB EX470LP. However, I have
> some difficulty in figuring out the interface between the basic
> stamp and the RS232 port of the video camera. Wonder if anyone can
> help me.
> I am supposed to use a RC controller which gives a PWM signal to a
> basic stamp which will do some computation to calculate the duty
> cycle and give some signal to the video camera to control the
> zooming. The RS232 port of the video camera has the following pin
> assignments:
>
> Connect to Controller
> PIN 1 TXD IN Transmit Data
> Pin 2 DTR IN Data Transmission Ready
> Pin 3 DSR IN Data Set Ready
> Pin 4 RXD IN Receive Data
> Pin 5 TXD OUT Transmit Data
> Connect to next Camera
> Pin 6 DTR OUT Data Transmission Ready
> Pin 7 DSR OUT Data Set Ready
> Pin 8 RXD OUT Data Set Ready
> Pin 9 GND Ground
> Pin 10 NC
>
> I am not sure of the connection.I am a beginner in basic stamp and
> RS232 connection. If I have to use the I/o pins with a circuit, can
> someone pls provide me with some schematics of the circuit diagram.
> I really appreciate your help.Thank you


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/



This e-mail message may contain legally privileged and/or confidential
information. If you are not the intended recipient(s), or the employee
or agent responsible for delivery of this message to the intended
recipient(s), you are hereby notified that any dissemination,
distribution or copying of this e-mail message is strictly prohibited.
If you have received this message in error, please immediately notify
the sender and delete this e-mail message from your computer.




[noparse][[/noparse]Non-text portions of this message have been removed]
Sign In or Register to comment.