RS232 board with printer??????

For E-blocks user to discuss using E-blocks and programming for them.

Moderators: Benj, Mods

Post Reply
ilusaud
Posts: 8
Joined: Tue Mar 06, 2012 8:31 pm
Has thanked: 2 times

RS232 board with printer??????

Post by ilusaud »

Hi guys, i recently bought most of the e-blocks, in that I also ordered RS 232 board (EB015-00-1).

And in my project I need to have some printing setup without using pc. So by connecting Multiprogrammer to RS232 board and can we directly connect printer to rs232 board.

Can somebody provide me with an example it would be great help.

Thanks

Ilyaz

User avatar
JohnCrow
Valued Contributor
Valued Contributor
Posts: 1367
Joined: Wed Sep 19, 2007 1:21 pm
Location: Lincolnshire
Has thanked: 364 times
Been thanked: 716 times

Re: RS232 board with printer??????

Post by JohnCrow »

Hi Ilyaz

Hmm sounds like an interesting idea, though I don't know if this would work or not. Im sure the guys at Matrix will be able to tell you if its at least possible.

I assume you want to send the output of a program to the rs232 port and to the printer, rather than sending it an LCD display or to display on the pc using hyperterminal ?

Have you looked at the EB015 test files

http://www.matrixmultimedia.com/search_ ... Submit.y=0
1 in 10 people understand binary, the other one doesn't !

ilusaud
Posts: 8
Joined: Tue Mar 06, 2012 8:31 pm
Has thanked: 2 times

Re: RS232 board with printer??????

Post by ilusaud »

Thanks John for appreciation, so how to convey my querry to matrix guys. As i thought this could be the platform for it.

regards,
Ilyas

User avatar
JohnCrow
Valued Contributor
Valued Contributor
Posts: 1367
Joined: Wed Sep 19, 2007 1:21 pm
Location: Lincolnshire
Has thanked: 364 times
Been thanked: 716 times

Re: RS232 board with printer??????

Post by JohnCrow »

Hi
You will get a reply on here. Sometimes its quicker than others, just depends how busy they are at Matrix.
1 in 10 people understand binary, the other one doesn't !

User avatar
Steve
Matrix Staff
Posts: 3431
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 114 times
Been thanked: 422 times

Re: RS232 board with printer??????

Post by Steve »

Yes - the RS232 E-block has two RS232 connections. One is suitable for connecting to a PC, and the other is suitable for connecting to a device such as a printer.

As long as you know what data to transmit to the printer, it should be easy to get a chip on the multiprogrammer to do it.

I don't think we have any specific examples for doing this. But as far as I remember, the communication technique to "talk" to a PC or to a device is the same.

ilusaud
Posts: 8
Joined: Tue Mar 06, 2012 8:31 pm
Has thanked: 2 times

Re: RS232 board with printer??????

Post by ilusaud »

Thanks Steve, but the issue is on 'modem' connection of rs232 board, i have to connect on third party datalogging modem and on other connection i.e., 'pc' i have to connect to printer so as to print receipt. So is it possible to build this setup???

-
Ilyas

User avatar
Steve
Matrix Staff
Posts: 3431
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 114 times
Been thanked: 422 times

Re: RS232 board with printer??????

Post by Steve »

I'm not sure you can use both the "modem" and the "pc" connections at the same time, but you could try. However, you will need to connect the printer to the "modem" port.

I don't know enough about RS232 signals to know if you can split the connections to monitor them. A quick search for RS232 monitors shows that they typically have a separate connection for monitoring the RS232 comms (usually a USB connector).

ilusaud
Posts: 8
Joined: Tue Mar 06, 2012 8:31 pm
Has thanked: 2 times

Re: RS232 board with printer??????

Post by ilusaud »

I think u r right, i just gone through the datasheet of rs232 board which says that, RS232 E-Block can be used as either a DTE or a DCE device.

So is ther any other method to use these two (printer & datalogging modem) on same port as all other ports are occupied.

User avatar
Steve
Matrix Staff
Posts: 3431
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 114 times
Been thanked: 422 times

Re: RS232 board with printer??????

Post by Steve »

I don't think it's possible. RS232 is a single point-to-point communication.

Steve001
Valued Contributor
Valued Contributor
Posts: 1189
Joined: Wed Dec 31, 2008 3:37 pm
Has thanked: 460 times
Been thanked: 523 times

Re: RS232 board with printer??????

Post by Steve001 »

Hi,

Not been on here for a while just seen this post.

Have a look at this printer

http://proto-pic.co.uk/thermal-printer/

it's got a Serial TTL interface so you can connect it directly to the UART of the micro without the need of a RS232 interface
and several examples on there too

hope this of some help

Steve
Success always occurs in private and failure in full view.

Post Reply