CN103049403B - Method for communication between embedded terminal device and cell phone - Google Patents

Method for communication between embedded terminal device and cell phone Download PDF

Info

Publication number
CN103049403B
CN103049403B CN201310011986.8A CN201310011986A CN103049403B CN 103049403 B CN103049403 B CN 103049403B CN 201310011986 A CN201310011986 A CN 201310011986A CN 103049403 B CN103049403 B CN 103049403B
Authority
CN
China
Prior art keywords
mobile phone
terminal equipment
type terminal
memory device
embedded type
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310011986.8A
Other languages
Chinese (zh)
Other versions
CN103049403A (en
Inventor
赵进云
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
FUJIAN XINNUO COMMUNICATION TECHNOLOGY Co Ltd
Original Assignee
FUJIAN XINNUO COMMUNICATION TECHNOLOGY Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by FUJIAN XINNUO COMMUNICATION TECHNOLOGY Co Ltd filed Critical FUJIAN XINNUO COMMUNICATION TECHNOLOGY Co Ltd
Priority to CN201310011986.8A priority Critical patent/CN103049403B/en
Publication of CN103049403A publication Critical patent/CN103049403A/en
Application granted granted Critical
Publication of CN103049403B publication Critical patent/CN103049403B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention provides a method for communication between an embedded terminal device and a cell phone. The method comprises the steps of first enabling the cell phone to be connected with the embedded terminal device through a universal serial bus (USB) connecting line; for the cell phone supporting an Android debug bridge (ADB) protocol of an ANDROID system, enabling the embedded terminal device to directly communicate with an application program on the cell phone through file synchronization services or network services of the ADB protocol; for the cell phone not supporting the ADB protocol of the ANDROID system, using the application program on the cell phone to write communication data into a storage device on the cell phone, then releasing the storage device, enabling the embedded terminal device to first obtain access right of the storage device on the cell phone, reading or writing in to-be-processed data from the storage device, releasing the storage device after processing is finished, and processing the returned data after the cell phone application program obtains the access right. The method has the advantages of being good in compatibility, strong in convenience and low in cost.

Description

Embedded type terminal equipment and mobile phone carry out the method for communication
[technical field]
The present invention relates to a kind of method of carrying out communication with mobile phone, particularly a kind of embedded type terminal equipment and mobile phone carry out the method for communication.
[background technology]
Along with a large amount of of mobile phone popularize, facilitate a large amount of based on the business of cell phone platform and the development of product.Such as there is a large amount of special secure payment products for cell phone platform research and development at present, on smart mobile phone, easily can realize gathering, all kinds of financial function such as inquiry into balance.
In order to enable mobile phone carry increasing business, expand with regard to needing to do the function of mobile phone, such as, allow mobile phone back printer, the peripheral hardwares such as card reader, make mobile phone can carry out being connected and communication with various peripheral hardware end product.Not yet develop at present and can support that various embedded type terminal equipment and mobile phone carry out the method for communication.USB HOST mostly supported by existing terminal device, and massive store pattern also all supported by most of mobile phone, and can hold access for USB HOST.(capacity of the memory device on mobile phone is all larger, existing is all generally adopt jumbo SD card), but, because any moment only has an equipment (mobile phone or terminal device) can access memory device on mobile phone, so can not carry out the mutual of data simply by the mode of reading and writing of files.In view of this, applicant furthers investigate, and has this case to produce.
[summary of the invention]
The technical problem to be solved in the present invention, be to provide a kind of embedded type terminal equipment and mobile phone to carry out the method for communication, it achieves the communication of mobile phone and various embedded type terminal equipment.
The present invention is achieved in that
Embedded type terminal equipment and mobile phone carry out the method for communication, comprise the steps:
Step 1: mobile phone is connected with embedded type terminal equipment by USB connecting line;
According to the cellphone information enumerated, step 2: embedded type terminal equipment detects the mobile phone accessed by USB connecting line, enumerates cellphone information, then judges whether mobile phone supports the ADB agreement of ANDROID system, if supported, perform step 3, if do not supported, perform step 4;
Step 3: embedded type terminal equipment carries out communication by the application program on the file synchronization services of ADB agreement or network service and mobile phone, carries out data input and data output, in this case without the need to by the memory device interim data on mobile phone;
Step 4: first the application program on mobile phone initiates communication request, to the memory device write data on mobile phone, writes the described memory device of rear release, performs step 5; If described application program does not initiate communication request, then directly discharge described memory device, perform step 5;
Step 5: whether embedded type terminal equipment is inquired about described memory device by scsi command and be released, if not, then cyclic query, until described memory device is released, performs step 6;
Step 6: embedded type terminal equipment reads the data of described application program transmission from described memory device by SCSI read write command/FAT file system according to described application program, or the request msg of write embedded type terminal equipment; Be disposed, return result to described memory device, then embedded type terminal equipment discharges described memory device, performs step 7;
Step 7: whether described application program detects described memory device in real time and be released, if discharge, then reads described result from described memory device;
When the ADB agreement of ANDROID system do not supported by mobile phone, the communication between mobile phone and embedded type terminal equipment performs step 4 by circulation and realizes, until mobile phone and embedded type terminal equipment disconnect to step 7.
Further, in described step 6, it is by following two kinds of modes that embedded type terminal equipment discharges described memory device: mode one: embedded type terminal equipment disconnects the power supply to USB connecting line, mode two: driven the connection disconnected USB connecting line by USB HOST.
Further, described memory device is SD card.
Tool of the present invention has the following advantages:
1, compatible: can the compatible various mobile phone possessing massive store pattern on the market, the particular/special requirement of brandless and type, be suitable for crowd wide;
2, convenience: use whenever and wherever possible, does not limit by scene, as long as terminal device has USB HOST interface, all can carry out being connected with mobile phone and communicates;
3, low cost, only need USB connecting line just can carry out communication, user is without the need to changing mobile phone, support a large amount of mobile phone models, simultaneously because the MCU adopted in embedded type terminal equipment supports USB HOST function, reduce the cost of embedded type terminal equipment, without the need to adding the modules such as expensive such as bluetooth.
[accompanying drawing explanation]
The present invention is further illustrated in conjunction with the embodiments with reference to the accompanying drawings.
Fig. 1 is the inventive method structural representation.
[embodiment]
Refer to shown in Fig. 1, embodiments of the invention are described in detail.
Embedded type terminal equipment and mobile phone carry out the method for communication, comprise the steps:
Step 1: mobile phone is connected with embedded type terminal equipment by USB connecting line;
According to the cellphone information enumerated, step 2: embedded type terminal equipment detects the mobile phone accessed by USB connecting line, enumerates cellphone information, then judges whether mobile phone supports the ADB agreement of ANDROID system, if supported, perform step 3, if do not supported, perform step 4;
Step 3: embedded type terminal equipment carries out communication by the application program on the file synchronization services of ADB agreement or network service and mobile phone, carries out data input and data output, in this case without the need to by the memory device interim data on mobile phone;
Step 4: first the application program on mobile phone initiates communication request, to the memory device write data on mobile phone, writes the described memory device of rear release, performs step 5; If described application program does not initiate communication request, then directly discharge described memory device, perform step 5; Described memory device is described memory device can be SD card;
Step 5: whether embedded type terminal equipment is inquired about described memory device by scsi command and be released, if not, then cyclic query, until described memory device is released, performs step 6; Only have described memory device to be released, embedded type terminal equipment just can get the access rights to memory device; Described SCSI full name Small Computer System Interface, Chinese: the system interface of small-size computer, this interface is mainly used in same hard disk, floppy disk, the direct communication of CD-ROM drive;
Step 6: embedded type terminal equipment reads the data of described application program transmission from described memory device by SCSI read write command/FAT file system according to described application program, or the request msg of write embedded type terminal equipment; Be disposed, return result to described memory device, then embedded type terminal equipment discharges described memory device, performs step 7; It is by following two kinds of modes that embedded type terminal equipment discharges described memory device: mode one: embedded type terminal equipment disconnects the power supply to USB connecting line, mode two: driven the connection disconnected USB connecting line by USB HOST;
Step 7: whether described application program detects described memory device in real time and be released, if discharge, then reads described result from described memory device;
When the ADB agreement of ANDROID system do not supported by mobile phone, the communication between mobile phone and embedded type terminal equipment performs step 4 by circulation and realizes, until mobile phone and embedded type terminal equipment disconnect to step 7.
Tool of the present invention has the following advantages:
1, compatible: can the compatible various mobile phone possessing massive store pattern on the market, the particular/special requirement of brandless and type, be suitable for crowd wide;
2, convenience: use whenever and wherever possible, does not limit by scene, as long as terminal device has USB HOST interface, all can carry out being connected with mobile phone and communicates;
3, low cost, only need USB connecting line just can carry out communication, user is without the need to changing mobile phone, support a large amount of mobile phone models, simultaneously because the MCU adopted in embedded type terminal equipment supports USB HOST function (because most of cheap MCU or single-chip microcomputer all comprise USB HOST function), reduce the cost of embedded type terminal equipment, without the need to adding the modules such as expensive such as bluetooth.
The above, be only present pre-ferred embodiments, therefore can not limit scope of the invention process according to this, the equivalence change namely done according to the scope of the claims of the present invention and description with modify, all should still belong in scope that the present invention contains.

Claims (3)

1. embedded type terminal equipment and mobile phone carry out the method for communication, it is characterized in that: comprise the steps:
Step 1: mobile phone is connected with embedded type terminal equipment by USB connecting line;
According to the cellphone information enumerated, step 2: embedded type terminal equipment detects the mobile phone accessed by USB connecting line, enumerates cellphone information, then judges whether mobile phone supports the ADB agreement of ANDROID system, if supported, perform step 3, if do not supported, perform step 4;
Step 3: embedded type terminal equipment carries out communication by the application program on the file synchronization services of ADB agreement or network service and mobile phone, carries out data input and data output, in this case without the need to by the memory device interim data on mobile phone;
Step 4: first the application program on mobile phone initiates communication request, to the memory device write data on mobile phone, writes the described memory device of rear release, performs step 5; If described application program does not initiate communication request, then directly discharge described memory device, perform step 5;
Step 5: whether embedded type terminal equipment is inquired about described memory device by scsi command and be released, if not, then cyclic query, until described memory device is released, performs step 6;
Step 6: embedded type terminal equipment reads the data of described application program transmission from described memory device by SCSI read write command/FAT file system according to described application program, or the request msg of write embedded type terminal equipment; Be disposed, return result to described memory device, then embedded type terminal equipment discharges described memory device, performs step 7;
Step 7: whether described application program detects described memory device in real time and be released, if discharge, then reads described result from described memory device;
When the ADB agreement of ANDROID system do not supported by mobile phone, the communication between mobile phone and embedded type terminal equipment performs step 4 by circulation and realizes, until mobile phone and embedded type terminal equipment disconnect to step 7.
2. embedded type terminal equipment according to claim 1 and mobile phone carry out the method for communication, it is characterized in that: in described step 6, it is by following two kinds of modes that embedded type terminal equipment discharges described memory device: mode one: embedded type terminal equipment disconnects the power supply to USB connecting line, mode two: driven the connection disconnected USB connecting line by USB HOST.
3. embedded type terminal equipment according to claim 1 and mobile phone carry out the method for communication, it is characterized in that: described memory device is SD card.
CN201310011986.8A 2013-01-11 2013-01-11 Method for communication between embedded terminal device and cell phone Active CN103049403B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310011986.8A CN103049403B (en) 2013-01-11 2013-01-11 Method for communication between embedded terminal device and cell phone

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310011986.8A CN103049403B (en) 2013-01-11 2013-01-11 Method for communication between embedded terminal device and cell phone

Publications (2)

Publication Number Publication Date
CN103049403A CN103049403A (en) 2013-04-17
CN103049403B true CN103049403B (en) 2015-06-17

Family

ID=48062050

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310011986.8A Active CN103049403B (en) 2013-01-11 2013-01-11 Method for communication between embedded terminal device and cell phone

Country Status (1)

Country Link
CN (1) CN103049403B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103365688B (en) * 2013-06-28 2018-08-31 深圳市掌讯通讯设备有限公司 A kind of method for automatic installation and synchronization of software between Android intelligent devices
CN103369037A (en) * 2013-06-28 2013-10-23 深圳市掌讯通讯设备有限公司 Method for automatically synchronizing data among Android intelligent equipment
CN104572564B (en) * 2015-01-13 2018-04-20 上海动联信息技术股份有限公司 It is a kind of to realize android movement equipment and the method for USB OTG host communications
CN105022949A (en) * 2015-07-02 2015-11-04 盘石软件(上海)有限公司 Handheld device for evidence fixing of Android phones and fixing method
CN105182111B (en) * 2015-08-17 2018-09-28 上海斐讯数据通信技术有限公司 A kind of performance test methods and system of mobile terminal

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101882110A (en) * 2010-06-30 2010-11-10 中兴通讯股份有限公司 Method for downloading data and terminal equipment
CN102568122A (en) * 2011-12-26 2012-07-11 东信和平智能卡股份有限公司 POS (point of sale) terminal system combining smart card and mobile phone

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080031201A1 (en) * 2006-02-17 2008-02-07 Chun-Ching Lee Plug and Play Network Telephone Communication Apparatus

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101882110A (en) * 2010-06-30 2010-11-10 中兴通讯股份有限公司 Method for downloading data and terminal equipment
CN102568122A (en) * 2011-12-26 2012-07-11 东信和平智能卡股份有限公司 POS (point of sale) terminal system combining smart card and mobile phone

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
支持多种存储介质的嵌入式MP3播放系统的设计与实现;李静等;《计算机系统应用》;20080131(第1期);第19页至22页 *

Also Published As

Publication number Publication date
CN103049403A (en) 2013-04-17

Similar Documents

Publication Publication Date Title
CN103049403B (en) Method for communication between embedded terminal device and cell phone
CN102779283B (en) A kind of device, system and method realizing SIM card read-write
CN100382065C (en) Intelligent card reading and writing method based on USB interface and its reading and writing device
US10248598B2 (en) Intelligent storage device signal transmission method for backing up data on intelligent storage module based on system type of electronic device
CN102902650A (en) Data sharing and transfer systems and methods
CN102497424A (en) Method for achieving cloud storage through mobile storage device
CN102609741B (en) A kind of method of exchanges data between mobile device and inside and outside portion storage card thereof
CN103530065A (en) Storage control method
CN101957771A (en) Method and device for installing mobile software for multiple mobile phones simultaneously
CN103780633A (en) Method and device for mobile terminal to upload file, and method and device for network server to upload file
CN103092648B (en) A kind of image upgrade method, system and subscriber equipment and personal computer
CN202584143U (en) A read-only card reader with multiple interfaces
CN114185826A (en) Interface adapter for external storage equipment
CN103795806A (en) Method for achieving cloud storage for mobile terminal
CN205068512U (en) Wireless fingerprint attendance system
CN202736082U (en) Apparatus and system for realizing reading and writing of SIM card
CN102938804B (en) A kind of method and apparatus of managing liaison information
CN201600923U (en) 3G USB flash drive
CN203720863U (en) Large-capacity-USIM mass-storage issuing device
CN102298559B (en) Handheld terminal and with computer method for information interaction between and system
CN101404648A (en) Media terminal and its data synchronization method and system
CN204189089U (en) A kind of server
CN2884332Y (en) Cards reader
CN112765070A (en) Data transmission debugging method and system, electronic equipment and storage medium
CN101742632A (en) Synchronous method, host computer, mobile terminal and synchronous system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant