Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7944653
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T00:36:59+00:00 2026-06-04T00:36:59+00:00

this is a strange one, we have a printer setup with an IP and

  • 0

this is a strange one, we have a printer setup with an IP and port it listens in on, we then need to send print jobs to the printer.

I have managed to connect to the printer but when ever I transmit anything I get timeouts on the printer or it just sits there doing nothing.

I know I can talk to the printer as its showing in its logs.

So far I have the following :

_Socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.IP);
_Socket.Connect("192.168.1.52", 2123);
byte Enq = 0x05;
byte Ack = 0x06;
byte[] tran;
tran = new byte[] { Enq };
_Socket.Send(tran, 1, SocketFlags.None);

tran = new byte[] { 0x30 };
_Socket.Send(tran, 1, SocketFlags.None);

tran = new byte[] { 0x00, 0x01 };
_Socket.Send(tran, 2, SocketFlags.None);

tran = new byte[] { 0xFF };
_Socket.Send(tran, 1, SocketFlags.None);

According to the manual I need to do the following :

send 1 byte Identifier 30h
send 2 bytes length 00h, 01h
send data (action to be performed) 1 byte FFh

as you can probably see I have no idea on how to achieve this so any and all help welcome

Edit

Some additional information, the printer doesn’t come with a driver so from what I can tell I would need to transmit raw data to the printer, the printer has a serial connection to it but its too far away for serial cable hence the Ethernet connection on there (I believe it is serial over Ethernet).

General Principle of Dialog
Computer sends ENQ (1 byte) Printer sends ACK (1 byte)
Computer sends data (Ident 1 byte | length 2 bytes | data 0 to n bytes | Checksum 1 byte)
printer sends Ack (1 byte)

When I’ve used serial in the past i’ve used the write function on the port to send the data, get the data into a buffer and once finished receiving check the buffer but I am clueless as to how I would do this onver IP?

Identifier (1 hexadecimal byte)
Specific to each command.
 Length (2 hexadecimal bytes)
The length is a hexadecimal value representing the number of bytes present after the
two length bytes and not including the check byte (Checksum).
In general, the maximum value is 2044 bytes or 07h FCh.
For transmission of a message for printing, the maximum value is 4092 bytes or 0Fh
FCh.
Note: The check byte is not checked by the printer if b7 of the first length byte is set
to 1. In this case the data in the frame received is not checked.
Data (0 to n bytes)
Zero bytes for a general request from the computer to the printer.
n bytes representing the instructions needed to define a function.
Checksum (1 hexadecimal byte)
This corresponds to an exclusive OR of all preceding bytes (identifier, length and data
bytes
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T00:37:00+00:00Added an answer on June 4, 2026 at 12:37 am

    I changed the system to use the TCPClass instead of a socket and it now works as expected, their tech guys were useless but at least their head sales guy came and helped out with what he knows on other problems with the printer, eventually managed to get there. All boils down to missing information in their documentation

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This one is a little strange to me. I have a pointer to a
This one i had today is a strange one. I have this query in
This is a strange one to me. Let me list the setup: Application with
I'm working on ironing out some bugs in IE6 and have this strange one,
This is a strange one, I have everything working but in the controller code
Bit of a strange one this. Please forgive the semi-pseudo code below. I have
A strange one to be honest. I have got this working completely fine on
This is a strange one. I'm running MVC 3 and have a custom action
I have this strange error in one of my rails 2.3.2 application. NoMethodError in
This is a strange one... In a windows forms app (VB.NET/VS 2005) I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.