473,387 Members | 1,504 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Sending ZPLII Code to Zebra RW220 via Serial Port

Hi,

This apparently is a common problem and I've yet to read a solution that actually works for my specific situation.

I have a Zebra RW220 printer that I connect to via Bluetooth connection mapped to a serial port. The application I'm writing runs on a Windows Mobile 5 device, so there's no built in printer support and I have to use a serial port.

When I try to write the zpl code to the serial port, the printer simply prints the code verbatum. In other words, it does not 'interpret' the code, but instead, prints it out on the label instead of printing the barcode as instructed in the zpl code.

I've tried sending the string value containing all of the zpl code to the serial port using the serial port .Write() and .WriteLine() methods. I've also tried converting the string value to a byte array and sending that. Neither way works.

My backup plan was to create the barcode as an image and send the image, but if I can't send anything but text to the printer, then the printer seems rather useless to me as a c# developer.

Zebra's manuals say to compile the zpl code into a text file and send via a command prompt (copy file to serial port), which is equivalent to using the Send File menu command in Hypertext Terminal. When the device is connected to my desktop, I can do that fine, but this is a manual process and I want to automate this.

I could purchase a third-party library or control that would allow me to do this rather simply, but I want to learn how this is done so I don't have to rely on a third-party application.

Any help is greatly appreciated.

Thanks,

Charlie
Aug 2 '08 #1
0 2842

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Chuck Rittersdorf | last post by:
Hi There I am having a problem using the win32 API from VB6. I am trying to send a command string to a printer(zebra TLP 2742) on LPT1 using the folowing API functions CreateFile and...
12
by: ken | last post by:
Hello everyone, I'm new to visual VB and I am trying to setup communications to the outside world. I found the example listed below in the help section of Microsoft Visual Basic 2005 Express...
2
by: wesolutki | last post by:
Hi, how to send data to other application by serial port? I want to have two programs opened on one computer, one send and second recive data, but using serial port. Wesolutki :-)
15
by: colin | last post by:
Hi, Im familiar with c,c++ etc, and Ive spent a week trying to write my first app in c# it works reasonably well, but im having difficulty getting to grips with inter thread signalling etc. I...
23
by: cmdolcet69 | last post by:
How can i add a 5ms delay between bytes i send over to a controller? I have to send 6 bytes in total however in between each byte i need to have a 5ms delay.
1
by: Rich | last post by:
Hello, I am working on a python library for sending and receiving data from a Subaru's ECU (the fuel injection computer) via the OBD-II port and an OBD to USB cable, with the Subaru Select Monitor...
10
by: sklett | last post by:
I'm trying to send some printer commands (ZPLII) to an attached USB printer using the SerialPort component. I didn't get very far at all. In fact I haven't gotten anywhere. The first problem I...
1
by: ASPnewb1 | last post by:
I'm running into a problem of how to send a string across to another machine via serial port using the serial port class. The string that needs to be sent is like this, ...
0
by: =?Utf-8?B?Q2hhcmxpZQ==?= | last post by:
Hi, This apparently is a common problem and I've yet to read a solution that actually works for my specific situation. I have a Zebra RW220 printer that I connect to via Bluetooth connection...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.