Odoo Help


This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Is there easy way to access CLIENT-side RS-232 port from OpenERP module?

Mikko Leppimaa
on 6/8/13, 5:48 PM 1,587 views

I'm planning on writing a module to be used for directly printing the labels on SMD-reels, parts, boxes and etc. in our warehouse.

I've acquired few SATO CL412e industrial thermal printers with serial port. I'm familiar with printer programming languages (SBPL in this case), but I'm not sure how to access RS-232 port on client computer through OpenERP.

(Accessing RS232 on server computer would be easier, but our server is located far away from our warehouse)

Is there an easy way to access client computer serial port with OpenERP?

(I understand that the one option would be to write separate program for client computers that handle the serial port communication to thermal printer and XMLRPC to access OpenERP... but I'd like to integrate the thermal printing function to OpenERP if it's possible.)

Thanks for any advice!


AJ Schrafel Paper Corp

--AJ Schrafel Paper Corp--
| 4 5 8
Bronx, United States
--AJ Schrafel Paper Corp--

Exploring OpenERP for business

AJ Schrafel Paper Corp
On 6/8/13, 11:24 PM

It would be easier to set the printer up as a printer on your operating system then use CUPS to print to the printer.

You can use the python subprocess function to access CUPS or whatever daemon handles RS-232 communication on your machine.

subprocess allows you to send commands as if you were typing on the CLI.

That's an excellent idea, I never thought about CUPS. I think I'll change the printer interface cards from RS232 to Ethernet. I'll setup the printer on server-computer CUPS as RAW-printer. That way I can access the printers from which ever computer since our network is in the subnet between all our locations.

Thanks for the Advice!

Mikko Leppimaa
on 6/10/13, 3:53 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)


Asked: 6/8/13, 5:48 PM
Seen: 1587 times
Last updated: 3/16/15, 8:10 AM