WO2015131561A1 - 一种实现短信转发为即时消息的方法及装置 - Google Patents

一种实现短信转发为即时消息的方法及装置 Download PDF

Info

Publication number
WO2015131561A1
WO2015131561A1 PCT/CN2014/091801 CN2014091801W WO2015131561A1 WO 2015131561 A1 WO2015131561 A1 WO 2015131561A1 CN 2014091801 W CN2014091801 W CN 2014091801W WO 2015131561 A1 WO2015131561 A1 WO 2015131561A1
Authority
WO
WIPO (PCT)
Prior art keywords
message
short message
content
instant message
instant
Prior art date
Application number
PCT/CN2014/091801
Other languages
English (en)
French (fr)
Inventor
杜进芳
张旭辉
陈飞雄
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2015131561A1 publication Critical patent/WO2015131561A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/06Message adaptation to terminal or network requirements
    • H04L51/066Format adaptation, e.g. format conversion or compression
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • H04L51/046Interoperability with other network applications or services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/58Message adaptation for wireless communication

Definitions

  • the present invention relates to the field of wireless communication systems, and in particular, to a method and apparatus for implementing short message forwarding into an instant message.
  • SMS services such as bank bills, online shopping orders, and school communication services. If you need to share this information within a certain range, you need to manually forward the SMS or copy the SMS content to the instant messaging tool. Forward again. Considering that multiple SMS forwarding will generate more tariffs, most people will use instant tools to forward, and users need to manually edit the content when forwarding. The operation is very inconvenient and convenient, similar to the school newsletter information and so on. Especially troublesome.
  • the related art has two schemes, one scheme, which is manually edited by the user and then forwarded to the corresponding destination address through the short message method. This method will generate more SMS fee problems under a certain amount of accumulation, and requires human operation.
  • Another solution which is manually edited by the user and forwarded to the corresponding destination address through the WeChat contact method, solves the problem of a certain amount of accumulated SMS charges, but still requires human operation.
  • the embodiment of the invention provides a method and a device for implementing short message forwarding to an instant message, which can automatically forward to a corresponding destination address of an instant message when receiving a short message conforming to the forwarding rule, thereby reducing the operation steps and cost of the forwarder.
  • a method for implementing short message forwarding to an instant message is applied to a mobile terminal, including:
  • the extracting the data information of the short message includes:
  • Extracting data information of the short message includes a short message sender and/or a short message content.
  • the instant message includes: a header content and a short message content, where the header content is determined according to the data information of the short message.
  • the sending the short message to an instant message to the instant message target contact comprises:
  • the determining the instant message target contact includes:
  • Determining an instant message target contact according to a correspondence between a preset SMS sender and an instant message target contact, and a correspondence relationship between the preset SMS sender and the content header corresponding to the instant message, and determining the instant message target contact according to the short message The sender determines the content of the header corresponding to the instant message;
  • Determining the content header content corresponding to the instant message target contact and the instant message according to the content message header selected by the user and the content header content corresponding to the user-edited instant message, and saving the short message sender to contact the instant message target Human correspondence, and SMS senders and instant messengers The correspondence between the content of the header corresponding to the information; or the correspondence between the keyword of the short message content and the target of the instant message, and the correspondence between the keyword of the short message content and the content of the header corresponding to the instant message.
  • the method before the converting the short message to an instant message to the instant message target contact, the method further includes
  • a prompt message is issued when the mobile terminal is not connected to the network.
  • the embodiment of the invention further provides an apparatus for implementing short message forwarding to an instant message, which is disposed on the mobile terminal side, and includes:
  • the short message monitoring module is configured to: when receiving the short message, extract the data information of the short message;
  • the forwarding determining module is configured to determine, according to the data information of the short message, whether to forward the short message by using an instant message;
  • a short message analysis module configured to determine a target contact of the instant message when determining to forward the short message by using an instant message
  • the instant messaging module is configured to send the short message to an instant message and send the message to the instant message target contact.
  • the device further includes:
  • the information aggregation module is configured to combine the information header content and the short message content to form an instant message
  • the device further includes:
  • the data conversion module is configured to store a correspondence between the sender of the short message and the target of the instant message, and a correspondence between the sender of the short message and the content of the header corresponding to the instant message;
  • the short message analysis module determines that the instant message target contact refers to:
  • the short message analysis module is further configured to determine, according to the short message sender, an information header content corresponding to the instant message;
  • the short message analysis module is further configured to determine, according to the keyword of the short message content, the content of the information header corresponding to the instant message;
  • Determining the content of the header of the instant message target contact and the instant message according to the content of the message header corresponding to the instant message selected by the user, and contacting the short message sender with the instant message target Corresponding relationship between the correspondence of the person and the content of the header of the short message sender and the instant message is stored in the data conversion module; or the correspondence between the keyword of the short message content and the target of the instant message, and the content of the short message
  • the correspondence between the keyword and the content of the header corresponding to the instant message is stored in the data conversion module.
  • Embodiments of the present invention also provide a computer program, including program instructions, that when executed by a mobile terminal, cause the mobile terminal to perform the method described above.
  • Embodiments of the present invention also provide a computer readable storage medium carrying the computer program.
  • the object automatically forwarded in the prior art is changed from a short message to an instant message contact, and in particular, a WeChat contact, the original short message fee is passed on the data service fee, and the fee is charged.
  • the 4G era not only has a rich network of packages, but also enjoy free Wi-Fi resources.
  • the technical solution of the present invention forwards the short message to the instant message contact, and does not need to manually edit and manually forward, solves the problem that requires manual operation, and brings a better user experience to the user.
  • FIG. 1 is a flowchart of a method for implementing short message forwarding to an instant message according to an embodiment of the present invention
  • FIG. 2 is a schematic structural diagram of an apparatus for implementing short message forwarding into an instant message according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram of a storage structure of a data conversion module according to Embodiment 1 of the present invention.
  • FIG. 4 is a schematic diagram of a storage structure of an instant message according to Embodiment 1 of the present invention.
  • FIG. 5 is a flowchart of a method for implementing short message forwarding into an instant message according to Embodiment 1 of the present invention.
  • an embodiment of the present invention provides a method for implementing short message forwarding to an instant message, which is applied to a mobile terminal, including:
  • Step 110 When receiving a short message, extract data information of the short message
  • Step 120 Determine, according to the data information of the short message, whether to forward the short message by using an instant message
  • Step 130 When it is determined that the short message is forwarded as an instant message by using an instant message, determining a target contact of the instant message;
  • Step 140 Send the short message to an instant message and send the message to the instant message target contact.
  • the mobile terminal generally refers to a smart phone.
  • the extracting the data information of the short message in step 110 includes:
  • Extracting data information of the short message includes a short message sender and/or a short message content.
  • the instant message in the embodiment of the present invention may include: a header content and a short message content, where the information The header content is determined based on the data information of the short message.
  • sending the short message to an instant message to the instant message target contact in step 140 includes:
  • determining the instant message target contact in step 130 includes:
  • the method further includes
  • a prompt message is issued when the mobile terminal is not connected to the network.
  • an embodiment of the present invention further provides a device for implementing short message forwarding to a WeChat, which is disposed on a mobile terminal side, and includes:
  • the short message monitoring module is configured to: when receiving the short message, extract the data information of the short message;
  • the forwarding determining module is configured to determine, according to the data information of the short message, whether to forward the short message by using an instant message;
  • a short message analysis module configured to determine a target contact of the instant message when determining to forward the short message by using an instant message
  • the instant messaging module is configured to send the short message to an instant message and send the message to the target contact.
  • the data that the short message monitoring module extracts the short message refers to:
  • Extracting data information of the short message includes a short message sender and/or a short message content.
  • the device for implementing short message forwarding to WeChat further includes:
  • the information aggregation module is configured to combine the information header content and the short message content to form an instant message
  • the device for realizing SMS forwarding to WeChat further includes:
  • the data conversion module is configured to store a correspondence between the sender of the short message and the target of the instant message, and a correspondence between the sender of the short message and the content of the header corresponding to the instant message;
  • the short message analysis module determines that the instant message target contact refers to:
  • Determining the content of the header of the instant message target contact and the instant message according to the content of the message header corresponding to the instant message selected by the user, and contacting the short message sender with the instant message target Corresponding relationship between the correspondence of the person and the content of the header of the short message sender and the instant message is stored in the data conversion module; or the correspondence between the keyword of the short message content and the target of the instant message, and the content of the short message
  • the correspondence between the keyword and the content of the header corresponding to the instant message is stored in the data conversion module.
  • the method for forwarding a short message into an instant message includes: after receiving a new short message, the mobile terminal filters and analyzes the short message, and analyzes and integrates the short message of the specific sender. After that, the final information content is automatically sent to the target WeChat contact.
  • the monitoring mechanism of the new short message listens to a new short message by calling a system API (application programming interface) of the mobile terminal, and extracts valid data, such as: a short message sender, a short message content;
  • a system API application programming interface
  • the short message analysis mechanism analyzes the received new short message, analyzes the short message sender information, determines whether the new short message needs to be forwarded, and analyzes the target WeChat contact and the information header content corresponding to the information according to the forwarding rule;
  • the information forwarding policy includes a filtering rule that needs to forward information, a specific conversion policy for information forwarding, and a generation strategy of the information header;
  • the final information generation mechanism generates the final WeChat information content according to the forwarding policy, the information header and the specific information content.
  • the WeChat sending mechanism invokes the WeChat API to complete the sending of the WeChat.
  • SMS monitoring module The mobile terminal invokes an operating system interface to listen for new short messages, and the monitored data information includes a short message sender, a short message content, etc., and is notified to the short message analysis module.
  • SMS analysis module analyzes the new SMS and combines the data conversion strategy to determine whether the information needs to be sent to the WeChat contact. If no forwarding is required, the process ends.
  • the target contact is analyzed in combination with the data conversion strategy
  • Data conversion module As shown in FIG. 3, the information transmission rule is edited, and a data conversion strategy is generated for use by the short message analysis module.
  • the information aggregation module parses the data filtered by the short message analysis module, parses out the two contents of the information header and the information content, and provides the content to the WeChat sending module, as shown in FIG. 4 .
  • WeChat sending module According to the information aggregation module, the information of the target contact machine information of the information head and the information content is provided, and the WeChat API is called to complete the WeChat sending.
  • the embodiments of the present invention relate to the following aspects:
  • Provide user input portal such as user operation interface, which is convenient for users to edit the policy of SMS forwarding to WeChat;
  • the mobile terminal system API is convenient for monitoring new short messages and capturing the sender of the short message and the content of the short message;
  • the WeChat API obtains a list of WeChat contacts of local users and can send combined information to the target contact;
  • Step 501 Listening to a new short message of the device, calling an operating system API of the terminal device, and capturing a new short message notification;
  • Step 502 Extract a new short message valid field, including a short message sender information, a short message content, and the like;
  • the operating system API of the terminal device may be invoked to extract a key segment of the short message
  • Step 503 analyzing the new short message content, according to the information content, the conversion strategy of the data conversion module, analyzing whether the forwarding is required, if the forwarding is not required, the process ends; if the forwarding is required, step 504 is performed;
  • the conversion strategy of the data conversion module provides data conversion support for other service modules, including:
  • SMS forwarding policies such as:
  • the sender number 100234 represents the language operation
  • the conversion to the WeChat information head is the language operation
  • the data conversion module generates and provides a data conversion strategy
  • Step 504 Extract the sender information of the short message, and combine the conversion strategy of the data conversion module to analyze and give the WeChat target contact.
  • Step 505 extracting the short message content, combining the conversion strategy of the data conversion module, combining the information header and the short message content, and outputting the final information to be sent;
  • Step 506 the WeChat API is invoked, the information is sent, and the final combined information is sent to the target WeChat contact.
  • the information conversion policy may be performed according to the key segment in the short message content, and the automatic forwarding is completed;
  • the user may manually edit or add to the new content, and manually select the WeChat contact to forward to the corresponding destination address.
  • the method for forwarding a short message to a WeChat contact by using the method and device of the embodiment of the present invention can solve the problem of high cost, and can also solve the problem of human operation, and achieve an efficient and convenient effect.
  • all or part of the steps of the above embodiments may also be implemented by using an integrated circuit. These steps may be separately fabricated into individual integrated circuit modules, or multiple modules or steps may be fabricated into a single integrated circuit module. achieve. Thus, the invention is not limited to any specific combination of hardware and software.
  • the devices/function modules/functional units in the above embodiments may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices.
  • each device/function module/functional unit in the above embodiment When each device/function module/functional unit in the above embodiment is implemented in the form of a software function module and sold or used as a stand-alone product, it can be stored in a computer readable storage medium.
  • the above mentioned computer readable storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
  • the technical solution of the present invention forwards the short message to the instant message contact, and does not need to manually edit and manually forward, solves the problem that requires manual operation, and brings a better user experience to the user.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)
  • Telephonic Communication Services (AREA)

Abstract

一种实现短信转发为即时消息的方法及装置,该方法包括:在收到短信时,提取所述短信的数据信息;根据所述短信的数据信息,确定是否通过即时消息转发所述短信;当确定通过即时消息转发所述短信时,确定即时消息的目标联系人;将所述短信转为即时消息发送至所述即时消息目标联系人。

Description

一种实现短信转发为即时消息的方法及装置 技术领域
本发明涉及无线通信系统领域,尤其涉及一种实现短信转发为即时消息的方法及装置。
背景技术
随着通讯技术的发展,手机数据业务快速膨胀,一方面运营商的数据业务资费越来越便宜,各大城市更是热衷于城市热点的广泛布局,另一方面终端用户对数据业务的诉求多而量大,主要有智能手机上的即时通讯工具如微信、QQ等因为其灵活性、传输及时及无额外资费等原因,在很多情况下已代替了传统的短信业务,在即时通讯工具中微信表现突出,基本已达到普及。
在一些传统业务中,仍然有使用短信业务,比如银行账单、网购订单、校讯通业务等,这些信息若需要在一定范围内共享,需要通过手动方式转发短信或者将短信内容拷贝到即时通讯工具中再进行转发。考虑到多条短信转发会产生较多资费,大多数人会利用即时工具转发,在转发时还需要用户手动编辑内容,操作非常不够便捷,类似于校讯通信息等每天会有多个内容的,尤为麻烦。
相关技术有两种方案,一种方案,由用户手动编辑后通过短信方式转发给相应的目的地址,这种方式在一定量的积累下会产生较多的短信费用问题,并且需要人为的操作。另一种方案,由用户手动编辑后通过微信联系人方式转发给相应的目的地址,这种方式解决了一定量的积累下短信费用的问题,但是仍然需要人为操作。
发明内容
本发明实施例提供一种实现短信转发为即时消息方法及装置,能够在接收到符合转发规则的短信时,自动转发至即时消息相应的目的地址,减少转发者的操作步骤以及费用问题。
一种实现短信转发为即时消息的方法,应用于移动终端,包括:
在收到短信时,提取所述短信的数据信息;
根据所述短信的数据信息,确定是否通过即时消息转发所述短信;
当确定通过即时消息转发所述短信为即时消息时,确定即时消息发送的目标联系人;
将所述短信转为即时消息发送至所述目标联系人。
可选地,所述提取所述短信的数据信息包括:
调用移动终端的系统应用程序编程接口,监听所述短信;
提取所述短信的数据信息,所述短信的数据信息包括短信发件人和/或短信内容。
可选地,所述即时消息包括:信息头内容和短信内容,所述信息头内容根据所述短信的数据信息确定。
可选地,所述将所述短信转为即时消息发送至所述即时消息目标联系人包括:
组合所述信息头内容和短信内容构成即时消息;
调用即时消息应用程序编程接口;将所述即时消息发送至所述即时消息目标联系人。
可选地,所述确定即时消息目标联系人包括:
根据预先设置的短信发件人与即时消息目标联系人的对应关系,和预先设置的短信发件人与即时消息对应的信息头内容的对应关系,确定即时消息目标联系人,并根据所述短信发件人确定即时消息对应的信息头内容;
或者,
根据预先设置的短信内容的关键字与即时消息目标联系人的对应关系,和预先设置的短信内容的关键字与即时消息对应的信息头内容的对应关系,确定即时消息联系人,并根据所述短信内容的关键字确定即时消息对应的信息头内容;
或者,
根据用户选择的即时消息目标联系人,和用户编辑的即时消息对应的信息头内容,确定即时消息目标联系人及即时消息对应的信息头内容,并保存所述短信发件人与即时消息目标联系人的对应关系,和短信发件人与即时消 息对应的信息头内容的对应关系;或者保存短信内容的关键字与即时消息目标联系人的对应关系,和短信内容的关键字与即时消息对应的信息头内容的对应关系。
可选地,所述将所述短信转为即时消息发送至所述即时消息目标联系人之前,还包括
检测所述移动终端是否联网,
在所述移动终端联网时,执行发送即时消息的步骤,
在所述移动终端未联网时,发出提示消息。
本发明实施例还提供一种实现短信转发为即时消息的装置,设置于移动终端侧,包括:
短信监听模块,设置为在收到短信时,提取所述短信的数据信息;
转发判断模块,设置为根据所述短信的数据信息,确定是否通过即时消息转发所述短信;
短信分析模块,设置为当确定通过即时消息转发所述短信时,确定即时消息的目标联系人;
即时消息发送模块,设置为将所述短信转为即时消息发送至所述即时消息目标联系人。
可选地,所述的装置,还包括:
信息聚合模块,设置为组合所述信息头内容和短信内容构成即时消息;
所述即时消息发送模块将所述短信转为即时消息发送至所述即时消息目标联系人是指:
调用即时消息应用程序编程接口;将所述即时消息发送至所述即时消息目标联系人。
可选地所述的装置,还包括:
数据转换模块,设置为存储短信发件人与即时消息目标联系人的对应关系,和短信发件人与即时消息对应的信息头内容的对应关系;
或者,
用于存储短信内容的关键字与即时消息目标联系人的对应关系,和短信 内容的关键字与即时消息对应的信息头内容的对应关系;
可选地,所述短信分析模块确定即时消息目标联系人是指:
根据所述数据转换模块存储的短信发件人与即时消息目标联系人的对应关系,和短信发件人与即时消息对应的信息头内容的对应关系,确定即时消息目标联系人;
所述短信分析模块,还设置为根据所述短信发件人确定即时消息对应的信息头内容;
或者,
根据所述数据转换模块存储的短信内容的关键字与即时消息目标联系人的对应关系,和短信内容的关键字与即时消息对应的信息头内容的对应关系,确定即时消息目标联系人;
所述短信分析模块,还设置为根据所述短信内容的关键字确定即时消息对应的信息头内容;
或者,
根据用户选择的即时消息目标联系人,和用户编辑的即时消息对应的信息头内容,确定即时消息目标联系人及即时消息对应的信息头内容,并将所述短信发件人与即时消息目标联系人的对应关系,和短信发件人与即时消息对应的信息头内容的对应关系存储至所述数据转换模块;或者将短信内容的关键字与即时消息目标联系人的对应关系,和短信内容的关键字与即时消息对应的信息头内容的对应关系存储至所述数据转换模块。
本发明实施例还提供一种计算机程序,包括程序指令,当该程序指令被移动终端执行时,使得该移动终端可执行上面所述的方法。
本发明实施例还提供一种载有所述计算机程序的计算机可读存储介质。
通过本发明实施例的技术方案,将原有技术中自动转发的对象由短信变为即时消息联系人,尤其可以是微信联系人,将原有短信费用转嫁在数据服务费用上,而这部分费用包括使用蜂窝网络的数据费用以及无线Wi-Fi网络服务费用,但一般后者是免费的。作为一般用户,特别是在4G时代,不但拥有丰厚的网络套餐,而且尽情享受着免费的Wi-Fi资源。
本发明技术方案将短信转发到即时消息联系人,无需通过手动编辑和手动转发,解决需要人工操作的问题,为用户带来了更好的用户体验。
附图概述
图1是本发明实施例的一种实现短信转发为即时消息的方法的流程图;
图2是本发明实施例的一种实现短信转发为即时消息的装置的结构示意图;
图3是本发明实施例一的数据转换模块的存储结构示意图;
图4是本发明实施例一的即时消息的存储结构示意图;
图5是本发明实施例一的实现短信转发为即时消息的方法的流程图。
本发明的较佳实施方式
下面结合附图对本发明的实施例进行说明,需要说明的是,在不冲突的情况下,本申请中的实施例和实施例中的特征可以相互任意组合。
如图1所示,本发明实施例提供了一种实现短信转发为即时消息的方法,应用于移动终端,包括:
步骤110、在收到短信时,提取所述短信的数据信息;
步骤120、根据所述短信的数据信息,确定是否通过即时消息转发所述短信;
步骤130、当确定通过即时消息转发所述短信为即时消息时,确定即时消息的目标联系人;
步骤140、将所述短信转为即时消息发送至所述即时消息目标联系人。
其中移动终端,一般指智能手机。
可选地,步骤110中提取所述短信的数据信息包括:
调用移动终端的系统应用程序编程接口,监听所述短信;
提取所述短信的数据信息,所述短信的数据信息包括短信发件人和/或短信内容。
本发明实施例中即时消息可以包括:信息头内容和短信内容,所述信息 头内容为根据所述短信的数据信息确定的。
考虑到应用场景,如转发信息,需要告知收件人或者即时消息目标联系人信息来至那里,因此增加信息头内容,补充上述内容,可以不增加信息头内容,或者将信息头内容设置为空。
可选地,步骤140中将所述短信转为即时消息发送至所述即时消息目标联系人包括:
组合所述信息头内容和短信内容构成即时消息;
调用即时消息应用程序编程接口;将所述即时消息发送至所述即时消息目标联系人。
可选地,步骤130中确定即时消息目标联系人包括:
根据预先设置的短信发件人与即时消息目标联系人的对应关系,和预先设置的短信发件人与即时消息对应的信息头内容的对应关系,确定即时消息目标联系人及即时消息对应的信息头内容;
或者,
根据预先设置的短信内容的关键字与即时消息目标联系人的对应关系,和预先设置的短信内容的关键字与即时消息对应的信息头内容的对应关系,确定即时消息目标联系人及即时消息对应的信息头内容;
或者,
根据用户选择的即时消息目标联系人,和用户编辑的即时消息对应的信息头内容,确定即时消息目标联系人及即时消息对应的信息头内容,并保存所述短信发件人与即时消息目标联系人的对应关系,和短信发件人与即时消息对应的信息头内容的对应关系;或者保存短信内容的关键字与即时消息目标联系人的对应关系,和短信内容的关键字与即时消息对应的信息头内容的对应关系。
将所述短信转为即时消息发送至所述即时消息目标联系人之前,还包括
检测所述移动终端是否联网,
在所述移动终端联网时,执行发送即时消息的步骤,
在所述移动终端未联网时,发出提示消息。
如何检测是否联网,可以利用现有技术实现。
如图2所示,本发明实施例还提供了一种实现短信转发为微信的装置,设置于移动终端侧,包括:
短信监听模块,设置为在收到短信时,提取所述短信的数据信息;
转发判断模块,设置为根据所述短信的数据信息,确定是否通过即时消息转发所述短信;
短信分析模块,设置为当确定通过即时消息转发所述短信时,确定即时消息的目标联系人;
即时消息发送模块,设置为将所述短信转为即时消息发送至所述目标联系人。
其中,所述短信监听模块提取所述短信的数据是指:
调用移动终端的系统应用程序编程接口,监听所述短信;
提取所述短信的数据信息,所述短信的数据信息包括短信发件人和/或短信内容。
如图2所示,实现短信转发为微信的装置还包括:
信息聚合模块,设置为组合所述信息头内容和短信内容构成即时消息;
其中,所述即时消息发送模块将所述短信转为即时消息发送至所述即时消息目标联系人是指:
调用即时消息应用程序编程接口;将所述即时消息发送至所述即时消息目标联系人。
实现短信转发为微信的装置还包括:
数据转换模块,设置为存储短信发件人与即时消息目标联系人的对应关系,和短信发件人与即时消息对应的信息头内容的对应关系;
或者,
设置为存储短信内容的关键字与即时消息目标联系人的对应关系,和短信内容的关键字与即时消息对应的信息头内容的对应关系;
其中,所述短信分析模块确定即时消息目标联系人是指:
根据所述数据转换模块存储的短信发件人与即时消息目标联系人的对应 关系,和短信发件人与即时消息对应的信息头内容的对应关系,确定即时消息目标联系人及微信信息对应的信息头内容;
或者,
根据所述数据转换模块存储的短信内容的关键字与即时消息目标联系人的对应关系,和短信内容的关键字与即时消息对应的信息头内容的对应关系,确定即时消息目标联系人及微信信息对应的信息头内容;
或者,
根据用户选择的即时消息目标联系人,和用户编辑的即时消息对应的信息头内容,确定即时消息目标联系人及即时消息对应的信息头内容,并将所述短信发件人与即时消息目标联系人的对应关系,和短信发件人与即时消息对应的信息头内容的对应关系存储至所述数据转换模块;或者将短信内容的关键字与即时消息目标联系人的对应关系,和短信内容的关键字与即时消息对应的信息头内容的对应关系存储至所述数据转换模块。
实施例一
本发明实施例提供的实现短信转发为即时消息的方法,尤其是一种转发微信的方法,包括:移动终端在收到新短信后,对短信进行筛选分析,将特定发送方的短信进行分析整合后,将最终信息内容自动的发送给目标微信联系人。
可选地,所述新短信的监听机制,通过调用移动终端的系统API(应用程序编程接口),监听新短信,并提取有效数据,比如:短信发件人,短信内容;
可选地,短信的分析机制,对接收到的新短信进行分析,解析短信发送方信息,判断新短信是否需要转发,并根据转发规则分析出目标微信联系人及信息对应的信息头内容;
可选地,信息的转发策略,包括需要转发信息的过滤规则,信息转发的具体转换策略,信息头的生成策略;
可选地,最终信息的生成机制,根据转发策略,聚合信息头和具体信息内容,生成最终微信信息内容。
可选地,微信发送机制,根据转发策略的微信目标联系人及或者最终微信信息内容,调用微信API,完成微信的发送。
短信监听模块:移动终端调用操作系统接口,监听新短信,并将监听到的数据信息包括短信发送方、短信内容等,通知到短信分析模块。
短信分析模块:对新短信进行分析,并结合数据转化策略,判断信息是否需要发送到微信联系人,若无需转发则结束流程;
若需要转发,结合数据转换策略分析出目标联系人;
数据转换模块:如图3所示,编辑信息发送规则,生成数据转换策略,供短信分析模块使用。
形成短信发送方与信息头以及目标微信联系人的转换策略。
信息聚合模块:将来自于短信分析模块过滤过的数据,解析出信息头和信息内容两块内容,提供给微信发送模块使用,如图4所示。
微信发送模块:根据信息聚合模块提供信息头和信息内容的目标联系人机信息内容,调用微信API,完成微信发送。
为达到上述目的,本发明实施例涉及到如下几个方面:
提供用户输入入口,如用户操作界面,方便用户编辑短信转发至微信的策略;
移动终端系统API,便于监听新短信,并捕获到短信发送方及短信内容;
微信API,获取本地用户的微信联系人列表,并能够发送组合信息到目标联系人;
如图5所示,工作流程如下:
步骤501,监听设备的新短信,调用终端设备的操作系统API,捕获新短信通知;
步骤502,提取新短信有效字段,包括短信发送方信息、短信内容等;
该步骤中,可以调用终端设备的操作系统API,提取短信的关键字段;
步骤503,分析新短信内容,根据信息内容,数据转换模块的转换策略,分析是否需要转发,如不需要转发则流程结束;如需要转发,执行步骤504,;
其中,数据转换模块的转换策略为其他业务模块提供数据转换支撑,包括:
1)提供用户编辑短信转发策略,如:
编辑短信发送方的过滤策略:在收到转发送方的短信后需要进行转发;
编辑对应的目标微信收件人:本系统会调用微信API,获取微信联系人供用户选择;
2)编辑对应的信息转换策略:编辑该短信发送方对应的信息头内容;
例如,校讯通中发送方号码100234代表语文作业,转化为微信信息头即为语文作业;
3)数据转换模块生成、提供数据转换策略;
保存短信发送方与微信目标接收人间的对应关系,并生成数据转换策略;
4)保存短信发送方的信息转换策略,并生成信息组合策略;
步骤504,提取短信发送人信息,结合数据转换模块的转换策略,分析给出微信目标联系人。
步骤505,提取短信内容,结合数据转换模块的转换策略,组合信息头和短信内容,输出最终待发送的信息;
步骤506,调用微信API,完成信息发送,发送最终的组合信息到目标微信联系人。
本发明实施例还可以根据短信内容中关键字段进行信息转换策略,完成自动转发;
还可以将短信转发到其他的即时通讯工具中,如QQ等。
本发明实施例中可以由用户手动编辑或者添加为新内容,手动选择微信联系人的方式转发给相应的目的地址。
利用本发明实施例的方法和装置将短信转发给微信联系人的方案可以解决费用高的问题,也能解决人为操作的问题,启到高效便捷的效果。
虽然本发明所揭示的实施方式如上,但其内容只是为了便于理解本发明的技术方案而采用的实施方式,并非用于限定本发明。任何本发明所属技术领域内的技术人员,在不脱离本发明所揭示的核心技术方案的前提下,可以在实施的形式和细节上做任何修改与变化,但本发明所限定的保护范围,仍须以所附的权利要求书限定的范围为准。
本领域普通技术人员可以理解上述实施例的全部或部分步骤可以使用计算机程序流程来实现,所述计算机程序可以存储于一计算机可读存储介质中,所述计算机程序在相应的硬件平台上(如系统、设备、装置、器件等)执行,在执行时,包括方法实施例的步骤之一或其组合。
可选地,上述实施例的全部或部分步骤也可以使用集成电路来实现,这些步骤可以被分别制作成一个个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。
上述实施例中的各装置/功能模块/功能单元可以采用通用的计算装置来实现,它们可以集中在单个的计算装置上,也可以分布在多个计算装置所组成的网络上。
上述实施例中的各装置/功能模块/功能单元以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。上述提到的计算机可读取存储介质可以是只读存储器,磁盘或光盘等。
任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求所述的保护范围为准。
工业实用性
本发明实施例本发明技术方案将短信转发到即时消息联系人,无需通过手动编辑和手动转发,解决需要人工操作的问题,为用户带来了更好的用户体验。

Claims (12)

  1. 一种实现短信转发为即时消息的方法,应用于移动终端,包括:
    在收到短信时,提取所述短信的数据信息;
    根据所述短信的数据信息,确定是否通过即时消息转发所述短信;
    当确定通过即时消息转发所述短信为即时消息时,确定即时消息的目标联系人;
    将所述短信转为即时消息发送至所述目标联系人。
  2. 如权利要求1所述的方法,其中:所述提取所述短信的数据信息包括:
    调用移动终端的系统应用程序编程接口,监听所述短信;
    提取所述短信的数据信息,所述短信的数据信息包括短信发件人和/或短信内容。
  3. 如权利要求1所述的方法,其中:所述即时消息包括:信息头内容和短信内容,所述信息头内容根据所述短信的数据信息确定。
  4. 如权利要求3所述的方法,其中:所述将所述短信转为即时消息发送至所述目标联系人包括:
    组合所述信息头内容和短信内容构成即时消息;
    调用即时消息应用程序编程接口;将所述即时消息发送至所述目标联系人。
  5. 如权利要求3所述的方法,其中:所述确定即时消息的目标联系人包括:
    根据预先设置的短信发件人与即时消息的目标联系人的对应关系,和预先设置的短信发件人与即时消息对应的信息头内容的对应关系,确定即时消息的目标联系人,并根据所述短信发件人确定即时消息对应的信息头内容;或者,
    根据预先设置的短信内容的关键字与即时消息的目标联系人的对应关系,和预先设置的短信内容的关键字与即时消息对应的信息头内容的对应关系,确定即时消息的目标联系人,并根据所述短信内容的关键字确定即时消息对应的信息头内容;或者,
    根据用户选择的即时消息的目标联系人,和用户编辑的即时消息对应的信息头内容,确定即时消息的目标联系人及即时消息对应的信息头内容,并保存所述短信发件人与即时消息的目标联系人的对应关系,和短信发件人与即时消息对应的信息头内容的对应关系;或者保存短信内容的关键字与即时消息的目标联系人的对应关系,和短信内容的关键字与即时消息对应的信息头内容的对应关系。
  6. 如权利要求1所述的方法,其中:所述将所述短信转为即时消息发送至所述目标联系人之前,还包括
    检测所述移动终端是否联网,
    在所述移动终端联网时,执行发送即时消息的步骤,
    在所述移动终端未联网时,发出提示消息。
  7. 一种实现短信转发为即时消息的装置,设置于移动终端侧,包括:
    短信监听模块,其设置为在收到短信时,提取所述短信的数据信息;
    转发判断模块,其设置为根据所述短信的数据信息,确定是否通过即时消息转发所述短信;
    短信分析模块,其设置为当确定通过即时消息转发所述短信时,确定即时消息发送的目标联系人;以及
    即时消息发送模块,其设置为将所述短信转为即时消息发送至所述目标联系人。
  8. 如权利要求7所述的装置,还包括:
    信息聚合模块,其设置为组合所述信息头内容和短信内容构成即时消息;
    所述即时消息发送模块是设置为以如下方式将所述短信转为即时消息发送至所述目标联系人:
    调用即时消息应用程序编程接口;将所述即时消息发送至所述目标联系人。
  9. 如权利要求7所述的装置,还包括:
    数据转换模块,其设置为:
    存储短信发件人与即时消息的目标联系人的对应关系,和短信发件人与 即时消息对应的信息头内容的对应关系;或者,
    存储短信内容的关键字与即时消息的目标联系人的对应关系,和短信内容的关键字与即时消息对应的信息头内容的对应关系。
  10. 如权利要求9所述的装置,其中:所述短信分析模块确定即时消息的目标联系人是指:
    根据所述数据转换模块存储的短信发件人与即时消息的目标联系人的对应关系,和短信发件人与即时消息对应的信息头内容的对应关系,确定即时消息的目标联系人;
    所述短信分析模块,还设置为根据所述短信发件人确定即时消息对应的信息头内容;
    或者,
    根据所述数据转换模块存储的短信内容的关键字与即时消息的目标联系人的对应关系,和短信内容的关键字与即时消息对应的信息头内容的对应关系,确定即时消息的目标联系人;
    所述短信分析模块,还设置为根据所述短信内容的关键字确定即时消息对应的信息头内容;
    或者,
    根据用户选择的即时消息的目标联系人,和用户编辑的即时消息对应的信息头内容,确定即时消息的目标联系人及即时消息对应的信息头内容,并将所述短信发件人与即时消息的目标联系人的对应关系,和短信发件人与即时消息对应的信息头内容的对应关系存储至所述数据转换模块;或者将短信内容的关键字与即时消息的目标联系人的对应关系,和短信内容的关键字与即时消息对应的信息头内容的对应关系存储至所述数据转换模块。
  11. 一种计算机程序,包括程序指令,当该程序指令被移动终端执行时,使得该移动终端可执行权利要求1-5任一项所述的方法。
  12. 一种载有权利要求11所述计算机程序的计算机可读存储介质。
PCT/CN2014/091801 2014-09-16 2014-11-20 一种实现短信转发为即时消息的方法及装置 WO2015131561A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410471824.7A CN105490912B (zh) 2014-09-16 2014-09-16 一种实现短信转发为即时消息的方法及装置
CN201410471824.7 2014-09-16

Publications (1)

Publication Number Publication Date
WO2015131561A1 true WO2015131561A1 (zh) 2015-09-11

Family

ID=54054443

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/091801 WO2015131561A1 (zh) 2014-09-16 2014-11-20 一种实现短信转发为即时消息的方法及装置

Country Status (2)

Country Link
CN (1) CN105490912B (zh)
WO (1) WO2015131561A1 (zh)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111182480A (zh) * 2016-05-13 2020-05-19 青岛海信移动通信技术股份有限公司 一种信息处理的方法和终端
CN113630304A (zh) * 2016-06-12 2021-11-09 华为技术有限公司 一种在不同应用程序之间转发内容的方法和装置
CN107819852A (zh) * 2017-11-13 2018-03-20 国网湖南省电力有限公司 一种基于微信公众平台的水电机组在线预警方法及系统
CN113259862B (zh) * 2021-06-23 2021-11-09 易纳购科技(北京)有限公司 短信集中转发系统及方法
CN113596754B (zh) * 2021-07-05 2022-09-20 西安震有信通科技有限公司 适应各接口的消息自动转发方法、装置、智能终端及介质

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101316245A (zh) * 2008-07-17 2008-12-03 中国移动通信集团北京有限公司 即时通信的消息发送方法、设备及系统
CN101917676A (zh) * 2010-07-15 2010-12-15 雷毅 手机短信向即时通信业务平滑过渡的双模式客户端及方法
CN102137033A (zh) * 2011-04-02 2011-07-27 北京互通无线科技有限公司 一种基于通讯录的im系统及即时通信方法
CN102150443A (zh) * 2008-09-15 2011-08-10 微软公司 用于在即时消息用户和短消息服务用户之间进行通信的系统和方法
CN102624641A (zh) * 2011-06-14 2012-08-01 北京小米科技有限责任公司 一种发送即时消息的方法
US8428228B1 (en) * 2012-09-18 2013-04-23 Weerawan Wongmanee Unified communication system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103369114A (zh) * 2012-03-31 2013-10-23 中兴通讯股份有限公司 短消息发送方法、装置及移动通信终端

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101316245A (zh) * 2008-07-17 2008-12-03 中国移动通信集团北京有限公司 即时通信的消息发送方法、设备及系统
CN102150443A (zh) * 2008-09-15 2011-08-10 微软公司 用于在即时消息用户和短消息服务用户之间进行通信的系统和方法
CN101917676A (zh) * 2010-07-15 2010-12-15 雷毅 手机短信向即时通信业务平滑过渡的双模式客户端及方法
CN102137033A (zh) * 2011-04-02 2011-07-27 北京互通无线科技有限公司 一种基于通讯录的im系统及即时通信方法
CN102624641A (zh) * 2011-06-14 2012-08-01 北京小米科技有限责任公司 一种发送即时消息的方法
US8428228B1 (en) * 2012-09-18 2013-04-23 Weerawan Wongmanee Unified communication system

Also Published As

Publication number Publication date
CN105490912A (zh) 2016-04-13
CN105490912B (zh) 2019-12-10

Similar Documents

Publication Publication Date Title
CA2862876C (en) Systems and methods for sharing data among multiple end user devices
US11677878B2 (en) Methods and systems for notifications in communications networks
WO2015131561A1 (zh) 一种实现短信转发为即时消息的方法及装置
CN103973547B (zh) 图片显示方法和装置
US20180033096A1 (en) Resource transfer system and method
CN103391504B (zh) 一种流量提醒的方法及装置
US20160277460A1 (en) Method and apparatus for initiating network conference
US8260333B2 (en) Consolidating international short message service messages destined to multiple recipients
CN102916854A (zh) 流量统计方法、装置及代理服务器
CN103049511A (zh) 一种微博关注列表、微博内容的显示方法及其客户端
CN101494830A (zh) 移动数据传输方法及系统以及在新闻采访中的应用
KR20150032152A (ko) 전자 장치 간의 편집 동작을 실행하는 방법 및 장치
WO2012022083A1 (zh) 一种表情文件的传输方法及终端设备
WO2014187397A1 (zh) 多媒体消息的发布方法及装置
CN102905236B (zh) 一种垃圾短消息监控方法、装置及系统
JP7182467B2 (ja) メッセージデータを選択的に適合して送信するための方法とシステム
WO2016177126A1 (zh) 流量分享方法及装置
CN114979982B (zh) 消息的下发方法、装置、电子设备及存储介质
WO2015184780A1 (zh) 一种处理信息的方法、装置及系统
CN104811529A (zh) 移动终端或应用按照运动模式进行智能处理的方法
WO2017193814A1 (zh) 一种业务链生成方法及系统
CN1901595B (zh) 一种发送传真到无线传真设备的方法
KR101378254B1 (ko) 적응형 메시징 방법 및 시스템
CN103607703A (zh) 一种举报手机诈骗短信的方法和装置
CN103415002A (zh) 一种语音发送及自动播放系统及其方法

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14884912

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14884912

Country of ref document: EP

Kind code of ref document: A1