Communication method and communication device between terminal and external equipment
A technology of external equipment and communication method, which is applied in the field of communication, and can solve problems such as lack of versatility, USB slave interface cannot be externally connected, and interfaces are not uniform.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0142] Embodiment 1 of the present invention provides a communication method between a terminal and an external device, such as figure 1 shown, including:
[0143] Step 101: The terminal converts the transmission data into digital audio data, converts the digital audio data into an audio analog signal through an audio device, outputs the audio analog signal to an external device, and initializes a buffer area;
[0144] Specifically, the transmission data in this embodiment includes a data header and data content; the buffer area is used to store the response data;
[0145] Step 102: The terminal collects the response audio analog signal returned by the external device through the audio device, and converts the response audio analog signal into response digital audio data;
[0146] Specifically, in this embodiment, the response digital audio data includes a data header and data content;
[0147] In this embodiment, step 101 and step 102 can be replaced by:
[0148] Step 101'...
Embodiment 2
[0161] Embodiment 2 of the present invention provides a communication method between a terminal and an external device, such as figure 2 shown, including:
[0162] Step 201: The terminal converts the transmission data into digital audio data, sets the first number of retries and the first number of timeouts as initial values, and initializes the buffer area;
[0163] Specifically, the transmission data in this embodiment includes a data header and data content;
[0164] For example, in this embodiment, the initial values of the first number of retries and the first number of timeouts are both 0;
[0165] Specifically, the method for the terminal to convert the transmission data into digital audio data will be further elaborated in Embodiment 4, Embodiment 5 and Embodiment 6;
[0166] For example, the transmission data is 0x31, and the corresponding binary data is 0011 0001, then when the terminal uses the conversion method in Embodiment 4, the digital audio data is:
[0...
Embodiment 3
[0231] Embodiment 3 of the present invention provides a method for negotiating communication parameters in a communication method between a terminal and an external device, such as image 3 shown, including:
[0232] Step 301: The terminal calculates the second number of retries, and judges whether the calculation result reaches the third preset value, and if yes, returns a failure message of negotiating communication parameters, and ends; otherwise, executes step 302;
[0233] For example, in this embodiment, the initial value of the second number of retries is 0, and each time the terminal calculates the second number of retries, it is to add 1 to the second number of retries;
[0234] Step 302: The terminal converts the preset parameter array data whose index value is i into digital audio data of negotiation parameters, and calculates the index value i;
[0235] Specifically, in this embodiment, the method for the terminal to convert the preset parameter array data whose i...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com