WO2012119448A1 - 一种消息传输的方法及装置 - Google Patents

一种消息传输的方法及装置 Download PDF

Info

Publication number
WO2012119448A1
WO2012119448A1 PCT/CN2011/080018 CN2011080018W WO2012119448A1 WO 2012119448 A1 WO2012119448 A1 WO 2012119448A1 CN 2011080018 W CN2011080018 W CN 2011080018W WO 2012119448 A1 WO2012119448 A1 WO 2012119448A1
Authority
WO
WIPO (PCT)
Prior art keywords
message
chat
contact
contact information
segment
Prior art date
Application number
PCT/CN2011/080018
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 WO2012119448A1 publication Critical patent/WO2012119448A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/16Arrangements for providing special services to substations
    • H04L12/18Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
    • H04L12/1813Arrangements for providing special services to substations for broadcast or conference, e.g. multicast for computer conferences, e.g. chat rooms
    • H04L12/1822Conducting the conference, e.g. admission, detection, selection or grouping of participants, correlating users to one or more conference sessions, prioritising transmission
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/16Arrangements for providing special services to substations
    • H04L12/18Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
    • H04L12/1813Arrangements for providing special services to substations for broadcast or conference, e.g. multicast for computer conferences, e.g. chat rooms
    • H04L12/1827Network arrangements for conference optimisation or adaptation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/02Details
    • H04L12/16Arrangements for providing special services to substations
    • H04L12/18Arrangements for providing special services to substations for broadcast or conference, e.g. multicast
    • H04L12/189Arrangements for providing special services to substations for broadcast or conference, e.g. multicast in combination with wireless systems
    • 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 terminal communications, and in particular, to a method and apparatus for message transmission. Background technique
  • the message module is a must-have feature for all mobile phones today.
  • the message module includes message editing, receiving, message storage, message sending, and message reading.
  • the editing and reading of messages is an important part of the message function. Traditional editing and reading are handled separately, that is: when editing, only one or more people can be edited, and only one message of one contact can be viewed at a time.
  • Traditional editing and reading are handled separately, that is: when editing, only one or more people can be edited, and only one message of one contact can be viewed at a time.
  • chat mode text message function
  • This kind of good operation mode changed the tedious experience state of the previous operation, and became a bright spot favored by many mobile phone manufacturers.
  • the chat mode that is, the messages in the previous message inbox and the outbox are arranged in time by contact to form a plurality of messages displayed on the chat interface, and the interface can not only view a group of received and The content of the message that has been sent can also be edited immediately to send a new message, and the result is added to the message content again after the transmission.
  • the chat mode SMS function brings a good user experience to the user, but with the development of message communication, the single-person chat mode function also exposes some of its shortcomings. If someone’s mobile phone has no timely chat software, I want to To discuss or discuss something with multiple people, the single-person chat mode can't be done. Summary of the invention
  • the technical problem to be solved by the present invention is to provide a method and apparatus for message transmission to implement a multi-person chat function on a mobile phone terminal.
  • the present invention provides a method for message transmission, which is applied to a mobile terminal, and includes:
  • the above method also has the following features:
  • the predetermined format includes four segments, the first segment fills the identifier indicating the multi-person chat, the second segment fills the number of the plurality of contacts that need to be chat, the third segment fills the contact number end character, and the fourth segment fills The content information, wherein
  • the contact number terminator is a first terminator, indicating that the message is sent to all contacts filled in the second segment; the contact number terminator is a second terminator containing n, indicating that the message is sent to The second segment is filled with the nth contact, where ln is the number of contacts filled in the second segment.
  • the above method further has the following features:
  • the method further includes:
  • the corresponding contact information After receiving the exit chat message sent by the mobile terminal corresponding to any one of the contact information, the corresponding contact information is deleted on the chat interface.
  • the above method further has the following features:
  • the method further includes:
  • the mobile phone terminal corresponding to the contact information After receiving the message, the mobile phone terminal corresponding to the contact information, if the message is identified as the predetermined format, starts a chat interface, and removes the content information from the contact information corresponding to the terminal. All the contact information and the contact information corresponding to the terminal that sends the message are displayed in the chat interface.
  • the present invention further provides a device for message transmission, which is applied to a mobile phone terminal, and includes:
  • a chat module configured to receive, on the chat interface, multiple contact information that needs to be chatted and content information edited by the user;
  • a packaging module configured to package the content information and the contact information into a first message in a predetermined format;
  • the sending module is configured to send the first message to the mobile phone terminal corresponding to the contact information.
  • the above device also has the following features:
  • the packaging module the predetermined format for packaging the message includes four segments, the first segment is filled with an identifier indicating a multi-person chat, the second segment is filled with the number of the plurality of contacts that need to be chat, and the third segment is padded.
  • the end number of the contact number, the fourth paragraph is filled with the content information, wherein
  • the contact number terminator is a first terminator, indicating that the message is sent to all contacts filled in the second segment; the contact number terminator is a second terminator containing n, indicating that the message is sent to The nth segment is filled with the nth contact, where 1 ⁇ is the number of contacts filled in the second segment.
  • the chat module is further configured to delete the selected contact information on the multi-person chat interface.
  • the above device also has the following features:
  • the chat module is further configured to delete the corresponding contact information on the chat interface after receiving the exit chat message sent by the corresponding mobile terminal of the contact information.
  • the chat module includes:
  • a display unit configured to: the content information carried by the second message, the contact information carried by all the second messages except the contact information corresponding to the terminal, and the terminal that sends the second message Contact information is displayed in the chat interface.
  • FIG. 1 is a schematic diagram of an apparatus for message transmission according to an embodiment of the present invention
  • FIG. 2 is a flowchart of a method for message transmission according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram of a chat interface in an embodiment of the present invention.
  • FIG. 1 is a schematic diagram of an apparatus for message transmission according to an embodiment of the present invention.
  • the apparatus of this embodiment is applied to a mobile phone terminal.
  • the method includes: a chat module, a packaging module, and a sending module, where the chat module is set to Receiving a plurality of contact information that needs to be chatted and content information edited by the user on the chat interface;
  • a packaging module configured to package the content information and the contact information into a first message in a predetermined format
  • a sending module configured to send the first message to the mobile phone terminal corresponding to the contact information.
  • the chat module is further configured to add or delete contact information on the multi-person chat interface; and may further be configured to: after receiving the exit chat message sent by the mobile terminal corresponding to any one of the contact information, The corresponding contact information is deleted on the chat interface.
  • the contact number terminator is a first terminator, indicating that the message is sent to all contacts filled in the second segment; the contact number terminator is a second terminator containing n, indicating that the message is sent to The second segment is filled with the nth contact, where ln is the number of contacts filled in the second segment.
  • the chat module may include: an identification unit, a startup unit, and a display unit, where An identifying unit, configured to identify whether the received second message is in the predetermined format; and the starting unit is configured to start a chat interface if the identifying unit identifies that the received message is in the predetermined format;
  • a display unit configured to set the content information carried by the second message, the contact information carried by the second message except the contact information corresponding to the local terminal, and the terminal corresponding to the terminal that sends the second message People information, displayed in the chat interface.
  • the mobile terminal can add multiple contacts that need to chat in the message multi-person chat interface, and can add or delete a contact in the chat interface during the chat process.
  • the mobile terminal specifically packages the entire message after editing the message, and sends it through standard SMS or long SMS. It can send all messages to all the chat rooms, or send a message to a contact separately. Protect message privacy.
  • the method may further comprise the steps of:
  • the mobile phone terminal corresponding to the contact information After receiving the message, the mobile phone terminal corresponding to the contact information, if the message is identified as the predetermined format, starts a chat interface, and removes the content information, and removes contact information corresponding to the terminal. All of the contact information and the contact information corresponding to the terminal that sends the message are displayed in the chat interface.
  • the mobile terminal can recognize the message of the multi-person chat format, and correspondingly launch the chat interface, open the chat window, export and display all the chat people in the message, and also send the chat message as the sender.
  • each mobile phone terminal participating in the chat may display the information of the corresponding contact exit on the chat interface. So when a contact closes the chat interface and exits the chat room, and Other contacts can know. At the same time, the user experience is particularly good, and the chat function of the mobile terminal is greatly improved.
  • This mobile phone is represented by A (number is AAAAA), and other mobile phones are B (BBBBB), C (CCCCC), D (DDDDD), E (EEEEE), and edit the content to be chat "Hello, Every one!.
  • Step 102 When the point is sent, start to package the text information
  • the first paragraph is filled with an identifier indicating multi-person chat (for example, OxFF), which occupies one byte; the second paragraph is filled with the contact number to be chatted, with the interval ';, interval (for example: BBBBB; CCCCC; DDDDD; EEEEE ) , occupy one byte; of course, you can also use ", " ", ", etc. instead.
  • an identifier indicating multi-person chat for example, OxFF
  • the third paragraph is filled with the contact number terminator, occupying one byte. If all contacts are sent, the contact number terminator is OxFF. If it is whispering with the nth contact, the contact number terminator For OxFn, where ln is the number of contacts filled in the second paragraph.
  • the fourth paragraph is filled with the content to be chatted (for example, Hello, Every one!), encoded in USC2, one character occupies two bytes.
  • the packaged content is:
  • Step 201 As the receiving end (B), after receiving such a message, the decoding of the message body begins. First, if the first byte is "OxFF", the message is recognized as a multi-person chat message, and at the same time, multiple messages are started. People chat interface, if the first byte is not "OxFF", then go to the normal process, browse ordinary messages.
  • Step 202 Parse the chat person address
  • Step 203 Determine whether it is a single chat or a group chat
  • the subsequent characters are treated as chat content, and decoded by UCS2, and the decoded content is filled into the content area (2) shown in Fig. 3, such as: "A: Hello, Every one !. If the chatter A does not want to chat, he can exit the chat room and send the content "ffee" to all chat contacts;
  • this SMS is the multi-person chat message invented in this article; if it is not in the first byte, it means the first part of the content (contact area) ends, use this flag Said.
  • OxFn Indicates the end of the first part (contact area) in the content. It is indicated by this flag, which is different from OxFF as the end flag, and n means that the sending terminal sends a private message to a receiving terminal during the chat.
  • OxEE Used after OxFF, indicating that a terminal wants to exit the chat room and sends OxFFEE to exit.
  • the above technical solution provides a method and device for transmitting a message to implement a multi-person chat function on a mobile phone terminal.
  • the mobile phone terminal corresponding to the person information realizes multi-person chat and increases the user experience.

Landscapes

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

Abstract

本发明提供一种消息传输的方法及装置,该方法包括:在聊天界面上接收需要聊天的多个联系人信息和用户编辑的内容信息;将所述内容信息与所述联系人信息打包成预定格式的消息;将所述消息发送给与所述联系人信息对应的手机终端。根据本发明可以在手机终端上实现多人聊天的功能。

Description

一种消息传输的方法及装置
技术领域
本发明涉及终端通信领域, 特别是涉及一种消息传输的方法及装置。 背景技术
消息模块是现在所有手机必备的功能。 消息模块包括消息的编辑、接收、 消息存储、 消息发送、 消息阅读。 消息的编辑和阅读是消息功能的一个重要 部分, 传统的编辑和阅读是分开处理的, 即: 编辑时只能编辑消息发送一个 或多个人, 阅读时一次只能看一个联系人的一条消息, 在手机发展速度越来 越快的今天,这种传统的消息编辑查看方式越来越不能满足人们的体验需求。
后来聊天模式短信功能问世, 这种良好的操作方式一改以前的操作单调 乏味的体验状态, 成为了众多手机厂商青睐的一个亮点。 何为聊天模式, 就 是把以前的消息收件箱和发件箱中的消息按联系人按时间先后排列起来组成 多条消息方式显示在聊天界面上, 而且这个界面不仅能查看一组收到和已经 发送的消息内容, 还可以立即编辑一条新消息进行发送, 发送后结果再次追 加到消息内容中。
聊天模式短信功能为用户带来了很好的用户体验, 但随着消息通信的日 益发展, 单人聊天模式功能也暴露出了它的一些不足, 如果某人的手机没有 什么及时聊天软件, 想要和多个人讨论或商量某个事情, 单人聊天模式是办 不到了。 发明内容
本发明要解决的技术问题是提供一种消息传输的方法及装置, 以在手机 终端上实现多人聊天的功能。
为了解决上述技术问题, 本发明提供了一种消息传输的方法, 应用于手 机终端, 包括:
在聊天界面上接收需要聊天的多个联系人信息和用户编辑的内容信息; 将所述内容信息与所述联系人信息打包成预定格式的消息; 将所述消息发送给与所述联系人信息对应的手机终端。
优选地, 上述方法还具有下面特点:
所述预定格式包括四段, 第一段填充指示多人聊天的标志符, 第二段填 充所述需要聊天的多个联系人的号码, 第三段填充联系人号码结束符, 第四 段填充所述内容信息, 其中,
所述联系人号码结束符为第一结束符, 表示该条消息发送给第二段填充 的所有联系人; 所述联系人号码结束符为包含 n的第二结束符, 表示该条消 息发送给第二段填充的第 n个联系人, 其中, l n 第二段填充的联系人的 个数。
优选地, 上述方法还具有下面特点: 所述在聊天界面上接收需要聊天的 多个联系人信息的步骤之后还包括: 在多人聊天界面上删除选定的联系人信 息。
优选地, 上述方法还具有下面特点: 该方法还包括:
若接收到所述联系人信息中的任一个对应的手机终端发送的退出聊天消 息后, 在所述聊天界面上删除相应的联系人信息。
优选地, 上述方法还具有下面特点: 该方法还包括:
所述联系人信息对应的手机终端接收到所述消息后, 若识别出所述消息 为所述预定格式, 则启动聊天界面, 将所述内容信息、 除去与本终端对应的 联系人信息外的所有所述联系人信息、 和发送所述消息的终端对应的联系人 信息, 显示在该聊天界面中。
为了解决上述问题, 本发明还提供了一种消息传输的装置, 应用于手机 终端, 包括:
聊天模块, 设置为在聊天界面上接收需要聊天的多个联系人信息和用户 编辑的内容信息;
打包模块, 设置为将所述内容信息与所述联系人信息打包成预定格式的 第一消息; 发送模块, 设置为将所述第一消息发送给与所述联系人信息对应的手机 终端。
优选地, 上述装置还具有下面特点:
所述打包模块, 打包所述消息的所述预定格式包括四段, 第一段填充指 示多人聊天的标志符, 第二段填充所述需要聊天的多个联系人的号码, 第三 段填充联系人号码结束符, 第四段填充所述内容信息, 其中,
所述联系人号码结束符为第一结束符, 表示该条消息发送给第二段填充 的所有联系人; 所述联系人号码结束符为包含 η的第二结束符, 表示该条消 息发送给第二段填充的第 η个联系人, 其中, 1 η 第二段填充的联系人的 个数。
优选地, 上述装置还具有下面特点:
所述聊天模块, 还设置为在多人聊天界面上删除选定的联系人信息。 优选地, 上述装置还具有下面特点:
所述聊天模块, 还设置为若接收到所述联系人信息中的任一个对应的手 机终端发送的退出聊天消息后, 在所述聊天界面上删除相应的联系人信息。
优选地, 上述装置还具有下面特点: 所述聊天模块包括:
识别单元, 设置为识别接收到的第二消息是否为所述预定格式; 启动单元, 设置为在所述识别单元识别接收到的消息为所述预定格式的 情况下, 启动一聊天界面;
显示单元, 设置为将所述第二消息携带的内容信息、 除去与本终端对应 的联系人信息外的所有所述第二消息携带的联系人信息、 和发送所述第二消 息的终端对应的联系人信息, 显示在该聊天界面中。
综上, 上述技术方案提供一种消息传输的方法及装置, 可以在手机终端 上实现多人聊天的功能, 增加用户的体验。 附图概述
图 1为本发明实施例的消息传输的装置的示意图; 图 2为本发明实施例的消息传输的方法的流程图;
图 3为本发明实施例中的聊天界面的示意图。
本发明的较佳实施方式
下文中将结合附图对本发明的实施例进行详细说明。 需要说明的是, 在 不冲突的情况下, 本申请中的实施例及实施例中的特征可以相互任意组合。
图 1为本发明实施例的消息传输的装置的示意图, 本实施例的装置应用 于手机终端, 如图 1所示, 包括: 聊天模块、 打包模块和发送模块, 其中, 聊天模块, 设置为在聊天界面上接收需要聊天的多个联系人信息和用户 编辑的内容信息;
打包模块, 设置为将所述内容信息与所述联系人信息打包成预定格式的 第一消息;
发送模块, 设置为将所述第一消息发送给与所述联系人信息对应的手机 终端。
其中, 所述聊天模块, 还设置为在多人聊天界面上增加或删除联系人信 息; 还可以设置为若接收到所述联系人信息中的任一个对应的手机终端发送 的退出聊天消息后, 在所述聊天界面上删除相应的联系人信息。
其中, 所述打包模块, 打包所述消息的所述预定格式包括四段, 第一段 填充指示多人聊天的标志符,第二段填充所述需要聊天的多个联系人的号码, 第三段填充联系人号码结束符, 第四段填充所述内容信息, 其中,
所述联系人号码结束符为第一结束符, 表示该条消息发送给第二段填充 的所有联系人; 所述联系人号码结束符为包含 n的第二结束符, 表示该条消 息发送给第二段填充的第 n个联系人, 其中, l n 第二段填充的联系人的 个数。
在另一实施例中, 所述聊天模块可以包括: 识别单元、 启动单元和显示 单元, 其中, 识别单元, 设置为识别接收到的第二消息是否为所述预定格式; 启动单元, 设置为在所述识别单元识别接收到的消息为所述预定格式的 情况下, 启动一聊天界面;
显示单元, 设置为将所述第二消息携带的内容信息、 除去与本终端对应 的联系人信息外的所有所述第二消息携带的联系人信息和发送所述第二消息 的终端对应的联系人信息, 显示在该聊天界面中。
图 2为本发明实施例所提供的消息传输的方法的流程图, 该方法应用于 手机终端, 作为发送端, 如图 2所示, 包括下面步骤:
S10、在聊天界面上接收需要聊天的多个联系人信息和用户编辑的内容信 息;
S20、 将所述内容信息与所述联系人信息打包成预定格式的消息;
S30、 将所述消息发送给与所述联系人信息对应的手机终端。
作为发送端, 手机终端可以在消息多人聊天界面加入需要聊天的多个联 系人, 并可以在聊天过程中, 在聊天界面中添加或删除某个联系人。
作为发送端, 手机终端在编辑完消息后对整个消息进行特殊打包, 通过 标准短信或长短信方式发送, 可以对全部聊天室内全部人员, 也可以单独对 某个联系人发消息, 可以很好地保护消息隐私。
在接收端侧, 本方法还可以包括步骤:
S40、所述联系人信息对应的手机终端接收到所述消息后, 若识别出所述 消息为所述预定格式, 则启动聊天界面, 将所述内容信息、 除去与本终端对 应的联系人信息外的所有所述联系人信息和发送所述消息的终端对应的联系 人信息, 显示在该聊天界面中。
作为接收端, 手机终端可以识别多人聊天格式的消息, 并相应的启动聊 天界面, 打开聊天窗口, 把消息中的所有聊天人导出并显示, 还可以作为发 送方发送聊天消息。
在一实施例中, 参与聊天的各个手机终端若接收到所述联系人信息中的 任一个对应的手机终端发送的退出聊天消息后, 可以在所述聊天界面上显示 相应联系人退出的信息。 这样当某一联系人关闭聊天界面退出聊天室时, 且 其他联系人可以知道。 同时沟通, 用户体验特别好, 大大提高手机终端的聊天功能。
下面以一应用示例对本发明的实施方式进行详细的说明。
发送端:
步骤 101 : 在聊天界面添加需要发送的联系人 N个(可以限制 N最大为 5 ) , 这里以 N=5为例。
本手机以 A (号码为 AAAAA )表示, 其它手机分别为 B ( BBBBB ) 、 C ( CCCCC ) 、 D ( DDDDD ) 、 E ( EEEEE ) , 编辑要聊天的内容 "Hello,Every one!" 。
步骤 102: 点发送时, 开始对文本信息打包;
本实施例的打包规则为:
第 1段用指示多人聊天的标志符填充(例如, OxFF ) , 占用一个字节; 第 2段用需要聊天的联系人号码填充, 中间以 '; , 间隔(例如: BBBBB; CCCCC; DDDDD; EEEEE ) , 占用一个字节; 当然也可以用 "、 " ", " 等来代替。
第 3段用联系人号码结束符填充, 占用一个字节, 如果发送时为全部联 系人, 则联系人号码结束符为 OxFF, 如果是和第 n个联系人说悄悄话, 则联 系人号码结束符为 OxFn, 其中, l n 第二段填充的联系人的个数。
前 3段编码字符如果不是 2的倍数, 则在 OxFF前加 0x00。
第 4段用要聊天的内容填充(例如, Hello,Every one! ) , 用 USC2编码, 一个字符占用两个字节。
以步骤 101为例, 打包出的内容为:
" ff42424242423b43434343433b44444444443b454545454500ff004800650 06c006c006f002c004500760065007200790020006f006e00650021" 。
步骤 103: 把打包后的内容传到短信发送模块, 按标准短信发送; 作为发送端, 如果选择选择对某人(B )说悄悄话, 则交给短信发送模块 的收件人就是 BBBBB;如果选择默认全部聊天,则收件人为所有人(BBBBB; CCCCC; DDDDD; EEEEE ) 。
作为发送端时, 可以以标准短信来实现群聊, 也可以对服务器端进行简 单修改, 让服务器端来对群发短信进行转发, 发送终端只需要发一条短信到 服务器, 地址写上群聊的所有人, 用分号相隔, 内容中加入一个头信息 OxFF 即可。服务器端对内容进行识别,如果发现第一个字节为 OxFF,即用步骤 102 进行打包再分发给所有终端。
接收端:
步骤 201 : 作为接收端(B ) , 收到一条这样的信息后, 开始对消息正文 解码, 首先如果第一个字节为 "OxFF" , 则识别到该消息为多人聊天消息, 同时启动多人聊天界面, 如果第一个字节不是 "OxFF" , 则走普通流程, 浏 览普通消息。
步骤 202: 解析聊天人地址;
往后搜索, 遇到联系人终止符 "0χ3Β" , 则记录一个聊天联系人地址到 一个字符串 BUF(内存块),直到所有联系人都填充到 BUF( BBBBB; CCCCC; DDDDD; EEEEE ) , 在字符串最后加上发件人 A的地址, 即为 (BBBBB; CCCCC; DDDDD; EEEEE; AAAAA ) , 在字符串中去掉本机号码, 即为 ( CCCCC; DDDDD; EEEEE; AAAAA ) , 则最后聊天界面的聊天人列表为 ( CCCCC; DDDDD; EEEEE; AAAAA ) 。
步骤 203: 判断是单聊还是群聊;
往后搜索, 遇到终止符 "OxFn" , 则记录当前这条消息是悄悄话还是群 聊, 如果终止符是 "OxFn" 则为悄悄话, 则把图 3中的内容区域( 1 )标记为
"这条消息的发件人对你说: (A对你说: ) " ; 如果终止符是 "OxFF" , 则为群聊, 把区域(1 )标记为 "A: " ;
步骤 204: 解析聊天内容;
遇到终止符 "OxFn" 后, 把以后的字符都当作为聊天内容, 且用 UCS2 解码, 解码后的内容填充到图 3所示的内容区域( 2 ) , 如: "A: Hello,Every one!" 。 如果聊天人 A不想聊了, 可以退出聊天室, 发送内容为 "ffee" 到所有 聊天联系人;
其他几个聊天人(如 B )收到 A的这条退出消息后, 先看是否是 "OxFF" 开始, 如果不是, 则打开一般短信模块显示, 如果是, 再判断第二个字节是 否是 "ΟχΕΕ" , 如果是, 则 B在其的聊天人列表中删除 A, 如果不是, 则忽 略此条消息。
本实施例应用到的打包字段如下:
OxFF: 如果是发送内容中第一个字节, 代表本短信是本文所发明的多人 聊天短信; 如果不是在第一个字节, 代表内容中第一部分(联系人区域)结 束, 用此标志表示。
OxFn: 代表内容中第一部分(联系人区域)结束, 用此标志表示, 不同 于 OxFF为结束标志, n代表发送终端在聊天时向某接收终端发悄悄话。
0x3B: 即 "; " , 用此符号把各个联系人串起来。
0x00: 在 OxFF或在 OxFn前使用, 当第一部分(联系人区域 ) 的字符数 总和为奇数时 , 在 OxFF或在 OxFn前加上此标志作填充作用。
OxEE: 在 OxFF后使用, 表示某个终端想退出聊天室, 发送 OxFFEE表示 退出。
上述打包字段仅是示例, 当然可以用其他的标志符填充。
本领域普通技术人员可以理解上述方法中的全部或部分步骤可通过程序 来指令相关硬件完成, 所述程序可以存储于计算机可读存储介质中, 如只读 存储器、 磁盘或光盘等。 可选地, 上述实施例的全部或部分步骤也可以使用 一个或多个集成电路来实现。 相应地, 上述实施例中的各模块 /单元可以釆用 硬件的形式实现, 也可以釆用软件功能模块的形式实现。 本发明的实施方式 不限制于任何特定形式的硬件和软件的结合。
以上仅为本发明的优选实施例, 当然, 本发明还可有其他多种实施例, 在不背离本发明精神及其实质的情况下, 熟悉本领域的技术人员当可根据本 发明的实施方式作出各种相应的改变和变形, 但这些相应的改变和变形都应 属于本发明所附的权利要求的保护范围。
工业实用性
上述技术方案提供一种消息传输的方法及装置, 以在手机终端上实现多 人聊天的功能。 通过在聊天界面上接收需要聊天的多个联系人信息和用户编 辑的内容信息、 将所述内容信息与所述联系人信息打包成预定格式的消息, 以及将所述消息发送给与所述联系人信息对应的手机终端, 实现多人聊天, 增加用户的体验。

Claims

权 利 要 求 书
1、 一种消息传输的方法, 应用于手机终端, 所述方法包括:
在聊天界面上接收需要聊天的多个联系人信息和用户编辑的内容信息; 将所述内容信息与所述联系人信息打包成预定格式的消息; 以及 将所述消息发送给与所述联系人信息对应的手机终端。
2、 如权利要求 1所述的方法, 其中:
所述预定格式包括四段, 第一段填充指示多人聊天的标志符, 第二段填 充所述需要聊天的多个联系人的号码, 第三段填充联系人号码结束符, 第四 段填充所述内容信息, 其中,
所述联系人号码结束符为第一结束符, 表示该条消息发送给第二段填充 的所有联系人; 所述联系人号码结束符为包含 n的第二结束符, 表示该条消 息发送给第二段填充的第 n个联系人, 其中, l n 第二段填充的联系人的 个数。
3、 如权利要求 1所述的方法, 其中: 所述在聊天界面上接收需要聊天的 多个联系人信息的步骤之后, 所述方法还包括:
在多人聊天界面上删除选定的联系人信息。
4、 如权利要求 1所述的方法, 其还包括:
若接收到所述联系人信息中的任一个对应的手机终端发送的退出聊天消 息后, 在所述聊天界面上删除相应的联系人信息。
5、 如权利要求 1-3任一项所述的方法, 其还包括:
所述联系人信息对应的手机终端接收到所述消息后, 若识别出所述消息 为所述预定格式, 则启动聊天界面, 将所述内容信息、 除去与本终端对应的 联系人信息外的所有所述联系人信息、 和发送所述消息的终端对应的联系人 信息, 显示在该聊天界面中。
6、 一种消息传输的装置, 应用于手机终端, 所述装置包括:
聊天模块, 其设置为在聊天界面上接收需要聊天的多个联系人信息和用 户编辑的内容信息; 打包模块, 其设置为将所述内容信息与所述联系人信息打包成预定格式 的第一消息; 以及
发送模块, 其设置为将所述第一消息发送给与所述联系人信息对应的手 机终端。
7、 如权利要求 6所述的装置, 其中:
所述打包模块是设置为: 其打包所述消息的所述预定格式包括四段, 第 一段填充指示多人聊天的标志符, 第二段填充所述需要聊天的多个联系人的 号码, 第三段填充联系人号码结束符, 第四段填充所述内容信息, 其中, 所述联系人号码结束符为第一结束符, 表示该条消息发送给第二段填充 的所有联系人; 所述联系人号码结束符为包含 η的第二结束符, 表示该条消 息发送给第二段填充的第 η个联系人, 其中, 1 η 第二段填充的联系人的 个数。
8、 如权利要求 6所述的装置, 其中:
所述聊天模块, 还设置为在多人聊天界面上删除选定的联系人信息。
9、 如权利要求 6-8任一项所述的装置, 其中:
所述聊天模块还设置为: 若接收到所述联系人信息中的任一个对应的手 机终端发送的退出聊天消息后, 在所述聊天界面上删除相应的联系人信息。
10、 如权利要求 6所述的装置, 其中: 所述聊天模块包括:
识别单元, 其设置为识别接收到的第二消息是否为所述预定格式; 启动单元, 其设置为: 在所述识别单元识别接收到的消息为所述预定格 式的情况下, 启动一聊天界面; 以及
显示单元, 其设置为: 将所述第二消息携带的内容信息、 除去与本终端 对应的联系人信息外的所有所述第二消息携带的联系人信息、 和发送所述第 二消息的终端对应的联系人信息, 显示在该聊天界面中。
PCT/CN2011/080018 2011-03-10 2011-09-22 一种消息传输的方法及装置 WO2012119448A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110057624.3 2011-03-10
CN201110057624.3A CN102130997B (zh) 2011-03-10 2011-03-10 一种消息传输的方法及装置

Publications (1)

Publication Number Publication Date
WO2012119448A1 true WO2012119448A1 (zh) 2012-09-13

Family

ID=44268884

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/080018 WO2012119448A1 (zh) 2011-03-10 2011-09-22 一种消息传输的方法及装置

Country Status (2)

Country Link
CN (1) CN102130997B (zh)
WO (1) WO2012119448A1 (zh)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102130997B (zh) * 2011-03-10 2014-02-19 中兴通讯股份有限公司南京分公司 一种消息传输的方法及装置
CN102625246A (zh) * 2012-02-17 2012-08-01 深圳市金立通信设备有限公司 一种手机短信群聊系统及方法
CN107168974B (zh) * 2016-03-08 2020-09-25 腾讯科技(深圳)有限公司 显示项相关内容、社交类应用中消息的显示控制方法和装置
CN107800609B (zh) * 2016-09-05 2021-06-01 阿里巴巴集团控股有限公司 通讯方法及装置

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1434623A (zh) * 2002-01-23 2003-08-06 英业达集团(上海)电子技术有限公司 通过讯息传送接收实现多方同时聊天互动的方法
CN1933619A (zh) * 2006-10-25 2007-03-21 华为技术有限公司 一种短信群发的方法及短信中心
CN1937790A (zh) * 2006-09-30 2007-03-28 华为技术有限公司 短消息群组聊天的实现方法及装置
US20100005402A1 (en) * 2008-07-01 2010-01-07 International Business Machines Corporation System and Apparatus for Whispering in Group Chats
CN102130997A (zh) * 2011-03-10 2011-07-20 中兴通讯股份有限公司 一种消息传输的方法及装置

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1434623A (zh) * 2002-01-23 2003-08-06 英业达集团(上海)电子技术有限公司 通过讯息传送接收实现多方同时聊天互动的方法
CN1937790A (zh) * 2006-09-30 2007-03-28 华为技术有限公司 短消息群组聊天的实现方法及装置
CN1933619A (zh) * 2006-10-25 2007-03-21 华为技术有限公司 一种短信群发的方法及短信中心
US20100005402A1 (en) * 2008-07-01 2010-01-07 International Business Machines Corporation System and Apparatus for Whispering in Group Chats
CN102130997A (zh) * 2011-03-10 2011-07-20 中兴通讯股份有限公司 一种消息传输的方法及装置

Also Published As

Publication number Publication date
CN102130997B (zh) 2014-02-19
CN102130997A (zh) 2011-07-20

Similar Documents

Publication Publication Date Title
US9998602B2 (en) Voice communications with real-time status notifications
KR101544518B1 (ko) 마이크로블로그 메시지를 공유하는 방법, 장치 및 시스템
KR100784970B1 (ko) 모바일 메신저 서비스 이용 중 음성 메시지를 전송하는이동통신단말기 및 그 방법
JP4437124B2 (ja) マルチメディアメッセージ通信サービス
US8155636B2 (en) Systems and methods for remotely controlling mobile stations
WO2015081744A1 (zh) 一种留言方法和系统
JP6129413B2 (ja) プッシュメッセージの信頼性判断のためのメッセージングシステム
WO2014183267A1 (zh) 消息发送方法、消息阅读通知方法、消息接收方法及装置
WO2012119448A1 (zh) 一种消息传输的方法及装置
CN103166832A (zh) 一种发送消息的方法和服务器
CN104426685B (zh) 信息管理方法及装置
WO2014094520A1 (zh) 头像共享方法、装置及系统
US9391940B2 (en) Typing indicator for IMAP messaging
CN104683212B (zh) 消息处理方法与系统
EP2448226A1 (en) Mobile phone messages processing method and mobile phone
CN101179767A (zh) 多媒体信息限制操作方法、发送终端、接收终端及系统
WO2014187397A1 (zh) 多媒体消息的发布方法及装置
CN103650417B (zh) 在通用即插即用网络环境中管理语音邮件的方法和系统
US20170142215A1 (en) Relaying mobile communications
EP3664423B1 (en) Incoming call voice calling method and terminal
CN105516933A (zh) 消息处理方法、装置、移动终端及服务器
CN106385516A (zh) 一种设置业务转移的方法、装置及终端
TWI267273B (en) Method and mobile apparatus of receiving a multimedia message
CN101808297B (zh) 移动终端多媒体信息的收发方法和控制装置
WO2014205910A1 (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: 11860677

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: 11860677

Country of ref document: EP

Kind code of ref document: A1