EasyManuals Logo

BIXOLON SRP-270 Reference Guide

BIXOLON SRP-270
50 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #7 background imageLoading...
Page #7 background image
POS/Mobile Printer
Rev. 1.00
- 7 -
3. Method
The development environment is based on C.
3-1 ConnectToPrinter
Set the connection for communication with the printer.
int ConnectToPrinter(const char *port)
[Parameters]
* const char *port
[in] Interface to be connected to the printer
Interface
Input Data
Example
USB
USB:
ConnectToPrinter(“USB:”)
Serial
serial:(baudrate)
/dev/ttyX:(baudrate)
ConnectToPrinter(“serial:115200”)
ConnectToPrinter(“/dev/tty0:115200”)
Parallel
parallel
/dev/lpX
ConnectToPrinter(“parallel”)
ConnectToPrinter(“/dev/lp0”)
Bluetooth
Device MAC address
ConnectToPrinter(“7d:f0:7d:e4:e0:78”)
Ethernet, Wifi
IP address, port no.
ConnectToPrinter(“192.168.0.10:9100”)
[Return Values]
Constant
Value
Description
SUCCESS
0
The operation is successful.
PORT_OPEN_ERROR
-99
The communication port cannot be opened.
NO_CONNECTED_PRINTER
-100
The printer is not connected.
NO_BIXOLON_PRINTER
-101
It is not a BIXOLON printer.
* Example
int ret;
// USB
ret = ConnectToPrinter(“USB:”);
// Serial
ret = ConnectToPrinter(“serial:115200”);
// Parallel
ret = ConnectToPrinter(“parallel);
// bluetooth
ret = ConnectToPrinter(“7d:f0:7d:e4:e0:78”);
// Ethernet or WiFi
ret = ConnectToPrinter(“192.168.0.10:9100”);
……

Other manuals for BIXOLON SRP-270

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the BIXOLON SRP-270 and is the answer not in the manual?

BIXOLON SRP-270 Specifications

General IconGeneral
ColorNo
Maximum print size-
Media thickness76 mm
Print technologyDot matrix
Power requirements120-230VAC
Standard interfacesParallel, Serial

Related product manuals