Mobile terminal, electronic device and serial port transmission method and system
A technology for electronic equipment and mobile terminals, applied in the field of serial transmission systems, can solve the problems of inability to realize master/slave communication mode, change circuits, etc., and achieve the effects of improving stability and reliability and reducing power consumption
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0044]There is a mobile phone and a sphygmomanometer, and the sphygmomanometer measures the user's high pressure of 90 and low pressure of 60 after being used by the user. The measured data is now transmitted from the sphygmomanometer to the mobile phone through the serial port transmission method between the mobile terminal and the electronic device provided by the present invention, see figure 1 ,Methods as below:
[0045] Step 11. A first serial port of the mobile phone sends a connection request to a second serial port of the sphygmomanometer every second.
[0046] Step 12. The second serial port receives the connection request, and sends to the first serial port first information indicating that data will be sent soon.
[0047] Step 13. The first serial port receives the first information, and sends a second message indicating that it is ready to receive data to the second serial port, and stops sending the connection request.
[0048] Step 14, the second serial port re...
Embodiment 2
[0074] There is a mobile phone and a sphygmomanometer, and the sphygmomanometer measures the user's high pressure of 90 and low pressure of 60 after being used by the user. The measured data is transmitted from the blood pressure meter to the mobile phone. see image 3 , the serial port transmission method between the mobile phone and the sphygmomanometer is as follows:
[0075] Step 20. Determine whether the first serial port of the mobile phone has a DTR (Data Terminal Ready) signal. If yes, it means that the mobile phone and the sphygmomanometer are successfully connected, and execute step 21. If not, end the process.
[0076] Step 21, the first serial port sends a connection request to the second serial port of the sphygmomanometer every 1 second.
[0077] Step 22. The second serial port receives the connection request, and judges whether a parameter of the sphygmomanometer indicating that there is data transmission is 1, and if so, sends a first parameter indicating tha...
Embodiment 3
[0089] This embodiment is basically the same as Embodiment 2, the difference is that, see Figure 4 :
[0090] Step 22 is: the second serial port receives the connection request, and judges whether the data to be sent has been marked, and if so, ends the process; if not, sends the first information to the first serial port.
[0091] Step 26 is: the second serial port judges whether the third information is received within a period of time, if yes, mark the data, if not, execute step 27.
[0092]The first serial port and the second serial port in this embodiment are basically the same as the first serial port and the second serial port in Embodiment 2, the difference is that the second serial port is used to send the connection request at the first serial port After receiving the connection request, judge whether the data to be sent has been marked, if so, end the operation, if not, send the first information to the first serial port; send the first message at the first serial...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 