CN114338903B - Message transmission method, device and readable program medium - Google Patents

Message transmission method, device and readable program medium Download PDF

Info

Publication number
CN114338903B
CN114338903B CN202011019236.1A CN202011019236A CN114338903B CN 114338903 B CN114338903 B CN 114338903B CN 202011019236 A CN202011019236 A CN 202011019236A CN 114338903 B CN114338903 B CN 114338903B
Authority
CN
China
Prior art keywords
message
user
contact
environment
terminal
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
CN202011019236.1A
Other languages
Chinese (zh)
Other versions
CN114338903A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202011019236.1A priority Critical patent/CN114338903B/en
Publication of CN114338903A publication Critical patent/CN114338903A/en
Application granted granted Critical
Publication of CN114338903B publication Critical patent/CN114338903B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Telephonic Communication Services (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The application provides a message sending method and device. The method comprises the following steps: and acquiring a communication record between the user and the appointed contact person, determining whether to send a message to the appointed contact person automatically based on the communication record, if the message is required to be sent to the appointed contact person automatically, acquiring a contextual model of a terminal used by the user, determining whether to acquire environmental data in an environment where the terminal is located based on the contextual model, if the environmental data is acquired, generating the message based on the environmental data, sending the message to the appointed contact person, and taking the appointed contact person except the user as a condition for triggering the message to send the message, wherein the message can be automatically sent by the terminal without triggering the user even if the terminal used by the user cannot be operated by the user.

Description

Message transmission method, device and readable program medium
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for sending a message.
Background
With the gradual development of the technology of the internet of things, various electronic equipment terminals become an indispensable part of life of people, and users can communicate by using the terminals and can also alarm by the terminals when encountering danger.
In the existing terminal alarm method, a user is required to trigger a terminal to alarm, and if the user cannot operate a mobile phone in an emergency, the user cannot alarm, so that the method is very inconvenient.
Disclosure of Invention
The application aims to provide a message sending method and device, which can improve the convenience of user alarming at least to a certain extent.
According to an aspect of the embodiments of the present application, there is provided a message sending method, including: acquiring a communication record between a user and a designated contact person; determining whether a message needs to be automatically sent to the designated contact based on the communication record; if the message needs to be sent to the appointed contact automatically, acquiring the contextual model of the terminal used by the user; determining whether to acquire environmental data in the environment where the terminal is located based on the contextual model; and if the environment data is acquired, generating a message based on the environment data, and sending the message to the appointed contact.
According to an aspect of the embodiments of the present application, there is provided a message transmitting apparatus, including: the first acquisition module is configured to acquire a communication record between a user and a designated contact; a first determination module configured to determine whether a message needs to be automatically sent to the designated contact based on the communication record; the second acquisition module is configured to acquire the contextual model of the terminal used by the user if the message is required to be sent to the designated contact automatically; the second determining module is configured to determine whether to acquire environmental data in the environment where the terminal is located based on the contextual model; and the sending module is configured to generate a message based on the environment data and send the message to the appointed contact person if the environment data is acquired.
In some embodiments of the present application, based on the foregoing solution, the first obtaining module is configured to: and acquiring a communication record of the user and the appointed contact person within a set time.
In some embodiments of the present application, based on the foregoing solution, the first determining module is configured to: and if the number of times that the user continuously does not respond to the communication initiated by the designated contact in the set time reaches a set value corresponding to the designated contact, automatically sending a message to the designated contact.
In some embodiments of the present application, based on the foregoing solution, the second determining module is configured to: searching response content corresponding to the contextual model based on the contextual model; if the response content is not found, acquiring environment data in the environment where the terminal is located; and if the response content is found, not acquiring the environment data, and taking the response content as the message.
In some embodiments of the present application, based on the foregoing scheme, the sending module is configured to: acquiring a group in which the designated contact is located; determining a message template for use in generating the message based on the grouping; and filling the environment data in the message module to generate the message.
In some embodiments of the present application, based on the foregoing scheme, the sending module is configured to: acquiring environment data of the environment where each terminal used by the user is located; determining terminals carried by users based on the environment data of the environments where the terminals are positioned; and generating the message based on the environment data of the environment where the terminal carried by the user is located.
In some embodiments of the present application, based on the foregoing scheme, the sending module is configured to: and taking the terminal corresponding to the environment data containing the user sound or the user image as the terminal carried by the user.
In some embodiments of the present application, based on the foregoing scheme, the sending module is configured to: acquiring account information corresponding to the appointed contact in a plurality of social applications according to the identity of the appointed contact; and searching communication records between the user and the designated contacts in the social applications based on the account information.
In some embodiments of the present application, based on the foregoing scheme, the sending module is configured to: acquiring environment data of an environment where the set terminal used by the user is located; generating the message based on the environment data of the environment where the set terminal is located; and selecting a target social application from the plurality of social applications based on the communication record between the user and the designated contact in the plurality of social applications, and sending the message by using the target social application.
According to an aspect of embodiments of the present application, there is provided a computer readable program medium storing computer program instructions which, when executed by a computer, cause the computer to perform the method of any one of the above.
According to an aspect of an embodiment of the present application, there is provided an electronic device including: a processor; a memory having stored thereon computer readable instructions which, when executed by the processor, implement a method as claimed in any one of the preceding claims.
The technical scheme provided by the embodiment of the application can comprise the following beneficial effects:
according to the technical scheme provided by the embodiments of the application, by acquiring the communication record between the user and the appointed contact person, determining whether to automatically send a message to the appointed contact person or not based on the communication record, the appointed contact person except the user is used as a condition for triggering to send the message, the terminal can automatically send the message without triggering the user, even if the user cannot operate the terminal used by the user, the terminal can automatically send the message, only the communication record of the appointed contact person is used as a triggering condition, compared with the condition that the communication record of the user and all the communication record of the user are used as the triggering condition, the current situation of the user can be more accurately judged whether to automatically send the message, meanwhile, because the message is triggered by the appointed contact person, the appointed contact person triggering to automatically send the message can timely check the message sent by the user, if the message is required to be automatically sent to the appointed contact person, the contextual mode of the terminal used by the user is acquired, whether to acquire environmental data in the environment where the terminal is located is determined based on the contextual mode, if the environmental data is acquired, the message is generated based on the environmental data, and the message is sent to the appointed contact person only when the contextual mode meets the condition of acquiring the environmental data, privacy leakage can be avoided.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application.
FIG. 1 shows a schematic diagram of an exemplary system architecture to which the technical solutions of embodiments of the present application may be applied;
FIG. 2 schematically illustrates a flow chart of a messaging method according to one embodiment of the present application;
FIG. 3 schematically illustrates a messaging system architecture diagram of the present application;
FIG. 4 schematically illustrates a monitoring module workflow diagram of one embodiment of the present application;
FIG. 5 schematically illustrates a main flow diagram of an environmental state collection module of one embodiment of the present application;
FIG. 6 schematically illustrates a flow chart of owner settings data for one embodiment of the present application;
FIG. 7 schematically illustrates the workflow of a messaging system when a designated contact contacts a cell phone owner in one embodiment of the present application;
fig. 8 schematically illustrates a block diagram of a messaging device according to one embodiment of the present application;
Fig. 9 is a hardware diagram of an electronic device, according to an example embodiment.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. However, the exemplary embodiments may be embodied in many forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of the example embodiments to those skilled in the art.
Furthermore, the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the present application. One skilled in the relevant art will recognize, however, that the aspects of the application can be practiced without one or more of the specific details, or with other methods, components, devices, steps, etc. In other instances, well-known methods, devices, implementations, or operations are not shown or described in detail to avoid obscuring aspects of the application.
The block diagrams depicted in the figures are merely functional entities and do not necessarily correspond to physically separate entities. That is, the functional entities may be implemented in software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.
The flow diagrams depicted in the figures are exemplary only, and do not necessarily include all of the elements and operations/steps, nor must they be performed in the order described. For example, some operations/steps may be decomposed, and some operations/steps may be combined or partially combined, so that the order of actual execution may be changed according to actual situations.
Cloud technology (Cloud technology) refers to a hosting technology for integrating hardware, software, network and other series resources in a wide area network or a local area network to realize calculation, storage, processing and sharing of data.
Cloud technology (Cloud technology) is based on the general terms of network technology, information technology, integration technology, management platform technology, application technology and the like applied by Cloud computing business models, and can form a resource pool, so that the Cloud computing business model is flexible and convenient as required. Cloud computing technology will become an important support. Background services of technical networking systems require a large amount of computing, storage resources, such as video websites, picture-like websites, and more portals. Along with the high development and application of the internet industry, each article possibly has an own identification mark in the future, the identification mark needs to be transmitted to a background system for logic processing, data with different levels can be processed separately, and various industry data needs strong system rear shield support and can be realized only through cloud computing.
A Private Cloud (Private Cloud) is a Cloud infrastructure created with software and hardware resources within a firewall for organizations or departments within an enterprise to share resources within a data center. A private cloud is created, typically cloud device (IaaS, infrastructure as a Service, infrastructure as a service) software in addition to hardware resources.
Private cloud computing also includes three levels of cloud hardware, cloud platform, cloud services. In contrast, cloud hardware is a user's own personal computer or server, rather than a data center of a cloud computing vendor. Cloud computing manufacturers build data centers to provide public cloud services for millions of users, thus requiring tens of millions of servers. Private cloud computing serves only friends and relatives to individuals, and staff and clients and suppliers to businesses, so personal or business's own personal computers or servers are sufficient to provide cloud services.
Cloud hardware in the private Cloud can perform Cloud internet of things (Cloud IOT), and the internet of things (The Internet of Things, IOT) refers to the fact that any object or process needing to be monitored, connected and interacted is collected in real time through various devices and technologies such as various information sensors, radio frequency identification technologies, global positioning systems, infrared sensors and laser scanners, various needed information such as sound, light, heat, electricity, mechanics, chemistry, biology and positions of the object or process is collected, and the object or the person is connected through various possible networks, so that intelligent sensing, identification and management of the object or the process are achieved. The internet of things is an information carrier based on the internet, a traditional telecommunication network and the like, and enables all common physical objects which can be independently addressed to form an interconnection network.
The cloud internet of things aims at connecting information perceived by sensing equipment and accepted instructions in the traditional internet of things into the internet, realizing networking truly, and realizing mass data storage and operation through a cloud computing technology, and because the characteristics of the internet of things are that objects are connected with each other, the current running state of each object is perceived in real time, a large amount of data information can be generated in the process, how to collect the information, how to screen useful information in the mass information and make decision support for subsequent development, the key problems affecting the development of the internet of things are formed, and the internet of things cloud based on cloud computing and cloud storage technology is also powerful support for the internet of things technology and application.
Fig. 1 shows a schematic diagram of an exemplary system architecture 100 to which the technical solutions of the embodiments of the present application may be applied.
As shown in fig. 1, the system architecture 100 may include a terminal 101 (which may be one or more of a smartphone, tablet, portable computer, desktop computer) for use by a user, a network 102, a terminal 103 for use by a designated contact, and a server 104. The network 102 serves as a medium for providing a communication link between the terminal 101 used by the user, the terminal 103 used by the designated contact, and the server 104. Network 102 may include various connection types, such as wired communication links, wireless communication links, and the like.
In one embodiment of the present application, the server 104 determines whether to automatically send a message to a designated contact person based on the communication record by acquiring the communication record between the user and the designated contact person, and the designated contact person other than the user is used as a condition for triggering to send the message, without triggering by the user, even if the user cannot operate the terminal 101 used by the user, the terminal 101 used by the user can still automatically send the message to the terminal 103 used by the designated contact person, only the communication record of the designated contact person is used as a triggering condition, compared with the communication record of the user and all the contact person as a triggering condition, whether to automatically send the message at the current place of the user is required, so that the message is prevented from being leaked or lost due to the fact that the message is triggered by the designated contact person, the designated contact person triggering to automatically send the message can timely check the message sent by the user, if the message is required to be automatically sent to the designated contact person, the contextual model of the terminal used by the user is acquired, whether to acquire the environmental data in the environment where the terminal is located is determined based on the contextual model, if the environmental data is acquired, the message is generated based on the environmental data, and the message is sent to the contextual model to the designated contact person is met, and the situation of the privacy data can only be prevented from being leaked to the designated by the user under the condition is avoided.
It should be understood that the number of terminals 101, networks 102, terminals 103, and servers 104 used by the user, designated contacts, in fig. 1 are merely illustrative. There may be any number of terminals 101 used by the user, network 102, terminals 103 used by designated contacts, and servers 104, as desired by the implementation. For example, the server 104 may be an independent physical server, a server cluster or a distributed system formed by a plurality of physical servers, or a cloud server that provides cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, CDNs, basic cloud computing services such as big data and artificial intelligence platforms, and the like. The terminal may be, but is not limited to, a smart phone, a tablet computer, a notebook computer, a desktop computer, a smart speaker, a smart watch, etc. The terminal and the server may be directly or indirectly connected through wired or wireless communication, which is not limited herein.
It should be noted that, the message sending method provided in the embodiments of the present application is generally executed by the server 104, and accordingly, the message sending device is generally disposed in the server 104. However, in other embodiments of the present application, the terminal 101 used by the user or the terminal 103 used by the designated contact may also have a similar function to the server 104, thereby performing the message transmission method provided in the embodiments of the present application.
The implementation details of the technical solutions of the embodiments of the present application are described in detail below:
fig. 2 schematically illustrates a flow chart of a messaging method according to an embodiment of the present application, the subject of which may be a server, such as the server 104 illustrated in fig. 1.
Referring to fig. 2, the message sending method at least includes steps S210 to S250, and is described in detail as follows:
in step S210, a communication record between the user and the designated contact is acquired.
In one embodiment of the present application, a communication record of the user and the designated contact in a set time may be obtained, so as to more accurately determine whether an automatic message transmission is required in the set time.
In one embodiment of the application, account information corresponding to the specified contact in the plurality of social applications can be obtained according to the identity of the specified contact, and a communication record between the user and the specified contact in the plurality of social applications is searched based on the account information.
In one embodiment of the present application, the designated contact may be an emergency contact set by a user, an emergency contact group may be set in one or more social applications, and if the contact is within an emergency contact group of one of the social applications, the contact is the designated contact.
In one embodiment of the present application, specifying the identity of the contact may include: an application account number of a designated contact, an identification card number of the designated contact, a mobile phone number of the designated contact, a face image of the designated contact, and the like.
In one embodiment of the present application, the social application may include a cell phone call, a cell phone short message, a cell phone video, a program call, a program message, a program video, an instant application call, an instant application message, an instant application video, and the like.
In one embodiment of the present application, the account information may be an account name, an account nickname, an account ID, or the like.
In one embodiment of the present application, the communication record may include a mobile phone call record, a mobile phone short message record, a mobile phone video record, a program call record, a program message record, a program video record, an instant application call record, an instant application message record, an instant application video record, and the like.
With continued reference to fig. 2, in step S220, it is determined whether a message needs to be automatically sent to a designated contact based on the communication record.
In one embodiment of the application, if the number of times that the user continuously does not respond to the communication initiated by the designated contact in the set time reaches the set value, the message is automatically sent to the designated contact, and compared with the condition that the message is automatically sent is set to the number of times that the user does not respond to the communication initiated by all the contacts in the set time, the condition that the user is unwilling to respond to the communication initiated by some or some contacts due to subjective reasons can be avoided.
In one embodiment of the present application, if the number of times the user continues to fail to respond to the communication initiated by the designated contact within the set time reaches a set value corresponding to the designated contact, a message is automatically sent to the designated contact.
In one embodiment of the present application, it may be that, within a set time, the number of times the user does not respond to the communication initiated by the designated contact reaches the set value corresponding to the designated contact, and the user does not respond to the communication initiated by other contacts, then the message is automatically sent to the designated contact.
In one embodiment of the present application, the number of times that the user does not respond to the communication initiated by the designated contact reaches the set value corresponding to the designated contact within the set time, and the terminal used by the user does not respond to any communication initiated by the contact within the set time, then automatically sends a message to the designated contact.
In one embodiment of the application, the number of the designated contacts may be multiple, and each designated contact may set a corresponding set value respectively, and may be set by the designated contact or may be set by a user.
In one embodiment of the present application, the communication initiated by the user not responding to the designated contact may include: the user does not answer the voice or video call initiated by the designated contact, and the user does not reply to the message or mail sent by the designated contact.
With continued reference to fig. 2, in step S230, if a message needs to be automatically sent to a designated contact, a profile of a terminal used by the user is obtained.
In one embodiment of the present application, the contextual model may include: normal mode, silent mode, conference mode, outdoor mode, car mode, earphone mode, train mode, flight mode, custom mode, etc.
In one embodiment of the present application, when the profile is a silent mode, a meeting mode, or a flight mode, the user may set answer content or use default content, such as: "I now inconvenient to pick up a call, please wait for a reply" "" I are in a meeting, 18:00 contact "or" i am on the aircraft, contact you after landing, etc. The user may set different answer content for different designated contacts, such as "mom, me on an airplane, contact you after landing" and so on.
In one embodiment of the present application, when the contextual model is a normal model, an outdoor model, a vehicle-mounted model, an earphone model, a train model, etc., a message template corresponding to the contextual model may be set, and the message template may be filled with content.
In one embodiment of the present application, in the custom mode, the name of the mode, the custom selection reply content, or the message template may be custom. For example, the user-defined sleep mode, the answer content may be set to "no disturbance for noon break 2 hours".
In an embodiment of the present application, the contextual models may also be distinguished according to a reminder mode in the terminal, for example, a mute mode corresponds to a first contextual model, a vibration mode corresponds to a second contextual model, a ringing mode corresponds to a third contextual model, and the like, and may be a response content corresponding to the first contextual model, and the second contextual model and the third contextual model correspond to a message template.
With continued reference to fig. 2, in step S240, it is determined whether to acquire environmental data in the environment in which the terminal is located based on the profile.
In one embodiment of the application, response content corresponding to the contextual model can be searched based on the contextual model, and if the response content is not searched, environment data in the environment where the terminal is located is obtained; if the response content is found, the environment data is not acquired, and the response content is used as a message.
In one embodiment of the present application, the contextual model may be divided into a mode in which the environmental data is conveniently acquired and a mode in which the environmental data is inconvenient to acquire, a message template is set for the mode in which the environmental data is conveniently acquired, response content is set for the mode in which the environmental data is inconvenient to acquire, and each contextual model sets whether the message template is response content or not may be set by the user.
In one embodiment of the present application, the environmental data may include GPS data, short video files, temperature data, sound data, and the like.
In step S250, if the environmental data is acquired, a message is generated based on the environmental data, and the message is sent to the designated contact.
In one embodiment of the present application, a group in which a specified contact is located may be obtained, a message template used to generate a message is determined based on the group, and context data is populated in the message module to generate the message.
In one embodiment of the present application, a message template corresponding to a contextual model may be obtained according to the contextual model, and there may be multiple message templates corresponding to each contextual model, and then a message template corresponding to a specified contact may be selected from the multiple message templates.
In one embodiment of the present application, environmental data of environments where the terminals are located used by the user may be obtained, the terminals carried by the user may be determined based on the environmental data of the environments where the terminals are located, and the message may be generated based on the environmental data of the environments where the terminals carried by the user are located.
In one embodiment of the present application, a terminal corresponding to the environmental data including the user sound or the user image may be used as the terminal carried by the user.
In one embodiment of the application, if the terminal carried by the user cannot be determined based on the environment data, the environment data generating messages of each terminal can be respectively sent to the designated contacts, so that the designated contacts can conveniently determine the environment where the user is located.
In one embodiment of the present application, environmental data of an environment where the terminal is set for use by the user may be obtained, and the message is generated based on the environmental data of the environment where the terminal is set.
In one embodiment of the present application, in a case where a terminal carried by a user cannot be determined based on environment data, environment data of an environment where the terminal is set for use by the user may be obtained, and a message may be generated based on the environment data of the environment where the terminal is set.
In one embodiment of the present application, the set terminal may be a terminal frequently used by a user or set by a user.
In one embodiment of the present application, a target social application may be selected from a plurality of social applications based on a record of communications between a user and a specified contact in the plurality of social applications, and a message may be sent using the target social application.
In one embodiment of the present application, a social application most commonly used by a user among a plurality of social applications may be obtained as a target social application.
In one embodiment of the present application, a user may be obtained to most often use a social application associated with a specified contact as a target social application.
In one embodiment of the present application, a social application that the user last contacted with a specified contact may be obtained as a target social application.
In the embodiment of fig. 2, by acquiring the communication record between the user and the designated contact, determining whether to automatically send a message to the designated contact based on the communication record, determining whether to automatically send the message to the designated contact by using the designated contact other than the user as a condition for triggering the message, without triggering the message by the user, even if the user cannot operate the terminal used by the terminal, the terminal can automatically send the message, and compared with the communication record of the designated contact and the communication record of all the contacts as the triggering condition, the method can more accurately judge whether the current situation of the user needs to automatically send the message, and meanwhile, because the message is triggered by the designated contact, the designated contact triggering the automatic message can timely check the message sent by the user, if the message needs to be automatically sent to the designated contact, the contextual model of the terminal used by the user is acquired, determining whether to acquire the environmental data in the environment where the terminal is located based on the contextual model, if the environmental data is acquired, generating the message based on the environmental data, sending the message to the designated contact, and only sending the message generated by the environmental data to the designated contact under the condition that the contextual model meets the condition for acquiring the environmental data can avoid the privacy leakage of the user.
The application also provides a message sending system which comprises a contact person management module, an information sending rule management module, a message template management module, a monitoring module, an environment state collection module and an information generation and sending module, wherein the message sending system is shown in fig. 3, and fig. 3 schematically shows a message sending system frame diagram of the application.
In one embodiment of the present application, the contact management module is configured to store the contact group into the database, the automatic information sending rule management module is configured to store the automatic information sending rule into the database, the message template management module is configured to store the message template into the database, and the monitoring module may include: monitoring incoming calls, short messages and social software messages of a mobile phone, accumulating and recording contact states of specific groups of contacts, comparing the accumulated contact states with an information automatic sending rule, checking whether agreement is achieved, and triggering an environment state collecting module by a monitoring module if the contact states are consistent; the environment state collection module collects GPS data, environment temperature data, sound data, short video and the like through an API interface and transmits the data to the information generation and transmission module; the information generation and transmission module is used for selecting an information template applicable to the group of the contact person from the database, generating text information and short video files based on GPS data, environment temperature data, sound data, short video and the like collected by the environment state collection module, and automatically transmitting the text information and the short video files to the contact person.
Details of the main modules in the system are described below.
In one embodiment of the present application, the monitoring module monitors incoming calls, sms messages and social software messages of the mobile phone, and fig. 4 schematically shows a workflow of the monitoring module of one embodiment of the present application, as shown in fig. 4, when a contact in a specific group has a call or sms message or a message, the monitoring module automatically sends rules to monitor the phone owner call and message according to the information. In the event of a rule hit, such as a failure of the handset owner to answer or reply to a message, the monitoring module records the contact status of the contact at that time and stores this contact status in a database. The monitoring module compares the accumulated contact state with the information automatic sending rule, checks whether the contact state is agreed in the effective time, and if the contact state is agreed, the monitoring module triggers the environment state collecting module.
In one embodiment of the present application, the information delivery rule management module manages the lifecycle of the information delivery rules, including rule creation, modification, and deletion. Rule factors include, but are not limited to: time interval (valid time interval of the rule), operation (one of incoming call, information, short message), number of times (upper limit of accumulated number of times of executing operation), mark (owner has reply as yes and no reply as no), grouping (specific group of contacts), etc.
In one embodiment of the present application, a rule format may be defined as: { "time interval (hours)": "x", "number of times": "n", "operation": "yy", "flag": "yes", "grouping": "kk" }.
For example the following rules:
the mobile phone does not receive n calls of a certain contact in a specific group within x hours:
{ "time interval (hours)": "x", "number of times": "n", "operation": "telephone", "tag": "no", "group": "kk" }
Within the x hours, the social software does not reply information to a certain contact person by the mobile phone owner:
{ "time interval (hours)": "x", "operation": "information", "mark": "no", "group": "kk" }
The cumulative contact status of a contact may be defined as:
{ contact ": "xxx",
"start time": "yyy",
"grouping": "kk",
"State": {
"telephone": { "times": "n", "" tag ": "no" },
"information": { "times": "m", "" tag ": "no" }, a
……}
The contact status may be interpreted as: starting from the time yyy, the contact person xxx of the kk group calls n times, the owner does not answer the call, the contact person information m times, and the owner does not reply the information.
The rules in the system information transmission rule module of the present application are not limited to the already defined rules.
In one embodiment of the present application, the main flow of the environmental state collection module may be as shown in fig. 5, and fig. 5 schematically illustrates a main flow chart of the environmental state collection module of one embodiment of the present application. The environment state collection module is responsible for reading corresponding data from software corresponding to equipment of the mobile phone, wherein the software corresponding to the equipment relates to: GPS positioning, a camera, a temperature detection control, a mobile phone contextual model setting, a sound detection control and the like. The method of acquiring the device data uses a known method. After the environment state collection module is started, the environment state collection module is connected to each equipment software data information source through an interface, and data information is obtained and is used as meta data and is transferred to a designated directory of the system.
In one embodiment of the present application, the information template management module manages the operations of adding, modifying, deleting message templates and response content. The message template consists of two parts, namely a packet and message content: the grouping, i.e. to which specific contact the message template applies, the message content may be text content or video content, and the message content may comprise: GPS location, altitude, cell phone speed, sound, temperature, etc. The information generation and transmission module can find out a corresponding message template in the information template management module according to the grouping of the contact person, find meta data of the environment state under a specific directory, analyze the data, render parameters in the information template by the data, generate text content, package a short video file and transmit the short video file to the contact person. Examples of text content generated: the position is a mountain, the altitude is 530 meters, the speed is 0, the acceleration is 0, the temperature is 19 ℃, the sound is 60 dB, and the environment is noisy. Two 5 second short videos shot by the front camera and the rear camera respectively are a temple. When the contact receives the information, it can judge that: the owner stays in the temple which is noisy.
In one embodiment of the present application, the contact management module may perform creation, modification, deletion of a plurality of specific contact groupings, which may include: group names and the account numbers of the contacts in the group can add groups or delete contacts for a specific contact.
The messaging system in this application may be installed in a cell phone operating system or integrated into social software. The system is suitable for a scene that when a mobile phone owner cannot operate the mobile phone, the mobile phone owner hopes that a specific contact person can acquire the environment state of the mobile phone owner. The system may operate as a subsystem of social software. The system has the authority of reading the address book of the mobile phone, the authority of reading the missed call of the mobile phone, the authority of acquiring the GPS information of the mobile phone, the authority of acquiring the temperature control data of the mobile phone and the authority of operating the camera in the background.
When the system is used, a mobile phone owner can make rules of automatic reply information in advance, set specific groups of contacts of the automatic reply information, set a message template and authorize the system to read or operate data of related equipment controls in the mobile phone, and referring to fig. 6, fig. 6 schematically shows a flow chart of the owner setting data in one embodiment of the application.
The following is a detailed description of the use scenario of the present system:
fig. 7 schematically illustrates the workflow of the messaging system when a designated contact contacts a cell phone owner according to one embodiment of the present application.
Referring to fig. 7, in the contact management module of the system, a mobile phone owner corresponds a specific contact account in social software to the contact account in a mobile phone address book, the system divides the specific contact into a group, and the information automatically replied by the system is limited to the contact of the specific group. The mobile phone owner sets an automatic information reply rule in an information sending rule management module of the system, and automatically sends information based on the environment state to a specific contact person when the rule is met at the same time, for example, the following rule is set:
the mobile phone does not receive the telephone of a certain contact in a specific group for n times within x hours;
the mobile phone does not reply a short message to the contact person within the x hours;
the mobile phone is not powered off within the x hours;
the mobile phone does not send information or call to any person within the x hours;
the social software does not reply the information to the contact person by the mobile phone owner within the x hours;
the social software does not send any information to the handset owner within this x hours.
And automatically replying to the rule according to the information set by the mobile phone owner, accumulating the contact state of the contact person, and if the accumulated contact state does not meet the requirement of the rule when the time of the rule is about to be invalid, ending accumulating the contact state of the contact person, otherwise, turning to the next step. When the accumulated contact state of the contact person reaches a preset rule in the effective time, the monitoring module of the system judges that the contact person needs to be automatically replied with information at the moment. The system starts an environmental state collection module, acquires environmental state data of the mobile phone at the moment by using equipment built in the mobile phone, and the collected environmental state data comprises: GPS positioning data, ambient temperature data, sound data, short video files, and meta data are stored. The information generating module in the system starts an information automatic generating process, analyzes meta data stored in the last step based on one or more templates in the information templates, and generates new information, wherein the new information comprises text information and short video. And the system directly sends the automatically generated text information and short video to the contact person through social software.
The message sending system is communicated with the mobile phone communication system and the social software system of the mobile phone owner. The owner mobile phone number is bound with the social account number, the social software account obtains communication data (such as missed calls, short messages, address books and the like) of the mobile phone number, and the authorized social software can read the data authority of the related equipment of the mobile phone. The rule of the mobile phone automatic reply information is based on a mobile phone communication system and a social software system. The automatic reply information is automatically and actively sent by the social software, and is not actively triggered by the machine owner. After the mobile phone recognizes the current environment state, the system can select an information template to generate final information, wherein the information comprises text information and short video.
The information sending system is set by the mobile phone owner as a method for automatically sending information to a specific crowd, and the information is that when the mobile phone owner is in a special environment or in a dangerous environment, the mobile phone owner cannot receive a call or reply the call.
The system can also be used for the child mode in the application, and the parents can set an automatic information sending rule on the system of the child mobile phone in advance, when the parents want to know the environment state of the child at the time, the parents can reach the requirement of the rule by contacting the child, so that the system is triggered to automatically send information to the parents, and the parents can timely acquire the environment state of the child at the time.
The system can be directly used in a mobile phone operating system, and the text and short video messages generated by the system can be automatically sent through mobile phone multimedia messages.
The following describes an embodiment of an apparatus of the present application, which may be used to perform the messaging method in the above-described embodiments of the present application. For details not disclosed in the embodiments of the apparatus of the present application, please refer to the embodiments of the message sending method described in the present application.
Fig. 8 schematically shows a block diagram of a messaging device according to an embodiment of the present application.
Referring to fig. 8, a message transmission apparatus 800 according to an embodiment of the present application includes: a first acquisition module 801, a first determination module 802, a second acquisition module 803, a second determination module 804, and a transmission module 805.
In some embodiments of the present application, based on the foregoing solution, the first obtaining module 801 is configured to obtain a communication record between the user and the designated contact; the first determination module 802 is configured to determine whether a message needs to be automatically sent to a designated contact based on the communication record; the second obtaining module 803 is configured to obtain a profile of the terminal used by the user if the message needs to be automatically sent to the designated contact; the second determining module 804 is configured to determine whether to acquire environmental data in an environment where the terminal is located based on the contextual model; the sending module 805 is configured to, if the context data is obtained, generate a message based on the context data and send the message to the designated contact.
In some embodiments of the present application, based on the foregoing scheme, the first obtaining module 801 is configured to: and acquiring a communication record of the user and the appointed contact person within a set time.
In some embodiments of the present application, based on the foregoing scheme, the first determining module 802 is configured to: and if the number of times of continuous communication initiated by the specified contact is not responded by the user within the set time reaches the set value corresponding to the specified contact, automatically sending a message to the specified contact.
In some embodiments of the present application, based on the foregoing scheme, the second determining module 804 is configured to: searching response content corresponding to the contextual model based on the contextual model; if no response content is found, acquiring environment data in the environment where the terminal is located; if the response content is found, the environment data is not acquired, and the response content is used as a message.
In some embodiments of the present application, based on the foregoing scheme, the sending module 805 is configured to: acquiring a group in which a designated contact is located; determining a message template used for generating the message based on the grouping; the context data is populated in a message module to generate a message.
In some embodiments of the present application, based on the foregoing scheme, the sending module 805 is configured to: acquiring environment data of environments where all terminals used by a user are located; determining terminals carried by users based on environment data of environments where the terminals are positioned; and generating a message based on the environment data of the environment where the terminal carried by the user is located.
In some embodiments of the present application, based on the foregoing scheme, the sending module 805 is configured to: and taking the terminal corresponding to the environment data containing the user sound or the user image as the terminal carried by the user.
In some embodiments of the present application, based on the foregoing scheme, the sending module 805 is configured to: acquiring account information corresponding to the appointed contact in a plurality of social applications according to the identity of the appointed contact; a record of communications between the user and the specified contact in the plurality of social applications is looked up based on the account information.
In some embodiments of the present application, based on the foregoing scheme, the sending module 805 is configured to: acquiring environment data of an environment where a set terminal used by a user is located; generating a message based on environment data of an environment in which the terminal is set; based on a record of the user's communication with the specified contact among the plurality of social applications, a target social application is selected from the plurality of social applications, and a message is sent using the target social application.
Those skilled in the art will appreciate that the various aspects of the present application may be implemented as a system, method, or program product. Accordingly, aspects of the present application may be embodied in the following forms, namely: an entirely hardware embodiment, an entirely software embodiment (including firmware, micro-code, etc.) or an embodiment combining hardware and software aspects may be referred to herein as a "circuit," module "or" system.
An electronic device 90 according to this embodiment of the present application is described below with reference to fig. 9. The electronic device 90 shown in fig. 9 is merely an example, and should not be construed as limiting the functionality and scope of use of the embodiments herein.
As shown in fig. 9, the electronic device 90 is in the form of a general purpose computing device. Components of the electronic device 90 may include, but are not limited to: the at least one processing unit 91, the at least one memory unit 92, a bus 93 connecting the different system components (including the memory unit 92 and the processing unit 91), a display unit 94.
Wherein the storage unit stores program code that is executable by the processing unit 91 such that the processing unit 91 performs steps according to various exemplary embodiments of the present application described in the above-mentioned "example method" section of the present specification.
The storage unit 92 may include readable media in the form of volatile storage units, such as Random Access Memory (RAM) 921 and/or cache memory 922, and may further include Read Only Memory (ROM) 923.
The storage unit 92 may also include a program/utility 924 having a set (at least one) of program modules 925, such program modules 925 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each or some combination of which may include an implementation of a network environment.
Bus 93 may be one or more of several types of bus structures including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
The electronic device 90 may also communicate with one or more external devices (e.g., keyboard, pointing device, bluetooth device, etc.), one or more devices that enable a user to interact with the electronic device 90, and/or any device (e.g., router, modem, etc.) that enables the electronic device 90 to communicate with one or more other computing devices. Such communication may occur through an input/output (I/O) interface 95. Also, the electronic device 90 may communicate with one or more networks such as a Local Area Network (LAN), a Wide Area Network (WAN) and/or a public network, such as the Internet, through a network adapter 96. As shown, network adapter 96 communicates with other modules of electronic device 90 via bus 93. It should be appreciated that although not shown, other hardware and/or software modules may be used in connection with electronic device 90, including, but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, data backup storage systems, and the like.
From the above description of embodiments, those skilled in the art will readily appreciate that the example embodiments described herein may be implemented in software, or may be implemented in software in combination with the necessary hardware. Thus, the technical solution according to the embodiments of the present application may be embodied in the form of a software product, which may be stored in a non-volatile storage medium (may be a CD-ROM, a usb disk, a mobile hard disk, etc.) or on a network, and includes several instructions to cause a computing device (may be a personal computer, a server, a terminal device, or a network device, etc.) to perform the method according to the embodiments of the present application.
According to an embodiment of the present application, there is also provided a computer readable storage medium having stored thereon a program product capable of implementing the method described above in the present specification. In some possible implementations, the various aspects of the present application may also be implemented in the form of a program product comprising program code for causing a terminal device to carry out the steps according to the various exemplary embodiments of the present application as described in the "exemplary methods" section of this specification, when the program product is run on the terminal device.
According to an embodiment of the present application, the program product for implementing the above method of the embodiments of the present application may employ a portable compact disc read only memory (CD-ROM) and comprise program code and may be run on a terminal device, such as a personal computer. However, the program product of the present application is not limited thereto, and in this document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium can be, for example, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium would include the following: an electrical connection having one or more wires, a portable disk, a hard disk, random Access Memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The computer readable signal medium may include a data signal propagated in baseband or as part of a carrier wave with readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A readable signal medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations of the present application may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C++ or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of remote computing devices, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., connected via the Internet using an Internet service provider).
Furthermore, the above-described figures are only illustrative of the processes involved in the method according to exemplary embodiments of the present application, and are not intended to be limiting. It will be readily appreciated that the processes shown in the above figures do not indicate or limit the temporal order of these processes. In addition, it is also readily understood that these processes may be performed synchronously or asynchronously, for example, among a plurality of modules.
It is to be understood that the present application is not limited to the precise construction set forth above and shown in the drawings, and that various modifications and changes may be effected therein without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (10)

1. A method of transmitting a message, comprising:
acquiring a communication record between a user and a designated contact person;
determining whether a message needs to be automatically sent to the designated contact based on the communication record;
if the message needs to be sent to the appointed contact automatically, acquiring the contextual model of the terminal used by the user;
searching response content corresponding to the contextual model based on the contextual model;
if the response content is not found, acquiring environment data in the environment where the terminal is located, generating a message based on the environment data, and sending the message to the appointed contact person;
If the response content is found, the environment data is not acquired, and the response content is used as the message to be sent to the appointed contact person;
wherein the generating a message based on the environmental data comprises:
acquiring a group in which the designated contact is located;
determining a message template for use in generating the message based on the grouping;
and filling the environment data in the message module to generate the message.
2. The method for sending a message according to claim 1, wherein the step of obtaining a communication record between the user and the designated contact includes:
and acquiring a communication record of the user and the appointed contact person within a set time.
3. The message sending method according to claim 1, wherein the determining whether a message needs to be automatically sent to the specified contact based on the communication record includes:
and if the number of times that the user continuously does not respond to the communication initiated by the designated contact in the set time reaches a set value corresponding to the designated contact, automatically sending a message to the designated contact.
4. The message transmission method according to claim 1, wherein the acquiring the environment data includes:
Acquiring environment data of the environment where each terminal used by the user is located;
the generating a message based on the environmental data includes:
determining terminals carried by users based on the environment data of the environments where the terminals are positioned;
and generating the message based on the environment data of the environment where the terminal carried by the user is located.
5. The message sending method according to claim 4, wherein the determining the terminal carried by the user based on the environmental data of the environment in which the respective terminal is located includes:
and taking the terminal corresponding to the environment data containing the user sound or the user image as the terminal carried by the user.
6. The method for sending a message according to claim 1, wherein the step of obtaining a communication record between the user and the designated contact includes:
acquiring account information corresponding to the appointed contact in a plurality of social applications according to the identity of the appointed contact;
and searching communication records between the user and the designated contacts in the social applications based on the account information.
7. The message transmission method according to claim 6, wherein the acquiring the environment data includes:
Acquiring environment data of an environment where the set terminal used by the user is located;
the generating a message based on the environmental data, sending the message to the designated contact, includes:
generating the message based on the environment data of the environment where the set terminal is located;
and selecting a target social application from the plurality of social applications based on the communication record between the user and the designated contact in the plurality of social applications, and sending the message by using the target social application.
8. A message transmission apparatus, comprising:
the first acquisition module is configured to acquire a communication record between a user and a designated contact;
a first determination module configured to determine whether a message needs to be automatically sent to the designated contact based on the communication record;
the second acquisition module is configured to acquire the contextual model of the terminal used by the user if the message is required to be sent to the designated contact automatically;
the second determining module is configured to search response content corresponding to the contextual model based on the contextual model, acquire environment data in the environment where the terminal is located if the response content is not found, and not acquire the environment data if the response content is found;
The sending module is configured to generate a message based on the environmental data if the environmental data is acquired, send the message to the appointed contact person, and send the response content as the message to the appointed contact person if the environmental data is not acquired;
wherein the generating a message based on the environmental data comprises:
acquiring a group in which the designated contact is located;
determining a message template for use in generating the message based on the grouping;
and filling the environment data in the message module to generate the message.
9. A computer readable program medium storing computer program instructions which, when executed by a computer, cause the computer to perform the method of any one of claims 1-7.
10. An electronic device, comprising:
a processor;
a memory having stored thereon computer readable instructions which, when executed by the processor, implement the method of any of claims 1-7.
CN202011019236.1A 2020-09-24 2020-09-24 Message transmission method, device and readable program medium Active CN114338903B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011019236.1A CN114338903B (en) 2020-09-24 2020-09-24 Message transmission method, device and readable program medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011019236.1A CN114338903B (en) 2020-09-24 2020-09-24 Message transmission method, device and readable program medium

Publications (2)

Publication Number Publication Date
CN114338903A CN114338903A (en) 2022-04-12
CN114338903B true CN114338903B (en) 2023-05-23

Family

ID=81011472

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011019236.1A Active CN114338903B (en) 2020-09-24 2020-09-24 Message transmission method, device and readable program medium

Country Status (1)

Country Link
CN (1) CN114338903B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101931911A (en) * 2010-08-26 2010-12-29 宇龙计算机通信科技(深圳)有限公司 Method and device for feeding current state back to calling mobile terminal as well as mobile terminals
CN107911557A (en) * 2017-11-30 2018-04-13 维沃移动通信有限公司 The processing method and mobile terminal of a kind of missed call
CN107995373A (en) * 2017-12-28 2018-05-04 北京安云世纪科技有限公司 A kind of method, mobile terminal and storage medium for being used to handle call request
CN109982273A (en) * 2019-03-25 2019-07-05 维沃移动通信有限公司 A kind of information replying method and mobile terminal

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101931911A (en) * 2010-08-26 2010-12-29 宇龙计算机通信科技(深圳)有限公司 Method and device for feeding current state back to calling mobile terminal as well as mobile terminals
CN107911557A (en) * 2017-11-30 2018-04-13 维沃移动通信有限公司 The processing method and mobile terminal of a kind of missed call
CN107995373A (en) * 2017-12-28 2018-05-04 北京安云世纪科技有限公司 A kind of method, mobile terminal and storage medium for being used to handle call request
CN109982273A (en) * 2019-03-25 2019-07-05 维沃移动通信有限公司 A kind of information replying method and mobile terminal

Also Published As

Publication number Publication date
CN114338903A (en) 2022-04-12

Similar Documents

Publication Publication Date Title
CN111953541B (en) Alarm information processing method, device, computer equipment and storage medium
US10665251B1 (en) Multi-modal anomaly detection
KR101131797B1 (en) Aggregated view of local and remote social information
AU2019206042A1 (en) Using metadata to summarize social media content
US11425571B2 (en) Device configuration method, apparatus and system
US20170026974A1 (en) Facilitating location of and interaction with a convenient communication device
JP2017215995A (en) Modulation of visual notification parameters based on message activity and notification value
KR101925662B1 (en) Aggregate provider for social activity feeds and contact information
CN102917011A (en) Cloud-based broker service for digital assistants
US8422642B2 (en) Message system for conducting message
US11392707B2 (en) Systems and methods for mediating permissions
CN112487451B (en) Display method and device and electronic equipment
US11316818B1 (en) Context-based consolidation of communications across different communication platforms
CN109155750A (en) A kind of communication means and equipment
CN108684206A (en) A kind of searching method and device
AU2020412338B2 (en) Method and device for improving the searchability of incident-specific social media content posted via particularly identified communication devices
CN111597065A (en) Method and device for collecting equipment information
CN106572131A (en) Media data sharing method and system in Internet of things
CN115913803A (en) Information interaction method and device and electronic equipment
US20190057102A1 (en) Real-Time User Text Classification to Establish Colloquial Naming
CN114338903B (en) Message transmission method, device and readable program medium
CN116861198A (en) Data processing method, device and storage medium
US20130030682A1 (en) Identification of a person located proximite to a contact identified in an electronic communication client
CN108289056B (en) Method and device for sharing dynamic chart and computing equipment
CN107168648B (en) File storage method and device and terminal

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