CN2510
Android API Instructions
15-3
For more details about the installation, please refer to the Overview section.
MxNPortAPI Function Groups
The supported functions in this API are listed below:
Port Control
Input/Output
Port Status Inquiry
Miscellaneous
open
close
setIoctlMode
setFlowCtrl
setBaud
setRTS
setDTR
flush
read
write
getBaud
getFlowCtrl
getIoctlMode
getLineStatus
getModemStatus
getOQueue
setBreak
Example Program
To make sure this API is workable with the device server on an Android platform, see the example program
below:
Thread thread = new Thread()
{
@Override
public void run() {
/* Enumerate and initialize NPorts on system */
List<MxNPort> NPortList = MxNPortService.getNPortInfoList();
if(NPortList!=null){
MxNPort.IoctlMode mode = new MxNPort.IoctlMode();
mode.baudRate = 38400;
mode.dataBits = MxNPort.DATA_BITS_8;
Содержание CN2510-16
Страница 17: ...CN2510 Getting Started 2 9 5 Click on Next to continue 6 Wait while the PComm Lite software is installed...
Страница 219: ...CN2510 RADIUS Server B 9 5 Select TCP IP protocol and then click on Next to continue 6 Specify an IP address...
Страница 220: ...CN2510 RADIUS Server B 10 7 Select Yes I want to use a RADIUS server and then click on Next to start using this function...