CN116506546B - Communication method of communication watch and communication watch - Google Patents
Communication method of communication watch and communication watch Download PDFInfo
- Publication number
- CN116506546B CN116506546B CN202310777423.3A CN202310777423A CN116506546B CN 116506546 B CN116506546 B CN 116506546B CN 202310777423 A CN202310777423 A CN 202310777423A CN 116506546 B CN116506546 B CN 116506546B
- Authority
- CN
- China
- Prior art keywords
- thread
- call
- communication
- watch
- receiving
- 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
Links
- 230000006854 communication Effects 0.000 title claims abstract description 131
- 238000004891 communication Methods 0.000 title claims abstract description 101
- 238000000034 method Methods 0.000 title claims abstract description 96
- 238000001514 detection method Methods 0.000 claims abstract description 114
- 230000008569 process Effects 0.000 claims abstract description 67
- 230000000694 effects Effects 0.000 claims abstract description 49
- 238000012545 processing Methods 0.000 claims description 11
- 238000006243 chemical reaction Methods 0.000 claims description 5
- 230000003068 static effect Effects 0.000 claims description 4
- 230000001960 triggered effect Effects 0.000 claims description 4
- 230000007547 defect Effects 0.000 abstract 1
- 230000006870 function Effects 0.000 description 51
- 238000010586 diagram Methods 0.000 description 4
- 230000001360 synchronised effect Effects 0.000 description 3
- 230000009471 action Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 230000007246 mechanism Effects 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- 238000002054 transplantation Methods 0.000 description 2
- 239000008186 active pharmaceutical agent Substances 0.000 description 1
- 230000006399 behavior Effects 0.000 description 1
- 230000006835 compression Effects 0.000 description 1
- 238000007906 compression Methods 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 230000006837 decompression Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000009977 dual effect Effects 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 238000004806 packaging method and process Methods 0.000 description 1
- 230000000737 periodic effect Effects 0.000 description 1
- 238000010561 standard procedure Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04M—TELEPHONIC COMMUNICATION
- H04M1/00—Substation equipment, e.g. for use by subscribers
- H04M1/72—Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
- H04M1/724—User interfaces specially adapted for cordless or mobile telephones
- H04M1/72448—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions
- H04M1/72454—User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions according to context-related or environment-related conditions
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- Environmental & Geological Engineering (AREA)
- Human Computer Interaction (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Telephone Function (AREA)
Abstract
The invention relates to the field of communication, in particular to a communication method of a communication watch and the communication watch; aiming at the defect that the existing watch does not have a communication function, the improvement scheme comprises the following steps: based on the anti-lost detection application, receiving an anti-lost detection starting request, calling an API, and creating a positioning thread and an attitude detection thread; based on the positioning thread, continuously recording the activity place and activity time of the watch user, and generating the daily activity rule of the watch user; starting gesture detection based on the gesture detection thread; judging whether to trigger an anti-lost call or not based on a first main thread of an anti-lost detection process; if yes, sending a request for calling a mobile phone held by the watch user to the communication process group; generating a first call command and calling an operating system interface based on the communication class process group; based on the real-time embedded operating system, a first call command is sent outwards; the improved scheme has the advantages that the watch can communicate independently, the flexibility is good, and meanwhile, the watch can be prevented from being lost by a user through anti-lost detection.
Description
Technical Field
The present invention relates to the field of communications, and more particularly, to a communication method of a communication wristwatch and a communication wristwatch.
Background
At present, a real-time embedded operating system is generally adopted in a Bluetooth watch on the market, and the embedded operating system has the advantages of low power consumption, quick system response, low requirements on hardware main control chip configuration and memory, various functions and the like, so that the embedded operating system is deeply favored by end users.
However, the embedded operating system of the bluetooth watch is designed for bluetooth functions, and communication functions (such as communication, short messages and internet surfing) are not considered, so that the bluetooth watch must be bound with a mobile phone for use, so that the daily communication requirements of users can be met, and the users can be greatly limited when using the watch with only the bluetooth functions.
Therefore, a communication system needs to be added to the embedded operating system of the bluetooth watch, so that the bluetooth watch has a communication function.
Disclosure of Invention
The main purpose of the present invention is to provide a communication method of a communication watch capable of independent communication and avoiding loss, and also to provide a communication watch corresponding to the communication method.
To achieve the above object, the present invention provides a communication method of a communication wristwatch, comprising the steps of:
based on the anti-lost detection application, receiving an anti-lost detection starting request, calling an API (application program interface) corresponding to the anti-lost detection starting request provided by a link library, and creating a positioning thread and a gesture detection thread of an anti-lost detection process;
based on the positioning thread, continuously recording the activity place and the activity time of the watch user until the time span of the recorded content reaches a preset first duration, and generating the daily activity rule of the watch user according to the recorded activity place and activity time;
based on the gesture detection thread, gesture detection is started according to the daily activity rule of the watch user and a preset gesture detection starting rule, and a gesture detection result is obtained;
judging whether to trigger an anti-lost call or not according to a gesture detection result of the gesture detection thread and a preset trigger anti-lost call rule based on a first main thread of the anti-lost detection process; if yes, sending a request for calling a mobile phone held by the watch user to the communication process group; wherein, the calling mode is traditional telephone call or network telephone call;
based on the communication process group, generating a first call command according to a request for calling a mobile phone held by a watch user, and calling an operating system interface corresponding to the first call command;
based on the real-time embedded operating system, the communication module with the positioning function is controlled to send a first call command outwards.
The invention also provides a communication watch, which comprises a memory, a processor, a communication module with a positioning function and a gesture detection module; the memory, the communication module with the positioning function and the gesture detection module are electrically connected with the processor;
the memory is used for storing instructions, and the processor is used for executing the instructions of the memory and realizing corresponding functions, wherein the corresponding functions comprise: a positioning function, a communication function, and a posture detection function;
the functional architecture corresponding to the instruction comprises:
the application layer comprises a communication application and an anti-lost detection application; and
the framework layer comprises a link library, a communication process group and an anti-lost detection process; and
a real-time embedded operating system;
wherein,
the link library comprises a receiving and transmitting thread group corresponding to the communication process group;
the anti-lost detection process comprises a first main thread, a positioning thread and a gesture detection thread;
the link library provides an API to the application layer;
the application layer, the communication process group and the anti-lost detection process are communicated with the receiving and transmitting thread group through an inter-process communication mechanism;
the real-time embedded operating system provides an operating system interface to the framework layer.
The invention provides an anti-lost detection application, which is used for receiving an open anti-lost detection request, calling an API (application program interface) corresponding to the open anti-lost detection request provided by a link library, and creating a positioning thread and a gesture detection thread of an anti-lost detection process; based on the positioning thread, continuously recording the activity place and the activity time of the watch user until the time span of the recorded content reaches a preset first duration, and generating the daily activity rule of the watch user according to the recorded activity place and activity time; based on the gesture detection thread, gesture detection is started according to the daily activity rule of the watch user and a preset gesture detection starting rule, and a gesture detection result is obtained; judging whether to trigger an anti-lost call or not according to a gesture detection result of the gesture detection thread and a preset trigger anti-lost call rule based on a first main thread of the anti-lost detection process; if yes, sending a request for calling a mobile phone held by the watch user to the communication process group; wherein, the calling mode is traditional telephone call or network telephone call; based on the communication process group, generating a first call command according to a request of calling a mobile phone held by a watch user, and calling an operating system interface corresponding to the first call command; based on the real-time embedded operating system, the communication module with the positioning function is controlled to send the first call command outwards, through the communication method, the watch can communicate independently, the use flexibility is greatly improved without a mobile phone when the communication function is realized, meanwhile, through anti-lost detection, the watch can be prevented from being lost by a user, and the use experience is further optimized.
Drawings
FIG. 1 is a schematic diagram showing steps of a communication method of a communication wristwatch according to an embodiment of the invention;
fig. 2 is a structural diagram of a communication wristwatch according to an embodiment of the present invention;
fig. 3 is a functional architecture diagram of a communication watch according to an embodiment of the present invention.
The achievement of the objects, functional features and advantages of the present invention will be further described with reference to the accompanying drawings, in conjunction with the embodiments.
Detailed Description
The present invention will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present invention more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
The embodiment of the invention provides a communication method of a communication watch, as shown in fig. 1, comprising the following steps:
step S1, based on the anti-lost detection application, an anti-lost detection starting request is received, an API corresponding to the anti-lost detection starting request provided by a link library is called, and a positioning thread and a gesture detection thread of an anti-lost detection process are created.
In this step, the API call provided by the link library is a synchronous call or an asynchronous call, and after the Timeout is specified, if no reply is received, the current call is canceled, and the Timeout result is returned to the corresponding application. Preferably, the call of the API is an asynchronous call, the link library is a dynamic link library, and shared resources in the link library are protected when a plurality of applications are simultaneously called.
Step S2, based on the positioning thread, continuously recording the activity place and the activity time of the watch user until the time span of the recorded content reaches a preset first duration, and generating the daily activity rule of the watch user according to the recorded activity place and activity time.
Since the activity place and activity time of the watch user often have periodic variation, the time span of recording the content should be long enough to completely record the activity of the watch user; meanwhile, since the daily activity place and activity time of many watch users may be relatively fixed, in order to reduce the recording power consumption, in the case that the content of the front-stage recording is not changed greatly, the back-stage recording may be performed only in a critical period. Therefore, the steps of continuously recording the activity place and the activity time of the watch user until the time span of the recorded content reaches the preset first duration are realized by the following steps: the first time is not less than 5 days; dividing the first time length into a plurality of sections of recording time periods, wherein each section of recording time period is 24 hours; the recording mode of each recording period is set according to the period sequence of the recording period, the recording content of the recording period and a preset recording mode setting rule. More specifically, the recording mode of the recording period includes: the recording time periods with the time period sequence not larger than a first preset value are recorded for 24 hours without interruption, wherein the first preset value is a minimum integer not smaller than 50% of the first duration; recording time periods with the time period sequence being larger than a first preset value, if the overlap ratio of the working time periods recorded by the time periods with the time period sequence being not larger than the first preset value is higher than a second preset value, recording every fifth time period in the household time period with the longest time, the commuting time period with the longest time and the working time period with the longest time in the past recording; and if the overlap ratio of the working time periods recorded by the recording time periods with the time period sequence not larger than the first preset value is lower than the second preset value, the continuous recording is carried out for 24 hours.
As an example, the first period is 5 days, divided into 5 recording periods, and the first preset value is 3, and the recording periods with the period sequence not greater than 3, that is, 24h uninterrupted recording on all days 1 to 3: the shift-in period recorded from day 1 to day 3 was 8:50- -18: 10. 8:47- -18: 13. 8:55- -18:07, the total time length of 3-day overlapped duty is 552min (namely 8:55-18:07), the ratio of the total time length of overlapped duty to the time length of 1-day duty (560 min), the time length of 2-day duty (566 min) and the time length of 3-day duty (552 min) is 0.98, 0.97 and 1 in sequence, and the second preset value is 0.8; the recording mode on the 4 th and 5 th days is interval recording, and the commute time periods recorded on the 1 st to 3 rd days are sequentially 7:51- -8:49 and 18:11- -20: 09. 7:46- -8:46 and 18:14- -20: 00. 7:56- -8:54 and 18:08- -19:54; the household period recorded on days 1 to 3 was 20:10- -7: 50. 20:01- -7: 45. 19:55- -7:55; then in the recordings from day 1 to day 3, the longest household period is 19:55- -7: 55. the longest commute period is 7:51- -8:49 and 18:11- -20: 09. the longest shift period is 8:47- -18:13, the fifth time period is 5 minutes, so that days 4 and 5 are recorded every 5 minutes for four time periods (19:55-7:55, 7:51-8:49, 18:11-20:09, 8:47-18:13).
More specifically, the activity sites include office sites, residence sites; generating a daily activity rule of a watch user according to the recorded activity place and activity time, wherein the specific implementation process is as follows:
setting the office place with the largest occurrence number in the recorded content as a working place; setting a residence place with the largest occurrence number in the recorded content as an address; the earliest time of the user arriving at the on-duty place in the recorded data on the same day is marked as the statistical on-duty time, the latest time of the user leaving the on-duty place is marked as the statistical off-duty time, and the statistical on-duty time of the user is generated according to the statistical on-duty time and the statistical off-duty time; the earliest time of the user arriving at the address in the recorded data on the same day is marked as the home time for statistics, the latest time of the user leaving the address is marked as the home leaving time for statistics, and the home period for statistics of the user is generated according to the home leaving time for statistics and the home leaving time for statistics;
identifying a period of the day other than the generated time period for the statistics to work as a time period for the statistics to commute; setting an overlapping period of each statistical shift-in period in the recorded content as a shift-in period; setting an overlapping period of each statistical household period in the recorded content as a household period; the period other than the set shift-in period and the set house period in one day is set as the commute period.
And step S3, based on the gesture detection thread, starting gesture detection according to the daily activity rule of the watch user and a preset gesture detection starting rule, and obtaining a gesture detection result.
In the step, the daily activity rules of the watch user comprise a work place, a work time period, a commute time period, an address and a home time period; the preset gesture detection starting rule comprises the following steps: starting gesture detection in a second time period before the home period cut-off point; in a commute period, starting gesture detection; and in the working period, starting gesture detection.
The gesture detection is started in the second time before the intercept point of the household time period, so that the behavior habit of the watch user is more met, specifically, the watch user can take off the watch and put the watch on a desktop during the household time period, the gesture of the watch can be changed in the process, but the situation of losing the watch does not exist when the watch is not close to the commute time period under the scene, the gesture detection is not needed, and the watch user is about to leave the household in the second time period (such as 5 min) before the intercept point, so that the watch user is very likely to forget to carry the watch.
Step S4, based on a first main thread of the anti-lost detection process, judging whether to trigger an anti-lost call according to an attitude detection result of the attitude detection thread and a preset trigger anti-lost call rule; if yes, sending a request for calling a mobile phone held by the watch user to the communication process group; wherein, the calling mode is a traditional telephone call or a network telephone call.
Judging whether to trigger the anti-lost call or not according to the gesture detection result of the gesture detection thread and a preset trigger anti-lost call rule, wherein the specific implementation process is as follows:
the gesture detection result is that the wrist-watch is in static state all the time in the second duration, triggers and prevents losing the calling, before the time quantum intercept at home, if the wrist-watch user has worn the wrist-watch, under the activity of wrist-watch user, the gesture of wrist-watch also has the change, otherwise, if static all the time, then the wrist-watch user does not wear this wrist-watch, forgets to carry the possibility of wrist-watch very big, through triggering preventing losing the calling, probably avoid the user just to know after bluetooth disconnection and forget to carry the wrist-watch and lead to the condition that needs to turn back.
The gesture detection result is that the watch swings downwards and then lifts upwards in the commute time period, so that the state of keeping flat or standing still reaches a third time length, an anti-lost call is triggered, the inertial action of a watch user when the watch is taken off is that the watch swings downwards firstly, then lifts up the watch so as to pull the watchband, therefore, when the action is detected, the watch is in the state of keeping flat or standing still later, the situation of losing the watch is likely to occur, the anti-lost call can be triggered, and the third time length can be set to be shorter, such as 1min, in consideration of the rapid change of the commute place;
the gesture detection result is that the watch keeps a flat or standing state for a fourth time before the cut-off point of the working period, the last gesture of the watch swings downwards firstly and then lifts upwards to trigger the anti-lost call, and a watch user can take off the watch firstly and take away the watch when the user is close to the working period, so that the watch is in the flat or standing state in the period which is not close to the working period and does not need to perform early warning.
The communication type applications corresponding to the communication type process group comprise telephone communication type applications and network communication type applications, and the telephone communication type applications comprise telephone call applications;
the communication process group comprises a telephone communication process group and a network communication process group, and the telephone communication process group comprises a telephone call process;
the transceiving thread group corresponding to the communication process group comprises a telephone communication transceiving thread group and a network communication transceiving thread group, and the telephone communication transceiving thread group comprises a telephone call transceiving thread group.
Preferably, the telephone communication application further comprises a short message application, a telephone management application and a user identification application development tool, and the network communication application comprises a multimedia information application, a mail application and a browser application, through the application, the watch can support all telephone functions, and the watch does not need to be bound with a mobile phone for use, so that the flexibility of using the watch is greatly improved. Preferably, the telephone call application has the basic requirement of a communication function, namely quick response, strong fault tolerance and strong network adaptability. For short message application, when the message content is large, the message can be distributed. The corresponding functions of the telephone call process comprise controlling the switch and sleep/wake-up of the communication module, initializing PUK/PIN code, loading telephone management application, providing call state and the like, and the telephone call process and the link library adopt a client/server mode; the functions of the processes corresponding to the short message application in the network communication process group comprise the steps of packaging the SMS driving function in the link library, providing the short message application with the sending and receiving functions of single-part or multi-part short messages, supporting the decoding and encoding of the short messages with different formats, and the like. The network communication process group comprises TCP/IP, pppd and PPP, the PPP provides a standard method for transmitting various protocol data packets on point-to-point connection, provides establishment, maintenance and release of data link connection between two entities and is responsible for functions of flow and error control and the like; pppd implements control protocols for the extended functions of ppp ownership authentication, compression/decompression, encryption/decryption, etc. The required network support for multimedia messaging applications, mail applications, browser applications is achieved through TCP/IP, pppd, PPP.
When sending a request to the communication class process group to call the handset held by the watch user, the preferred mode of call is a traditional telephone call, with a greater likelihood of successful calls than a network telephone call.
The telephone call process comprises a second main thread and a first receiving thread;
when a positioning thread and a gesture detection thread of the anti-lost detection process are established, the method further comprises the step of establishing a first receiving thread of a telephone call process;
the telephone call receiving and transmitting thread group comprises a second receiving thread and a first sending thread;
when a positioning thread and a gesture detection thread of the anti-lost detection process are created, the method further comprises creating a second receiving thread and a first sending thread of a telephone call receiving and transmitting thread group;
after the step of controlling the communication module with the positioning function to send the first call command outwards, the call message can be sourced from the telephone call application besides from the anti-lost detection application, and the specific process is as follows:
based on a telephone call application, receiving a telephone call request input by a user, calling an API (application program interface) corresponding to the telephone call request provided by a link library, creating a first receiving thread of a telephone call process, creating a second receiving thread of a telephone call receiving and transmitting thread group, creating a first sending thread of the telephone call receiving and transmitting thread group, and sending a call message corresponding to the telephone call request to a second main thread of the telephone call process;
based on a second main thread of the telephone call process, generating a second call command according to a call message corresponding to the telephone call request, calling an operating system interface corresponding to the second call command, and controlling a communication module with a positioning function to send the second call command outwards;
based on the communication module with the positioning function, receiving second call reply information and second new information from the outside, calling an operating system interface corresponding to the returned information, and sending the second call reply information and the second new information to a first receiving thread of a telephone call process;
based on a second main thread of the telephone call process, processing second call reply information and second new information according to a preset message conversion rule to obtain a second processed message, and sending the second processed message to a second receiving thread of the telephone call receiving and transmitting thread group;
and transmitting the second processed message to the telephone call application based on the first transmitting thread of the telephone call receiving and transmitting thread group.
Wherein, the method comprises the steps of generating a second call command according to the call message corresponding to the telephone call request, and the specific implementation process is as follows: according to the type of the call message and a preset message processing sequence rule, processing the call message corresponding to the telephone call request and generating a second call command. More specifically, the types of the call messages include an emergency message, a command message and a cancel message, and the preset message processing sequence rule includes: the cancellation message is processed in a higher order than the urgent message, which is processed in a higher order than the command message.
The specific implementation process includes the steps of processing the second call reply information and the second new message according to a preset message conversion rule:
if the call reply information is the call reply information and the content is not supporting the call service, converting the call reply information into a communication management error code; and if the message is a new message, calling a corresponding function to process.
The telephone call process comprises a telephone driver, the telephone driver realizes the functions of generating call commands and converting messages, and specifically, the telephone driver comprises two parts: universal phone driver, primary phone driver. The universal telephone driver realizes the functions of transmitting universal call commands and replying waiting call commands, provides a message analysis function, is loaded when the telephone call process is started, and can realize a basic communication function for the telephone call process before the main telephone driver is not loaded. The primary telephony drivers implement the primary functions, providing different driving functions for different call commands, one type of communication module corresponding to each primary telephony driver, the primary telephony drivers being loaded by the telephony call process upon identification of the communication module.
The telephone driver can identify the call reply information or the new message when receiving the message sent by the communication module, if the call reply information is processed by the telephone driver function, the new message is uniformly processed by the function for processing the new message, and the processed message is returned. The message received by the telephone call process is that a call command related to sleep is sent when the telephone call process is in sleep, a call command related to wake is sent when the telephone call process is in wake, after the call command is sent, the Time Out of waiting for the return result of the call command is different, and the default Time Out is not specially designated to be used.
And S5, based on the communication process group, generating a first call command according to a request of calling a mobile phone held by the watch user, and calling an operating system interface corresponding to the first call command.
And S6, based on the real-time embedded operating system, controlling the communication module with the positioning function to send out a first call command.
After step S6, further comprising:
based on a communication module with a positioning function, receiving first call reply information and a first new message from the outside, calling an operating system interface corresponding to the returned message, and sending the first call reply information and the first new message to a first receiving thread of a telephone conversation process;
based on a second main thread of the telephone call process, processing the first call reply information and the first new message according to a preset message conversion rule to obtain a first processed message, and sending the first processed message to a second receiving thread of the telephone call receiving and transmitting thread group;
and transmitting the first processed message to the telephone call application based on the first transmitting thread of the telephone call receiving and transmitting thread group.
According to the communication method provided by the embodiment, based on the anti-lost detection application, an anti-lost detection starting request is received, an API (application program interface) corresponding to the anti-lost detection starting request provided by a link library is called, and a positioning thread and a gesture detection thread of an anti-lost detection process are created; based on the positioning thread, continuously recording the activity place and the activity time of the watch user until the time span of the recorded content reaches a preset first duration, and generating the daily activity rule of the watch user according to the recorded activity place and activity time; based on the gesture detection thread, gesture detection is started according to the daily activity rule of the watch user and a preset gesture detection starting rule, and a gesture detection result is obtained; judging whether to trigger an anti-lost call or not according to a gesture detection result of the gesture detection thread and a preset trigger anti-lost call rule based on a first main thread of the anti-lost detection process; if yes, sending a request for calling a mobile phone held by the watch user to the communication process group; wherein, the calling mode is traditional telephone call or network telephone call; based on the communication process group, generating a first call command according to a request of calling a mobile phone held by a watch user, and calling an operating system interface corresponding to the first call command; based on the real-time embedded operating system, the communication module with the positioning function is controlled to send the first call command outwards, through the communication method, the watch can communicate independently, the use flexibility is greatly improved without a mobile phone when the communication function is realized, meanwhile, through anti-lost detection, the watch can be prevented from being lost by a user, and the use experience is further optimized.
The embodiment of the invention also provides a communication watch, as shown in fig. 2-3, which comprises a memory 10, a processor 11, a communication module 12 with a positioning function and a gesture detection module 13; the memory 10, the communication module 12 with the positioning function and the gesture detection module 13 are electrically connected with the processor 11;
the memory 10 is configured to store instructions, and the processor 11 is configured to execute the instructions of the memory 10 and implement corresponding functions, where the corresponding functions include: a positioning function, a communication function, and a posture detection function;
the functional architecture corresponding to the instruction comprises:
the application layer comprises a communication application and an anti-lost detection application; and
the framework layer comprises a link library, a communication process group and an anti-lost detection process; and
a real-time embedded operating system;
wherein,
the link library comprises a receiving and transmitting thread group corresponding to the communication process group;
the anti-lost detection process comprises a first main thread, a positioning thread and a gesture detection thread;
the link library provides APIs to the application layer;
the application layer, the communication process group and the anti-lost detection process are communicated with the receiving and transmitting thread group through an inter-process communication mechanism;
the real-time embedded operating system provides an operating system interface to the framework layer.
Preferably, the frame layer further comprises: a virtual serial layer and/or a system abstraction layer; the communication class process group calls an operating system interface of the real-time embedded operating system through the virtual serial port layer and/or the system abstraction layer. The related functions are placed in the system abstraction layer, the real-time embedded operating system does not directly call functions related to the functions, but calls functions of the system abstraction layer, and when the functional architecture is transplanted to different platforms, the functions of the system abstraction layer are mainly realized, so that the method is convenient for transplantation, has small platform dependence and is suitable for transplantation on different platforms.
Preferably, the real-time embedded operating system includes a serial port device driver to more easily support different communication modules.
When the framework layer comprises a virtual serial port layer, the content of the functional architecture further comprises a configuration, and whether the MUX is opened or not is selected through the configuration: when the configuration does not open the MUX, opening and closing the physical serial port according to the serial port setting of the configuration file; when the configuration is used for opening the MUX, the virtual serial port and the virtual serial port drive communication are opened.
In this embodiment, please refer to the specific implementation manner of each device in the above-mentioned communication watch embodiment
In the above method embodiments, details are not repeated here.
It will be appreciated by those skilled in the art that the architecture shown in fig. 2 is merely a block diagram of a portion of the architecture in connection with the present inventive arrangements and is not intended to limit the computer devices to which the present inventive arrangements are applicable.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium provided by the present invention and used in embodiments may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (SSRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM, among others.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, apparatus, article, or method that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, apparatus, article, or method. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, apparatus, article or method that comprises the element.
The foregoing description is only of the preferred embodiments of the present invention and is not intended to limit the scope of the invention, and all equivalent structures or equivalent processes using the descriptions and drawings of the present invention or direct or indirect application in other related technical fields are included in the scope of the present invention.
Claims (4)
1. A communication method of a communication wristwatch, comprising the steps of:
based on the anti-lost detection application, receiving an anti-lost detection starting request, calling an API (application program interface) provided by a link library and corresponding to the anti-lost detection starting request, and creating a positioning thread and a gesture detection thread of an anti-lost detection process;
continuously recording the activity place and the activity time of the watch user based on the positioning thread until the time span of the recorded content reaches a preset first duration, and generating the daily activity rule of the watch user according to the recorded activity place and activity time;
based on the gesture detection thread, gesture detection is started according to the daily activity rule of the watch user and a preset gesture detection starting rule, and a gesture detection result is obtained;
judging whether to trigger an anti-lost call or not according to a gesture detection result of the gesture detection thread and a preset trigger anti-lost call rule based on a first main thread of the anti-lost detection process; if yes, sending a request for calling a mobile phone held by the watch user to the communication process group; wherein, the calling mode is traditional telephone call or network telephone call;
based on the communication process group, generating a first call command according to a request for calling a mobile phone held by a watch user, and calling an operating system interface corresponding to the first call command;
based on the real-time embedded operating system, the communication module with the positioning function is controlled to send a first call command outwards;
the daily activity rules of the watch user comprise a work place, a work time period, a commuting time period, an address and a home time period;
the preset gesture detection starting rule comprises the following steps:
starting gesture detection in a second time period before the home period cut-off point;
in a commute period, starting gesture detection;
in the working period, starting gesture detection;
judging whether to trigger the anti-lost call or not according to the gesture detection result of the gesture detection thread and a preset trigger anti-lost call rule, wherein the step comprises the following steps:
the gesture detection result is that the watch is always in a static state within the second duration, and anti-lost calling is triggered;
the gesture detection result is that the watch swings downwards in the commute time period and then lifts upwards, so that the state of keeping flat or standing is kept for a third time period, and an anti-lost call is triggered;
the gesture detection result is that the watch keeps a flat or vertical state for a fourth time before the cut-off point of the working period, and the previous gesture of the watch swings downwards firstly and then lifts upwards to trigger an anti-lost call;
the step of continuously recording the activity place and the activity time of the watch user until the time span of the recorded content reaches the preset first duration comprises the following steps:
the first time is not less than 5 days;
dividing the first time length into a plurality of sections of recording time periods, wherein each section of recording time period is 24 hours;
setting a recording mode of each recording period according to the period sequence of the recording period, the recording content of the recording period and a preset recording mode setting rule;
the recording mode of the recording period includes:
the recording time periods with the time period sequence not larger than a first preset value are recorded for 24 hours without interruption, wherein the first preset value is a minimum integer not smaller than 50% of the first duration;
recording a time period sequence of recording time periods which are larger than a first preset value, and recording a time period of the longest household time period, a commuting time period of the longest time and a working time period of the longest time every fifth time period in the previous recording if the overlap ratio of the working time periods recorded by the time periods of which the time period sequence is not larger than the first preset value is higher than a second preset value; and if the overlap ratio of the working time periods recorded by the recording time periods with the time period sequence not larger than the first preset value is lower than the second preset value, the continuous recording is carried out for 24 hours.
2. A communication method of a communication wristwatch according to claim 1, wherein,
the communication type applications corresponding to the communication type process group comprise telephone communication type applications and network communication type applications, and the telephone communication type applications comprise telephone call applications;
the communication process group comprises a telephone communication process group and a network communication process group, and the telephone communication process group comprises a telephone call process;
the receiving and transmitting thread group corresponding to the communication process group comprises a telephone communication receiving and transmitting thread group and a network communication receiving and transmitting thread group, and the telephone communication receiving and transmitting thread group comprises a telephone call receiving and transmitting thread group;
in the step of sending a request for calling a mobile phone held by a watch user to a communication process group, the calling mode is a traditional telephone call;
the telephone call process comprises a second main thread and a first receiving thread;
the step of creating the positioning thread and the gesture detection thread of the anti-lost detection process further comprises the following steps: creating the first receive thread of the telephone conversation process;
the telephone call receiving and transmitting thread group comprises a second receiving thread and a first sending thread;
the step of creating the positioning thread and the gesture detection thread of the anti-lost detection process further comprises the following steps: creating the second receiving thread and the first sending thread of the telephone call transceiving thread group;
after the step of controlling the communication module with the positioning function to send the first call command outwards, the method further comprises the following steps:
based on the communication module with the positioning function, receiving first call reply information and a first new message from the outside, calling an operating system interface corresponding to the returned message, and sending the first call reply information and the first new message to the first receiving thread of the telephone conversation process;
processing a first call reply message and a first new message according to a preset message conversion rule based on the second main thread of the telephone call process to obtain a first processed message, and sending the first processed message to the second receiving thread of the telephone call receiving and transmitting thread group;
and sending a first processed message to the phone call application based on the first sending thread of the phone call receiving and sending thread group.
3. A communication method of a communication wristwatch according to claim 2, characterized in that,
based on the telephone call application, receiving a telephone call request input by a user, calling an API (application program interface) corresponding to the telephone call request, creating the first receiving thread of the telephone call process, creating the second receiving thread of the telephone call receiving and transmitting thread group, creating the first sending thread of the telephone call receiving and transmitting thread group, and sending a call message corresponding to the telephone call request to the second main thread of the telephone call process;
generating a second conversation command according to a conversation message corresponding to a telephone conversation request based on the second main thread of the telephone conversation process, calling an operating system interface corresponding to the second conversation command, and controlling the communication module with the positioning function to send the second conversation command outwards;
based on the communication module with the positioning function, receiving second call reply information and second new information from the outside, calling an operating system interface corresponding to the returned information, and sending the second call reply information and the second new information to the first receiving thread of the telephone conversation process;
processing a second call reply message and a second new message according to a preset message conversion rule based on the second main thread of the telephone call process to obtain a second processed message, and sending the second processed message to the second receiving thread of the telephone call receiving and transmitting thread group;
and sending a second processed message to the phone call application based on the first sending thread of the phone call receiving and sending thread group.
4. A communication method according to claim 3, wherein the step of generating the second call command from the call message corresponding to the telephone call request comprises:
according to the type of the call message and a preset message processing sequence rule, processing the call message corresponding to the telephone call request and generating a second call command.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310777423.3A CN116506546B (en) | 2023-06-29 | 2023-06-29 | Communication method of communication watch and communication watch |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310777423.3A CN116506546B (en) | 2023-06-29 | 2023-06-29 | Communication method of communication watch and communication watch |
Publications (2)
Publication Number | Publication Date |
---|---|
CN116506546A CN116506546A (en) | 2023-07-28 |
CN116506546B true CN116506546B (en) | 2024-03-15 |
Family
ID=87320653
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310777423.3A Active CN116506546B (en) | 2023-06-29 | 2023-06-29 | Communication method of communication watch and communication watch |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116506546B (en) |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105142103A (en) * | 2015-06-12 | 2015-12-09 | 广东小天才科技有限公司 | Method and device for positioning mobile terminal |
CN108882209A (en) * | 2018-06-04 | 2018-11-23 | 上海康斐信息技术有限公司 | Wearable device and its anti-lost processing method, device |
CN109981894A (en) * | 2019-02-28 | 2019-07-05 | 北京基软科技有限公司 | A kind of anti-mobile phone loss device |
CN111143909A (en) * | 2019-03-14 | 2020-05-12 | 广东小天才科技有限公司 | Anti-lost detection method of wearable device and wearable device |
CN112116793A (en) * | 2020-09-16 | 2020-12-22 | 歌尔科技有限公司 | Wearable device loss detection method, wearable device, terminal and medium |
CN112305896A (en) * | 2020-11-13 | 2021-02-02 | 四川写正智能科技有限公司 | Method for salvation of intelligent watch and watch |
CN112615722A (en) * | 2020-12-08 | 2021-04-06 | 深圳市沃特沃德股份有限公司 | Smart watch searching method and device, computer equipment and storage medium |
WO2022001170A1 (en) * | 2020-06-30 | 2022-01-06 | 华为技术有限公司 | Call prompting method, call device, readable storage medium and system on chip |
CN114867101A (en) * | 2022-03-14 | 2022-08-05 | 广东天波教育科技有限公司 | Method, device, system and memory for preventing loss of locatable terminal |
CN115755002A (en) * | 2022-10-27 | 2023-03-07 | 珠海云洲智能科技股份有限公司 | Reminding method, reminding device, electronic equipment and storage medium |
-
2023
- 2023-06-29 CN CN202310777423.3A patent/CN116506546B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105142103A (en) * | 2015-06-12 | 2015-12-09 | 广东小天才科技有限公司 | Method and device for positioning mobile terminal |
CN108882209A (en) * | 2018-06-04 | 2018-11-23 | 上海康斐信息技术有限公司 | Wearable device and its anti-lost processing method, device |
CN109981894A (en) * | 2019-02-28 | 2019-07-05 | 北京基软科技有限公司 | A kind of anti-mobile phone loss device |
CN111143909A (en) * | 2019-03-14 | 2020-05-12 | 广东小天才科技有限公司 | Anti-lost detection method of wearable device and wearable device |
WO2022001170A1 (en) * | 2020-06-30 | 2022-01-06 | 华为技术有限公司 | Call prompting method, call device, readable storage medium and system on chip |
CN112116793A (en) * | 2020-09-16 | 2020-12-22 | 歌尔科技有限公司 | Wearable device loss detection method, wearable device, terminal and medium |
CN112305896A (en) * | 2020-11-13 | 2021-02-02 | 四川写正智能科技有限公司 | Method for salvation of intelligent watch and watch |
CN112615722A (en) * | 2020-12-08 | 2021-04-06 | 深圳市沃特沃德股份有限公司 | Smart watch searching method and device, computer equipment and storage medium |
CN114867101A (en) * | 2022-03-14 | 2022-08-05 | 广东天波教育科技有限公司 | Method, device, system and memory for preventing loss of locatable terminal |
CN115755002A (en) * | 2022-10-27 | 2023-03-07 | 珠海云洲智能科技股份有限公司 | Reminding method, reminding device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN116506546A (en) | 2023-07-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8204484B2 (en) | System and method for managing missed calls and unread messages | |
CN101946532B (en) | Utilizing mobile device functionality from remote computers | |
US8073429B2 (en) | Cellular media message forwarding | |
US20060193448A1 (en) | Method and apparatus for augmenting voice data on a mobile device call | |
US20060031326A1 (en) | Managing personal communications from a calendar scheduling application | |
US6687743B1 (en) | Client server communications for a mobile computing device | |
US20080261630A1 (en) | Indicating user presence on a messaging network | |
WO2010109925A1 (en) | Communication terminal and mail return method | |
US8965420B2 (en) | Method and system of mobile device communication | |
RU2006114073A (en) | METHOD OF CONTROL FROM PARENTS USING A CELL PHONE | |
CN1890998B (en) | Method of and system for scalable mobile-terminal platform | |
US20100319003A1 (en) | Mobile communications device programmed with message logging capability | |
US8028024B2 (en) | System and method of instant messaging between wireless devices | |
CN116506546B (en) | Communication method of communication watch and communication watch | |
CN111010479A (en) | Information sharing method, mobile terminal and computer storage medium | |
US8194832B2 (en) | Methods, systems and devices for providing voice mail caller identification for display on a telephone | |
JP2007140656A (en) | Communication device | |
US20080176590A1 (en) | Method and apparatus for receiving multimedia message service messages | |
US8929518B2 (en) | Information processing system, message server, and control method and control program thereof | |
WO2010090047A1 (en) | Mobile terminal, mail return method, and server | |
JP5718088B2 (en) | Message receiving method, mobile phone terminal device and mail client program | |
CN105516314B (en) | Method for pushing message to intelligent terminal based on transparent computing | |
US9014344B2 (en) | Methods and apparatus to send voice messages | |
KR20050047311A (en) | Method for management user informaion using short message service in mobile phone | |
CN118264990A (en) | Short message sending method and device, storage medium, mobile device and wearable device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |