安卓打印驱动最全驱动源码库(usbSerialForAndroid)

上传者: lfengming | 上传时间: 2019-12-21 20:07:08 | 文件大小: 1.05MB | 文件类型: zip
此项目用于安卓小票打印驱动。(稳定版)已用于实际项目 支持: USB转串口线、纯串口阵脚打印线、纯USB打印线、Cp21xx、USB CDC/ACM serial、FTDI Serial 项目说明: android_serialport_api 纯串口阵脚线通信,检测设备,读写串口等工具 com.hoho.android.usbserial 其他辅助测试类. 可以忽略 com.hoho.android.usbserial.driver 各种USB规格的驱动,可自行扩展。 FtdiSerialDriver.java(USB转串口线驱动),UsbPrinterDriver.java(纯USB打印线驱动),目前使用到这两个驱动。 com.hoho.android.usbserial.escpos 爱普生的 esc/pos 标准指令, 打印指令类。 com.hoho.android.usbserial.util 一些转换16进制工具类 net.pragmaware.pegasus.notetaker 采用JNI操作USB读写进行通信,这只另一种是先打印通信方式。 核心类 入口: 用于检测设备与打印机通信 纯串口阵脚线打印:使用SerialPortFinder.java 检测出设备,即可进行打印指令发送。 USB转串口 , 包括纯USB打印线:UsbSerialProber.java 检测出设备,即可进行打印指令发送。 以上是串口或USB线 设备检测 用于打印指令控制,输出打印结果 打印指令类:UsbComPrinter.java 使用这个类,即可进行打印操作。 最终流程: 1.检测出可用设备 2.输入打印内容 3.打印指令发送至设备 4.输出打印结果

文件下载

资源详情

[{"title":"( 60 个子文件 1.05MB ) 安卓打印驱动最全驱动源码库(usbSerialForAndroid)","children":[{"title":"项目说明.txt <span style='color:#111;'> 1.23KB </span>","children":null,"spread":false},{"title":"usbSerialForAndroid","children":[{"title":".project <span style='color:#111;'> 1.78KB </span>","children":null,"spread":false},{"title":"项目说明.txt <span style='color:#111;'> 1.23KB </span>","children":null,"spread":false},{"title":"bin","children":[{"title":"classes","children":null,"spread":false}],"spread":true},{"title":".cproject <span style='color:#111;'> 3.68KB </span>","children":null,"spread":false},{"title":"obj","children":[{"title":"local","children":[{"title":"armeabi-v7a","children":[{"title":"objs","children":[{"title":"net_pragmaware_pegasus_notetaker_PenDeviceUsbNativeHelper","children":null,"spread":false},{"title":"serial_port","children":null,"spread":false},{"title":"usbserial_port","children":null,"spread":false},{"title":"PenDeviceUsbNativeHelper","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"armeabi","children":[{"title":"objs","children":[{"title":"net_pragmaware_pegasus_notetaker_PenDeviceUsbNativeHelper","children":null,"spread":false},{"title":"serial_port,usbserial_port","children":null,"spread":false},{"title":"serial_port","children":null,"spread":false},{"title":"usbserial_port","children":null,"spread":false},{"title":"PenDeviceUsbNativeHelper","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"x86","children":[{"title":"objs","children":[{"title":"net_pragmaware_pegasus_notetaker_PenDeviceUsbNativeHelper","children":null,"spread":false},{"title":"serial_port","children":null,"spread":false},{"title":"usbserial_port","children":null,"spread":false},{"title":"PenDeviceUsbNativeHelper","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"ic_launcher-web.png <span style='color:#111;'> 50.19KB </span>","children":null,"spread":false},{"title":"lint.xml <span style='color:#111;'> 53B </span>","children":null,"spread":false},{"title":"AndroidManifest.xml <span style='color:#111;'> 270B </span>","children":null,"spread":false},{"title":"jni","children":[{"title":"Application.mk <span style='color:#111;'> 171B </span>","children":null,"spread":false},{"title":"usbread","children":[{"title":"Android.mk <span style='color:#111;'> 1.02KB </span>","children":null,"spread":false},{"title":"net_pragmaware_pegasus_notetaker_PenDeviceUsbNativeHelper.c <span style='color:#111;'> 6.27KB </span>","children":null,"spread":false},{"title":"net_pragmaware_pegasus_notetaker_PenDeviceUsbNativeHelper.h <span style='color:#111;'> 1.65KB </span>","children":null,"spread":false}],"spread":true},{"title":"Android.mk <span style='color:#111;'> 864B </span>","children":null,"spread":false},{"title":"SerialPort.c <span style='color:#111;'> 5.85KB </span>","children":null,"spread":false},{"title":"usbSerialForAndroid.cpp <span style='color:#111;'> 18B </span>","children":null,"spread":false},{"title":"SerialPort.h <span style='color:#111;'> 795B </span>","children":null,"spread":false},{"title":"gen_SerialPort_h.sh <span style='color:#111;'> 90B </span>","children":null,"spread":false}],"spread":true},{"title":"proguard-project.txt <span style='color:#111;'> 781B </span>","children":null,"spread":false},{"title":"libs","children":[{"title":"posindev.jar <span style='color:#111;'> 12.73KB </span>","children":null,"spread":false},{"title":"armeabi-v7a","children":null,"spread":false},{"title":"bsh-2.0b5.jar <span style='color:#111;'> 374.85KB </span>","children":null,"spread":false},{"title":"armeabi","children":null,"spread":false},{"title":"x86","children":null,"spread":false},{"title":"android-support-v4.jar <span style='color:#111;'> 606.89KB </span>","children":null,"spread":false}],"spread":true},{"title":"src","children":[{"title":"net","children":[{"title":"pragmaware","children":[{"title":"pegasus","children":[{"title":"notetaker","children":[{"title":"PenDeviceUsbNativeHelper.java <span style='color:#111;'> 1.43KB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false},{"title":"com","children":[{"title":"hoho","children":[{"title":"android","children":[{"title":"usbserial","children":[{"title":"driver","children":[{"title":"UsbPrinterDriver.java <span style='color:#111;'> 21.18KB </span>","children":null,"spread":false},{"title":"ProbeTable.java <span style='color:#111;'> 3.64KB </span>","children":null,"spread":false},{"title":"Cp21xxSerialDriver.java <span style='color:#111;'> 12.14KB </span>","children":null,"spread":false},{"title":"UsbSerialProber.java <span style='color:#111;'> 4.66KB </span>","children":null,"spread":false},{"title":"CdcAcmSerialDriver.java <span style='color:#111;'> 12.78KB </span>","children":null,"spread":false},{"title":"ProlificSerialDriver.java <span style='color:#111;'> 20.09KB </span>","children":null,"spread":false},{"title":"FtdiSerialDriver.java <span style='color:#111;'> 17.21KB </span>","children":null,"spread":false},{"title":"CommonUsbSerialPort.java <span style='color:#111;'> 4.79KB </span>","children":null,"spread":false},{"title":"UsbId.java <span style='color:#111;'> 2.68KB </span>","children":null,"spread":false},{"title":"UsbSerialRuntimeException.java <span style='color:#111;'> 1.39KB </span>","children":null,"spread":false},{"title":"UsbSerialPort.java <span style='color:#111;'> 7.63KB </span>","children":null,"spread":false},{"title":"UsbSerialDriver.java <span style='color:#111;'> 1.42KB </span>","children":null,"spread":false}],"spread":false},{"title":"Snippet.java <span style='color:#111;'> 5.50KB </span>","children":null,"spread":false},{"title":"escpos","children":[{"title":"ScaleParser.java <span style='color:#111;'> 3.71KB </span>","children":null,"spread":false},{"title":"EscposPrinter.java <span style='color:#111;'> 2.83KB </span>","children":null,"spread":false},{"title":"Command.java <span style='color:#111;'> 3.00KB </span>","children":null,"spread":false},{"title":"UsbComPrinter.java <span style='color:#111;'> 28.87KB </span>","children":null,"spread":false},{"title":"IPrintCommand.java <span style='color:#111;'> 85B </span>","children":null,"spread":false}],"spread":false},{"title":"BuildInfo.java <span style='color:#111;'> 490B </span>","children":null,"spread":false},{"title":"util","children":[{"title":"HexDump.java <span style='color:#111;'> 4.58KB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false},{"title":"android_serialport_api","children":[{"title":"SerialPortFinder.java <span style='color:#111;'> 2.80KB </span>","children":null,"spread":false},{"title":"SerialPortParameter.java <span style='color:#111;'> 1.26KB </span>","children":null,"spread":false},{"title":"SerialPort.java <span style='color:#111;'> 4.96KB </span>","children":null,"spread":false},{"title":"SerialInputOutputManager.java <span style='color:#111;'> 6.33KB </span>","children":null,"spread":false},{"title":"SerialDriver.java <span style='color:#111;'> 854B </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"project.properties <span style='color:#111;'> 584B </span>","children":null,"spread":false},{"title":"res","children":[{"title":"values","children":[{"title":"styles.xml <span style='color:#111;'> 697B </span>","children":null,"spread":false},{"title":"strings.xml <span style='color:#111;'> 236B </span>","children":null,"spread":false},{"title":"dimens.xml <span style='color:#111;'> 220B </span>","children":null,"spread":false}],"spread":false},{"title":"layout","children":[{"title":"activity_main.xml <span style='color:#111;'> 697B </span>","children":null,"spread":false}],"spread":false},{"title":"drawable-ldpi","children":null,"spread":false},{"title":"drawable-hdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 7.48KB </span>","children":null,"spread":false}],"spread":false},{"title":"values-v11","children":[{"title":"styles.xml <span style='color:#111;'> 329B </span>","children":null,"spread":false}],"spread":false},{"title":"drawable-mdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 3.69KB </span>","children":null,"spread":false}],"spread":false},{"title":"drawable-xhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 12.22KB </span>","children":null,"spread":false}],"spread":false},{"title":"drawable-xxhdpi","children":[{"title":"ic_launcher.png <span style='color:#111;'> 24.20KB </span>","children":null,"spread":false}],"spread":false},{"title":"menu","children":null,"spread":false},{"title":"values-w820dp","children":[{"title":"dimens.xml <span style='color:#111;'> 381B </span>","children":null,"spread":false}],"spread":false},{"title":"values-v14","children":[{"title":"styles.xml <span style='color:#111;'> 372B </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":".classpath <span style='color:#111;'> 475B </span>","children":null,"spread":false},{"title":".externalToolBuilders","children":[{"title":"NDK-Build [Builder] (4).launch <span style='color:#111;'> 663B </span>","children":null,"spread":false}],"spread":false},{"title":"gen","children":null,"spread":false},{"title":"assets","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

  • hb13309096446 :
    还不错的。谢谢
    2021-03-13
  • 漫-流 :
    还可以不错
    2019-07-23
  • One心 :
    还算可以吧,花了我不少时间去摸索
    2019-03-20
  • QTMia :
    请问这个可以直接转成apk测试的吗
    2019-03-20
  • i_a_jun :
    说得那么好。先下载试用一下。
    2018-08-03

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明