자산 2

Native App Print for Android

How to install and setup the Hardware

Applicable Interface

USB
Connecting
• Connect the USB cable to the B-gate and the host, and turn on the B-gate.
 
Wired LAN
Connecting

• After B-gate booting is complete, proceed to "Opening the printer cover  Pressing the Feed key Closing the printer cover", and the B-gate self-test describing the LAN configuration information is printed.

• Check the ETH_DHCP value in the self-test. If the value is Disabled, open the network configuration of the host (e.g., PC) and set the LAN of the host to the same as the LAN configuration of the B-gate. For example, if the default IP of the B-gate is 192.168.192.168, set the IP of the host to 192.168.192.x (x = 1 ~ 254) and the Subnet Mask to 255.255.255.0.

• When connecting the LAN cable with the ETH_DHCP value set to Enabled, the B-gate automatically brings IP information from the DHCP server (router). By printing the self-test of B-gate, you can check the IP assigned to B-gate.
Setting

• Utilities are provided so that users can set up the interface.

• Web Utilities: It can be accessed by entering IP of B-gate in the address window of the web browser.

• Native Utilities: Utility apps that can run on each OS are provided.

Wireless LAN
Connecting

• Connect the supported WLAN dongle to the B-gate, and turn on the B-gate.

• After B-gate booting is complete, proceed to "Opening the printer cover  Pressing the Feed key Closing the printer cover", and the B-gate self-test describing the WLAN configuration information is printed.

• First check the network value in the self-test. If the value is adhoc, open the wireless connection menu of the host (PC, tablet, smartphone) and set it as adhoc before connecting. The default network mode for B-gate is adhoc, ESSID is BIXOLON_adhoc, and IP address is 192.168.1.1.

• If the value is infra, connect the host to the AP connected to the B-gate.

• Check the WLAN_DHCP value in the self-test. If the value is disable, the host (e.g. PC), open the network configuration and set the host's WLAN to the same as the B-gate's WLAN configuration. For example, if the default IP of the B-gate is 192.168.192.168, set the host IP to 192.168.192.x (x = 1 ~ 254) and Subnet Mask to 255.255.255.0.

• When connecting the LAN cable with the ETH_DHCP value set to enabled, the B-gate automatically brings IP information from the DHCP server (router). By printing the self-test of B-gate, you can check the IP assigned to B-gate.
Setting

• Utilities are provided so that users can set up the interface.

• Web Utilities: It can be accessed by entering the IP of B-gate in the address window of web browser.

• Native Utilities: Utility apps that can run on each OS are provided.
 
Bluetooth
Connecting

• Turn on the B-gate that supports Bluetooth.

• After B-gate booting is complete, proceed to "Opening the printer cover  Pressing the Feed key Closing the printer cover", and the B-gate self-test describing the WLAN configuration information is printed.

Check the device Name value in the self-test.

Pair the devices you want to connect from the list of devices found in the host.

Setting

• Utilities are provided so that users can set up the interface.

• Native Utilities: Utility apps that can run on each OS are provided.

How to install peripherals

Connecting

Connect supported peripherals to the USB-A type on the back of the B-gate, and turn on the B-gate.

After B-gate booting is complete, proceed to "Opening the printer cover → Pressing the Feed key → Closing the printer cover", and the B-gate self-test describing the enabled peripheral configuration information is printed.

How to connect B-gate to a Host Device

Connecting Bluetooth
 

1) Turn on the printer.

2) Select [Settings] – [Connections] - [Bluetooth]



3) By
changing "Disable" in the upper right corner to "Enable," the following list of Bluetooth-enabled devices are displayed. Select the device you want to connect among the listed devices.




4) After the Bluetooth registration request screen appears as below, enter the password and click OK. The password is 0000.


 

5) If the list of Bluetooth devices you want to connect is displayed as ‘Available devices’, as seen below, the connection is successful.



Wi-Fi connections
Connect the printer to a network AP(Access Point) and assign an IP address or set it to DHCP. As BIXOLON’s printer is initially set to adhoc, it is necessary to first set up with the mPos Utility App uploaded in Play Store.

 

1) Turn on the printer.

2) Select [Settings] – [Connections] - [Wi-Fi].



3) Connect to the same network to which the printer is connected to.

Utility Setup

Using the Android mPOS utility, you can set the B-gate interface and add peripherals (can be downloaded from Play Store).

Interface setting

1) Bluetooth

Select the Search button, and then the Bluetooth address of the printer you want to connect to.

Bluetooth Address is [Bluetooth Configuration] – [MAC_Addr] in the printer self-test page.
 

Note

In order to perform the printer self-test, open the printer cover, press the “Feed” button and close the printer cover.


For Bluetooth connection, the connection between the Android host and the printer must be completed beforehand. For detailed information about the Bluetooth connection, refer to "Other - Bluetooth Connection" at the bottom of the document.

 

2) WLAN

Select the Search button, and then the IP address of the printer that you want to connect to.

The IP Address is [WLAN Configuration] – [IP_Addr] in the printer self-print printout. 

Note

For a WLAN connection, wired and wireless routers need to be ready.

 

Interface Configuration
 

1) Bluetooth Configuration

You can change and save the Bluetooth configuration of the connected mPOS.



 

(1) Authentication Encryption: Enables or disables authentication and encryption mode when connecting Bluetooth.

- If it is set to Disable, you can connect to the device, regardless of the PIN code.
 

(2) Connection Mode: Sets up Mode1, Mode2, or Mode3 when connecting Bluetooth.

- Mode 1: You can connect only with the first device that is successfully connected.

- Mode 2: All Bluetooth-enabled devices can be connected via PIN Code.

- Mode 3: You can connect only with the first device that is successfully connected, and search only the connected devices.
 

(3) PIN Code: Change the necessary PIN Code when connecting Bluetooth.
 

(4) Printer Name: Change the name of the created device when connecting Bluetooth.

2) Wi-Fi Configuration
You can change and save the Wi-Fi
configuration of the connected mPOS.



 

(1) Network

 You can configure the printer name, infrastructure / adhoc, SSID, IP, subnet mask, and gateway.

- Inactivity time: It is the function that, if the host (PC) is connected to the TCP port of the printer and there is no data transmission during the inactivity time, the printer forcibly terminates the connection.
 

(2) Authentication

 You can configure authentication and encryption. For normal connection, it is necessary to match security setting with AP in case of Infrastructure mode, and with the host in case of adhoc mode.​​​​

Development Environment

System requirements
 

1) OS

Windows 7 (32- or 64-bit) or later

Mac OS X 10.10 or later

Linux (tested on Ubuntu Linux, Lucid Lynx)

GNU C Library (glibc) 2.19 or later is required.

On Ubuntu Linux, version 12.04 or later is required.

64-bit distributions must be capable of running 32-bit applications.
 

2) Eclipse IDE

Eclipse (http://www.eclipse.org/downloads/)

JDK 7(http://www.oracle.com/technetwork/java/javase/downloads/index.html)

Android SDK

ADT(Android Development Tools) plugin

 Select Help - Install New Software, and the Install screen appears.

 Press the right Add button of ‘Work with’, and then enter as follows.

 (Name : ADT, Location : https://dl-ssl.google.com/android/eclipse/)

 Check the software to install in the list and proceed.




3) Android IDE

Android Studio

JDK 7

See http://developer.android.com/sdk/index.html


Setting Android device developer options
 

1) Select [Settings] - [Developer option].

If the developer option is not seen in the menu, click [About Device] - [Build Number] to switch to Developer mode.
 

2) Enable USB debugging.