In the construction of agricultural administrative comprehensive law enforcement information platform,it is need to develop mobile law enforcement systems to achieve comprehensive agricultural law enforcement mobile office,that is:the scene to collect data,upload pictures and print law enforcement documents.The main types of law enforcement documents are Word,Excel,PDF,picture,etc.At present,wireless printing can be realized by PC terminal,and it cannot be realized by mobile terminal.The main reason is that the printer manufacturers use their own independent print control instruction set which is not universal.On the other hand,Android or iOS system does not support Bluetooth wireless communication protocol or it is need to manually configure.As a result,the Android system cannot print the document directly through Bluetooth.In wireless printing technology,its core technology has two points.On the one hand,it makes all sorts of the documents which will be printed translate into the language which the printer can recognize.On the other hand,it sends the translated language to the printer for printing by a certain wireless technology.Research and experiment have found that the vast majority of smart phones(or PAD)and wireless printers are supporting NFC short-range wireless communications.In addition,the print server can be adopted to resolve the translation of the document to be printed.After parsing the format of the document,the print server extracts the content that needs to be printed from the instrument,and converts it into a generic image format after a series of processing.Finally,the picture is returned to the mobile phone APP in the form of binary data stream.After receiving the binary data stream of the print server processing,the mobile phone APP calls the Bluetooth interface at the bottom of the Android system to communicate with the Bluetooth wireless printer to complete the printing function.NFC based mobile terminal wireless printing technology system consists of wireless connection,document translation and file transmission.The system uses C/S architecture and the development language is Java.Android terminal development platform is Android studio,the background development platform is Eclipse,and the database uses My SQL.At present,the mobile terminal wireless printing technology has been applied to the comprehensive administrative law enforcement information system of agricultural administration,and the system has passed the provincial identification.The comprehensive administrative law enforcement information system of agricultural administration has been popularized and applied in agricultural administrative law enforcement detachment and brigade of municipalities,districts and counties in Jiangsu Province,and achieved better economic and social benefits. |