We help IT Professionals succeed at work.

Check out this week's podcast, "Dairy Farms to Databases: Community's Hand in Technology"Listen Now

x

RS232 printing linux driver

747 Views
Last Modified: 2016-08-13
Hi,
I need some help here .. I want to connect a Fujifilm EXP-2500 to a raspberry Pi, in order to save pictures taken with the EXP-2500 on a hard-drive.

The problem in this topic is the communication with the EXP-2500 : I've got 2 options : first of all, a 2wires cable that sends a signal when I need to capture an image. Using this signal in the Raspberry Pi wouldn't be too difficult, but I would prefer the 2nd option : The Endoscopy Processor (EXP-2500) has got an option for serial communication with a printer. I already managed to connect a computer to the serial port, but when I try to "print" an image with the EXP-2500, it only sends my computer a few bits (248 I think), two times the same ~128 bits sequence. But after that nothing more, except a message on the EXP-2500 annoucing a time out error while communicating with the printer.
It looks like the EXP-2500 is sending the beginning of a protocol to the computer, but as I am too young to know how RS232 printing was supposed to work, I'm here asking for help.
The EXP-2500 is able to communicate using the RS-232 port to 3 different devices : two Sony printers (a Sony UP-51MD printer and a UP-25MD if I remember well, and to device called "CP900" -no more infos about this one.).
What I need here is the protocol used by these printers, so that I could emulate the behaviour of a printer with the raspberry Pi. Once I have it, I'll be able to get infos form the EXP-2500 way more easily as if I take the first option (in which case I would have to use a text recognition software to get the patient's name anf other infos...)

I hope my question isn't too specific and that it is explained good enough for you to help me!

Thanks in advance

Clément
Comment
Watch Question

Dave BaldwinFixer of Problems
CERTIFIED EXPERT
Most Valuable Expert 2014
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Author

Commented:
In fact, it's exactly what I need : I need the EXP-2500 to tell the computer (emulating a printer) when to take an image. So that the Raspberry/computer can capture an image coming from the RGB signal (not coming from the RS-232). But for now, as I don't know the protocol the RS232 printer uses, I can't emulate its behaviour.
But thanks already for the manual, it has some important baud rates (for the COM port) settings.
And if someone had an "how-to" explaining RS-232 printing, or a driver designed for the printers I mentioned before, this would be really great!
Fixer of Problems
CERTIFIED EXPERT
Most Valuable Expert 2014
Commented:
This one is on us!
(Get your first solution completely free - no credit card required)
UNLOCK SOLUTION

Author

Commented:
Ok thank you for these infos. It made me think and helped me.

So the RS232 from the EXP-2500 should be sending some characters and some control code, but I can't read what it sends me (maybe paritiy, speed or Data bits problem?).  Furthermore I don't know the control code, then I think I'll forget the idea of communicating to the EXP-2500 through the RS232 interface.

Thank you very much for your help

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Join our community and discover your potential

Experts Exchange is the only place where you can interact directly with leading experts in the technology field. Become a member today and access the collective knowledge of thousands of technology experts.

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.