WO2011063618A1 - 一种路由选择方法和装置 - Google Patents

一种路由选择方法和装置 Download PDF

Info

Publication number
WO2011063618A1
WO2011063618A1 PCT/CN2010/070409 CN2010070409W WO2011063618A1 WO 2011063618 A1 WO2011063618 A1 WO 2011063618A1 CN 2010070409 W CN2010070409 W CN 2010070409W WO 2011063618 A1 WO2011063618 A1 WO 2011063618A1
Authority
WO
WIPO (PCT)
Prior art keywords
data
sent
gprs
cdma
data transmission
Prior art date
Application number
PCT/CN2010/070409
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 WO2011063618A1 publication Critical patent/WO2011063618A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W72/00Local resource management
    • H04W72/50Allocation or scheduling criteria for wireless resources
    • H04W72/54Allocation or scheduling criteria for wireless resources based on quality criteria
    • H04W72/542Allocation or scheduling criteria for wireless resources based on quality criteria using measured or perceived quality

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a routing method and apparatus.
  • SMS Short Message Service
  • the staff of each site generally uses the mobile terminal and the like to send the on-site business data to the back-end data server through SMS (Short Message Service).
  • SMS Short Message Service
  • the strength of wireless signals is not high.
  • the length of information sent by SMS is limited to 140 bytes.
  • the business data that each site needs to send to the data server may include: sales volume, sales, price, discount, VIP information, promotion categories, returns, inventory, sales activity records, installation information, maintenance information, etc. Type of data. Therefore, the amount of data sent often exceeds the maximum that a short message can carry, and is divided into multiple transmissions, so the transmission efficiency of the service data is very low.
  • an embodiment of the present invention provides a routing method and apparatus to improve transmission efficiency of service data.
  • the embodiment of the invention provides a routing method, including:
  • the data to be sent is sent to the data server using a determined data transmission method.
  • the data transmission manner includes: SMS, GPRS/CDMA IX, and GPRS/CDMA 1X+SMS.
  • the determining a data transmission manner of the to-be-transmitted data according to the detected wireless signal strength is specifically: determining a magnitude relationship between the wireless signal strength and a preset first threshold and a second threshold, if the wireless signal strength is greater than the a first threshold, determining that the data transmission mode is GPRS/CDMA IX;
  • the using the determined data transmission manner to send the to-be-sent data to the data server is specifically:
  • the data to be sent is sent to the data server by using GPRS/CDMA IX to judge whether the data transmission is successful. If not, the data to be sent is sent to the data server by means of SMS.
  • the using the determined data transmission manner to send the to-be-sent data to the data server is specifically:
  • the data to be sent is converted into a short message and sent to the short message gateway, where the short message carries the first data server identifier, so that the short message gateway forwards the received data to the data server indicated by the first data server.
  • the using the determined data transmission manner to send the to-be-sent data to the data server is specifically:
  • the data to be sent is converted into a preset data format
  • the data is sent to the GPRS/CDMA gateway, and the converted data to be forwarded carries the second data server identifier, so that the GPRS/CDMA gateway forwards the received data to the The data server indicated by the second data server identifier.
  • the embodiment of the invention further provides a routing device, including:
  • a detecting unit configured to detect the strength of the wireless signal
  • a routing unit configured to determine a data transmission manner of the data to be sent according to the detected wireless signal strength
  • a data sending unit configured to send the to-be-sent data to the data server by using the determined data transmission manner.
  • the routing unit includes:
  • a data module configured to store a first threshold and a second threshold, where the first threshold is greater than a second threshold; a routing module, configured to determine a relationship between the wireless signal strength and a preset first threshold and a second threshold, if the wireless signal strength is greater than the first threshold, determining that the data transmission mode is GPRS/CDMA IX; If the wireless signal strength is less than the second threshold, determine that the data transmission mode is SMS; otherwise, determine that the data transmission mode is GPRS/CDMA 1X+SMS.
  • the data sending unit includes:
  • a first sending module configured to send data to be sent to the data server by using a GPRS/CDMA IX mode
  • a judging module configured to determine whether the data to be sent is successfully transmitted using the GPRS/CDMA IX mode
  • the second sending module is configured to: when the determining result of the module is negative, send the to-be-sent data to the data server by using an SMS manner.
  • the data sending unit is specifically configured to:
  • the data sending unit is specifically configured to: after converting the to-be-transmitted data into a preset data format, send the data to the GPRS/CDMA gateway, and carry the converted data to be forwarded.
  • the second data server identifies the GPRS/CDMA gateway forwarding the received data to the data server indicated by the second data server identification.
  • the wireless signal strength is detected, and the data transmission mode used is determined according to the relationship between the detected wireless signal strength and the preset threshold, and the data to be transmitted is transmitted by using the determined data transmission mode, so that only the wireless signal strength is poor.
  • the SMS method for data transmission when the wireless signal strength is good, the data transmission is performed by using GPRS/CDMA IX or GPRS/CDMA 1X+SMS, because the data transmission speed in the GPRS/CDMA IX mode is greater than The data transmission speed in the SMS mode, and the amount of data that can be transmitted at one time is much larger than the SMS mode, thus improving the transmission efficiency of the service data.
  • FIG. 1 is a schematic flowchart of a routing method according to an embodiment of the present invention.
  • FIG. 2 is a schematic flowchart of another routing method according to an embodiment of the present invention.
  • FIG. 3 is a flow chart of a method for data transmission by an SMS method according to the present invention.
  • FIG. 4 is a flow chart of a method for data transmission in the GPRS/CDMA IX mode according to the present invention
  • FIG. 5 is a schematic structural diagram of a device for routing according to an embodiment of the present invention.
  • the service data is generally transmitted to the back-end data server by means of SMS.
  • the amount of data that each short message can carry is only 140 bytes, and the SMS mode
  • the requirements for wireless signal strength are low. Therefore, the efficiency of using the SMS method for service data transmission is low, which cannot meet the needs of enterprises to quickly collect field service data.
  • the embodiment of the present invention provides a routing method and apparatus, which can transmit the service data to be transmitted to the data server in the background more quickly under the premise of reliability.
  • Step 101 Detect a wireless signal strength.
  • the method for detecting the wireless signal strength can be automatically obtained based on an interface of a program such as J2ME/Brew/C++/C#.
  • J2ME terminal program calls connection function: (HttpConnection) Connector.open(mURL), sends a connection request to the data server, tries to connect with the data server, receives the status code returned by the data server, according to the status code
  • the time threshold is used to determine the current strength of the wireless signal.
  • Step 102 Determine a data transmission manner of the data to be transmitted according to the detected wireless signal strength.
  • the data transmission manner may include: SMS, GPRS/CDMA IX, and GPRS/CDMA 1X+SMS.
  • GPRS/CDMA IX mode you can use GPRS (General Packet Radio Service, General Wireless Packet Service), CDMA (Code- Division Multiple Access), WCDMA (Wideband Code Division Multiple Access), and Edge (Enhanced Data Rate for GSM Evolution) Specific data communication methods such as GSM evolution technology are not limited herein.
  • GPRS General Packet Radio Service, General Wireless Packet Service
  • CDMA Code- Division Multiple Access
  • WCDMA Wideband Code Division Multiple Access
  • Edge Enhanced Data Rate for GSM Evolution
  • the short message is used to send the corresponding data to the data server.
  • the GPRS/CDMA 1X+SMS mode data transmission is first performed using the GPRS/CDMA IX method. If the data transmission in the GPRS/CDMA IX mode is unsuccessful, the SMS method is used to transmit the data. In this mode, the maximum number of attempts sent by the GPRS/CDMA IX mode can be set, that is, if the data transmission is not successful using the GPRS/CDMA IX mode for the first time, the GPRS/CDMA IX mode will continue to be used for data transmission again. Until the maximum number of attempts is reached, if the data is still sent successfully using the GPRS/CDMA IX mode, the data is sent to be sent by using the SMS method.
  • GPRS/CDMA IX adopts the mode of continuous data transmission.
  • the amount of data transmitted is based on K.
  • the SMS is data segment transmission.
  • the amount of data transmitted is usually calculated in bytes. The two methods are compared to GPRS/CDMA IX.
  • the data transmission rate is greater than the SMS mode.
  • Step 103 Send the to-be-sent data to the data server by using the determined data transmission manner.
  • the terminal selects a data transmission mode according to the strength of the wireless signal, because the data transmission rate in the GPRS/CDMA IX mode is greater than the data transmission rate in the SMS mode, and the amount of data that can be transmitted at one time is far greater.
  • the SMS mode when the wireless signal strength allows, the GPRS/CDMA IX mode is selected for data transmission, which improves the efficiency of data transmission.
  • the GPRS/CDMA IX method has higher requirements on the strength of the wireless signal, and does not guarantee that the terminal can connect to the wireless network when the wireless signal is weak. Therefore, the SMS method needs to be supplemented by GPRS/CDMA IX, when using GPRS.
  • the /CDMA IX method cannot transmit data, it uses the SMS method to ensure reliable data transmission.
  • FIG. 2 is a schematic flowchart of another routing method according to an embodiment of the present invention. A more detailed implementation process is provided on the basis of the route selection method shown in FIG. 1, as shown in FIG. 2, including:
  • Step 201 Detect the wireless signal strength.
  • Step 202 Determine whether the detected wireless signal strength is greater than a first threshold. If yes, go to step 2021. If no, go to step 203.
  • the first threshold is a preset wireless signal strength value, which should ensure that the terminal can successfully connect to the GPRS/CDMA gateway in the GPRS/CDMA IX manner.
  • the wireless signal strength value can be set autonomously in practical applications, and is not limited herein.
  • Step 203 Determine whether the detected wireless signal strength is less than a second threshold. If yes, go to step 2031. If no, go to step 204.
  • the second threshold is a preset maximum wireless signal strength value that can only be transmitted by the SMS method.
  • the first threshold is greater than the second threshold.
  • Step 204 Determine that the data transmission mode is GPRS/CDMA 1X+SMS, and proceed to step 205.
  • Step 206 Determine whether the data is successfully sent, and if yes, end the process; otherwise, enter the step
  • Step 207 Send the data to be sent to the data server by using the SMS method, and the process ends.
  • Step 2021 Determine the data transmission mode as GPRS/CDMA IX; go to step 2022.
  • Step 2022 Send the data to be sent to the data server by using GPRS/CDMA IX, and end the process.
  • Step 2031 Determine the data transmission mode as SMS; go to step 2032.
  • Step 2032 Send the data to be sent to the data server by means of SMS, and the process ends.
  • the above steps can be intuitively seen that the routing selection process in the data transmission process enables the terminal to select a more efficient transmission method for data transmission before transmitting the data.
  • Figure 3 and Figure 4 show the specific process of data transmission in SMS mode and GPRS/CDMA IX mode, respectively.
  • Step 301 Send the data to be sent as a short message to the short message gateway, where the short message carries the first data server identifier.
  • the first data server identifier is an identifier of the destination server.
  • the data volume of the data to be sent may be greater than the maximum data volume of each short message.
  • the data to be sent needs to be stripped according to the data volume of the short message, and corresponding identifiers are set for each data to be sent.
  • the data server side can combine a plurality of to-be-sent data according to the identifier, and can determine, by using the identifier, whether the received data to be sent has a missing problem.
  • Step 302: The short message gateway forwards the received data to the data server indicated by the first data server identifier.
  • Step 401 After the data to be sent is converted into a preset data format, the data to be sent is sent to the GPRS/CDMA gateway, and the converted data to be forwarded carries the second data server identifier.
  • the second data server identifier is an identifier of the destination server.
  • the communication protocol between the terminal and the data server in the GPRS/CDMA IX mode may be an HTTP protocol.
  • Step 402 The GPRS/CDMA gateway forwards the received data to the data server indicated by the second data server identifier.
  • Step A When the collection terminal (such as a mobile phone) needs to establish a connection with the data server to send data, the program in the collection terminal calls the connection function to determine the state between the current terminal and the data server.
  • the collection terminal such as a mobile phone
  • Step B The data server returns the corresponding status value.
  • Step C The collection terminal determines the data transmission mode used according to the returned status value and the response time.
  • the device for routing which can be disposed in the terminal for data collection according to the present invention.
  • the device consists essentially of three units:
  • the detecting unit 510 is configured to detect an intensity of the wireless signal
  • the routing unit 520 is configured to determine, according to the detected wireless signal strength, a data transmission manner of the data to be sent;
  • the data sending unit 530 is configured to send the to-be-sent data to the data server by using the determined data transmission manner.
  • the data sending unit 530 is specifically configured to: send the to-be-sent data to the short message gateway in the form of a short message, where the short message carries the first data server identifier; Forwarding the received data to the first data server identifier Indicated data server.
  • the data sending unit 530 may be specifically configured to: after converting the data to be sent into a preset data format, send the data to the GPRS/CDMA gateway, and carry the converted data to be forwarded.
  • the second data server identifies the GPRS/CDMA gateway forwarding the received data to the data server indicated by the second data server identification.
  • the routing unit 520 can be implemented by the following module: a data module 5201, configured to store a first threshold and a second threshold, where the first threshold is greater than a second threshold;
  • the routing module 5202 is configured to determine a relationship between the wireless signal strength and a preset first threshold and a second threshold. If the wireless signal strength is greater than the first threshold, determine that the data transmission mode is GPRS/CDMA IX. If the wireless signal strength is less than the second threshold, determine that the data transmission mode is SMS; otherwise, determine that the data transmission mode is GPRS/CDMA 1X+SMS.
  • the data transmitting unit 530 is composed of the following modules:
  • the first sending module 5301 is configured to send data to be sent to the data server by using a GPRS/CDMA IX mode;
  • the determining module 5302 is configured to determine whether the data to be sent is successfully sent by using the GPRS/CDMA IX mode;
  • the second sending module 5303 is configured to: when the determining result of the module is negative, send the to-be-sent data to the data server by using an SMS manner.
  • the embodiment of the present invention determines the wireless signal strength, and determines the selected SMS according to the obtained wireless signal strength, GPRS/CDMA, GPRS. / CDMA + SMS in one of three ways for data transmission, when the signal strength allows, select the GPRS / CDMA mode with faster transmission efficiency, only when the GPRS / CDMA mode can not be connected to the server The way of SMS, thus improving the efficiency of data transmission.

Landscapes

  • Engineering & Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Description

一种路由选择方法和装置
本申请要求于 2009 年 11 月 27 日提交中国专利局、 申请号为 200910241288.0、 发明名称为"一种路由选择方法和装置"的中国专利申请的优 先权, 其全部内容通过引用结合在本申请中。
技术领域
本发明涉及通信技术领域, 特别是涉及一种路由选择方法和装置。
背景技术
随着社会经济的快速发展, 对于拥有众多销售店面和连锁网点的企业来 说, 需要将每个店面或网点的现场数据发送至后台的数据服务器, 以便企业即 时制定符合市场规律的营销策略。 因此, 如何节约运营成本、 提高终端采集效 率以制定符合市场规律的营销策略, 成为企业决策者需要考虑的重要问题。
现有技术中,各个企业进行业务数据采集时, 一般由各个现场的工作人员 使用手机等终端通过 SMS ( Short Message Service, 短消息服务)将现场的业 务数据发送给后台的数据服务器。 SMS 是一种存储和转发服务, 对于无线信 号的强度要求不高, 但是, SMS所发送信息的长度被限定在 140个字节以内。 而事实上, 每个现场需要发送给数据服务器的业务数据可能包括: 销售量、 销售额、 价格、 折扣、 VIP信息、 促销类别、 退货、 库存、 销售活动记录、 安装信息、 维修信息等等各种类别的数据。 因此, 发送的数据量往往超出 一条短消息所能够携带的最大限度, 要分为多条进行发送, 因而业务数据 的传输效率很低。
发明内容
为解决上述技术问题, 本发明实施例提供一种路由选择方法及装置, 以提 高业务数据的传输效率。
为此, 本发明实施例采用如下技术方案:
本发明实施例提供一种路由选择方法, 包括:
检测无线信号强度;
根据检测到的无线信号强度确定待发送数据的数据传输方式;
使用确定的数据传输方式将待发送数据发送到数据服务器。
其中, 所述数据传输方式包括: SMS、 GPRS/CDMA IX和 GPRS/CDMA 1X+SMS。
所述根据检测到的无线信号强度确定待发送数据的数据传输方式具体为: 判断所述无线信号强度与预设的第一阈值和第二阈值之间的大小关系, 如果无线信号强度大于所述第一阈值,确定数据传输方式为 GPRS/CDMA IX;
如果无线信号强度小于所述第二阈值, 确定数据传输方式为 SMS;
否则, 确定数据传输方式为 GPRS/CDMA 1X+SMS。
当所述数据传输方式为 GPRS/CDMA 1X+SMS时,所述使用确定的数据 传输方式将待发送数据发送到数据服务器具体为:
使用 GPRS/CDMA IX的方式将待发送数据发送到数据服务器, 判断数 据发送是否成功,如果否,使用 SMS的方式将待发送数据发送到数据服务器。
当所述数据传输方式为 SMS时, 所述使用确定的数据传输方式将待发送 数据发送到数据服务器具体为:
将所述待发送数据转换为短信形式发送到短信网关,所述短信中携带第一 数据服务器标识;以使短信网关将接收到的数据转发给所述第一数据服务器标 识指示的数据服务器。
当所述数据传输方式为 GPRS/CDMA IX时, 所述使用确定的数据传输 方式将待发送数据发送到数据服务器具体为:
将所述待发送数据转换为预设的数据格式后, 发送到 GPRS/CDMA网关, 转换得到的待转发数据中携带第二数据服务器标识, 以使 GPRS/CDMA 网关 将接收到的数据转发给所述第二数据服务器标识指示的数据服务器。
本发明实施例还提供一种路由选择装置, 包括:
检测单元, 用于检测无线信号的强度;
路由选择单元,用于根据检测到的无线信号强度确定待发送数据的数据传 输方式;
数据发送单元,用于使用确定的数据传输方式将待发送数据发送到数据服 务器。
其中, 所述路由选择单元包括:
数据模块, 用于存储第一阈值和第二阈值, 所述第一阈值大于第二阈值; 路由选择模块,用于判断所述无线信号强度与预设的第一阈值和第二阈值 之间的大小关系,如果无线信号强度大于所述第一阈值,确定数据传输方式为 GPRS/CDMA IX; 如果无线信号强度小于所述第二阈值, 确定数据传输方式 为 SMS; 否则, 确定数据传输方式为 GPRS/CDMA 1X+SMS。
当所述数据传输方式为 GPRS/CDMA 1X+SMS时,所述数据发送单元包 括:
第一发送模块, 用于使用 GPRS/CDMA IX方式将待发送数据发送到数 据服务器;
判断模块, 用于判断待发送数据使用 GPRS/CDMA IX方式是否发送成 功;
第二发送模块, 用于判断模块判断结果为否时, 使用 SMS的方式将待发 数据发送到数据服务器。
当所述数据传输方式为 SMS时, 数据发送单元具体用于:
将所述待发送数据以短信的形式发送到短信网关,所述短信中携带第一数 据服务器标识;以使短信网关将接收到的数据转发给所述第一数据服务器标识 指示的数据服务器。
当所述数据传输方式为 GPRS/CDMA IX时, 数据发送单元具体用于: 将所述待发送数据转换为预设的数据格式后, 发送到 GPRS/CDMA网关, 转换得到的待转发数据中携带第二数据服务器标识, 以使 GPRS/CDMA 网关 将接收到的数据转发给所述第二数据服务器标识指示的数据服务器。
对于上述技术方案的技术效果分析如下:
首先检测无线信号强度,根据检测到的无线信号强度与预设阈值之间的关 系确定所使用的数据传输方式,使用确定的数据传输方式进行待发送数据的传 输, 从而只在无线信号强度较差时, 才使用 SMS的方式进行数据传输, 当无 线信号强度较好时,则使用 GPRS/CDMA IX或者 GPRS/CDMA 1X+SMS的方 式进行数据传输,由于 GPRS/CDMA IX方式下的数据传输速度大于 SMS方 式下的数据传输速度, 且, 一次可以传输的数据量远远大于 SMS方式, 因此, 提高了业务数据的传输效率。 附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施 例或现有技术描述中所需要使用的附图作筒单地介绍,显而易见地, 下面描述 中的附图仅仅是本发明中记载的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动的前提下, 还可以根据这些附图获得其他的附图。
图 1为本发明实施例一种路由选择方法流程示意图;
图 2为本发明实施例另一种路由选择方法流程示意图;
图 3为本发明通过 SMS方式进行数据传输的方法流程图;
图 4为本发明通过 GPRS/CDMA IX方式进行数据传输的方法流程图; 图 5为本发明实施例路由选择的装置结构示意图。
具体实施方式
目前在进行现场的业务数据采集时, 一般使用 SMS的方式将业务数据传 输给后台的数据服务器, 在该方式下, 每条短消息所能携带的数据量仅为 140 个字节, 且 SMS方式对无线信号强度的要求较低, 因此, 使用 SMS方式进行 业务数据传输的效率低, 无法满足企业等迅速收集现场业务数据的需要。
因此, 本发明实施例提供了一种路由选择方法和装置, 能够在可靠的前提 下更加快速的将所要传输的业务数据传输给后台的数据服务器。
图 1为本发明实施例一种路由选择方法流程示意图, 如图 1所示, 包括: 步骤 101: 检测无线信号强度。
其中, 所述无线信号强度的检测方法可以基于 J2ME/Brew/C++/C#等程序 的接口自动获取。
以 J2ME模式为例: J2ME 终端程序调用连接函数: (HttpConnection) Connector.open(mURL), 向数据服务器发送连接请求, 与数据服务器试连接, 接收数据服务器返回的状态码,根据所述状态码的时间筏值来判定无线信号当 前的强度。
步骤 102: 根据检测到的无线信号强度确定待发送数据的数据传输方式。 所述数据传输方式可以包括: SMS、 GPRS/CDMA IX和 GPRS/CDMA 1X+SMS。
其中, GPRS/CDMA IX方式下,可以使用 GPRS ( General Packet Radio Service, 通用无线分组业务)、 CDMA ( Code - Division Multiple Access, 码分多址)、 WCDMA ( Wideband Code Division Multiple Access, 宽带码 分多址) 和 Edge ( Enhanced Data Rate for GSM Evolution, 增强型数据 速率 GSM演进技术) 等具体的数据通信方法, 这里不限制。
SMS方式下, 使用短信息向数据服务器发送相应的数据。
GPRS/CDMA 1X+SMS方式下, 先使用 GPRS/CDMA IX方式进行数据传 输, 如果 GPRS/CDMA IX方式下数据传输不成功, 则改用 SMS方式进行所 述数据的发送。 其中, 本方式下, 可以设定 GPRS/CDMA IX方式发送的最大 尝试次数, 即: 如果首次使用 GPRS/CDMA IX方式进行数据发送不成功时, 将继续使用 GPRS/CDMA IX方式重新进行数据发送, 直至达到最大尝试次数 时, 使用 GPRS/CDMA IX方式发送数据仍未成功, 则转为使用 SMS方式发 送所述数据。
GPRS/CDMA IX是采用数据连续传输的模式, 传输的数据量以 K为基本 单位, 而 SMS是数据分段传输, 传输的数据量通常以字节进行计算, 两种方 式比较起来 GPRS/CDMA IX方式下数据传输速率大于 SMS方式。
步骤 103: 使用确定的数据传输方式将待发数据发送到数据服务器。
图 1所示的实施例中, 终端根据无线信号的强度来选择数据传输方式, 由 于 GPRS/CDMA IX方式下数据传输速率大于 SMS方式下的数据传输速率, 而且, 一次可以传输的数据量远远大于 SMS方式, 所以, 当无线信号强度允 许的情况下, 选择 GPRS/CDMA IX的方式进行数据的传输, 提高了数据传输 的效率。 但 GPRS/CDMA IX方式对于无线信号的强度要求较高, 并不能保证 终端可以在无线信号较弱的情况下连接到无线网络, 因此, 需要有 SMS方式 作为 GPRS/CDMA IX的补充, 当用 GPRS/CDMA IX方式无法进行数据传输 的时候, 转而使用 SMS方式, 保证了数据的可靠传输。
图 2为本发明实施例另一种路由选择方法流程示意图,在图 1所示路由选 择方法的基础上给出了更为详细的实现流程, 如图 2所示, 包括:
步骤 201 : 检测无线信号强度。
步骤 202: 判断检测到的无线信号强度是否大于第一阈值, 如果是, 进入 步骤 2021 , 如果否, 进入步骤 203。 其中, 所述的第一阈值为预先设定的无线信号强度值, 该值应可以保证终 端能够以 GPRS/CDMA IX方式成功连接到 GPRS/CDMA网关。所述无线信号 强度值可以在实际应用中自主设置, 这里并不限制。
步骤 203: 判断检测到的无线信号强度是否小于第二阈值, 如果是, 进入 步骤 2031 , 如果否, 进入步骤 204。
其中, 所述的第二阈值为预先设定的只能通过 SMS方式进行数据传送的 最大无线信号强度值。 所述第一阈值大于所述第二阈值。
步骤 204: 确定数据传输方式为 GPRS/CDMA 1X+SMS, 进入步骤 205。 步骤 205: 使用 GPRS/CDMA IX方式将数据发送到数据服务器。
步骤 206: 判断数据是否发送成功, 如果是, 结束流程; 否则, 进入步骤
207。
步骤 207: 使用 SMS方式将待发送数据发送到数据服务器, 流程结束。 步骤 2021: 确定数据传输方式为 GPRS/CDMA IX; 执行步骤 2022。
步骤 2022: 使用 GPRS/CDMA IX方式将待发送数据发送到数据服务器, 并结束流程。
步骤 2031: 确定数据传输方式为 SMS; 执行步骤 2032。
步骤 2032:使用 SMS的方式将待发送数据发送到数据服务器,流程结束。 上述步骤可以直观的看出,在数据发送过程中路由的选择过程,使得终端 在发送数据之前, 可以选择发送效率更高的方式进行数据发送。
图 3和图 4分别为 SMS方式和 GPRS/CDMA IX方式下数据传输的具体 过程。
见图 3所示, SMS方式下终端将待发送数据发送到数据服务器的过程为: 步骤 301 : 将待发送数据以短信形式发送到短信网关, 所述短信中携带第 一数据服务器标识。
其中, 所述的第一数据服务器标识为目的服务器的标识符号。
其中, 待发送数据的数据量可能大于每条短信的最大数据量, 此时, 需要 将待发送数据按照短信的数据量进行分条,并相应为划分得到的每条待发送数 据设置标识,以便数据服务器一侧能够根据所述标识将多条待发送数据组合起 来, 并且, 可以通过所述标识判断接收到的待发送数据是否存在遗漏问题。 步骤 302: 短信网关将接收到的数据转发给所述第一数据服务器标识指示 的数据服务器。
见图 4所示, GPRS/CDMA IX下终端将待发送数据发送到数据服务器的 过程为:
步骤 401: 将待发送数据转换为预设的数据格式后, 发送到 GPRS/CDMA 网关, 转换得到的待转发数据中携带第二数据服务器标识。
其中, 所述的第二数据服务器标识为目的服务器的标识符号。
其中, GPRS/CDMA IX方式下终端与数据服务器之间的通讯协议可以为 HTTP协议。
步骤 402: GPRS/CDMA网关将接收到的数据转发给所述第二数据服务器 标识指示的数据服务器。
以下为一种具体实例, 主要包括以下步骤:
步骤 A: 在采集终端 (如手机) 需要与数据服务器建立连接发送数据时, 采集终端中的程序调用连接函数确定当前终端与数据服务器之间的状态。
步骤 B: 数据服务器返回相应的状态值。
步骤 C: 采集终端根据返回的状态值以及响应的时间, 确定所使用的数据 传输方式。
实现时,可以为不同的状态设置不同的标识,唯一标识一种数据传输方式。 与本发明路由选择的方法相对应的,有路由选择的装置, 可以设置于本发 明所述的进行数据采集的终端中。根据本发明的思想,该装置主要由三个单元 组成:
检测单元 510, 用于检测无线信号的强度;
路由选择单元 520, 用于根据检测到的无线信号强度确定待发送数据的数 据传输方式;
数据发送单元 530, 用于使用确定的数据传输方式将待发送数据发送到数 据服务器。
优选地, 当数据传输方式为 SMS时, 数据发送单元 530具体可以用于: 将所述待发送数据以短信的形式发送到短信网关,所述短信中携带第一数 据服务器标识;以使短信网关将接收到的数据转发给所述第一数据服务器标识 指示的数据服务器。
当数据传输方式为 GPRS/CDMA IX时,数据发送单元 530具体可以用于: 将所述待发送数据转换为预设的数据格式后, 发送到 GPRS/CDMA网关, 转换得到的待转发数据中携带第二数据服务器标识, 以使 GPRS/CDMA 网关 将接收到的数据转发给所述第二数据服务器标识指示的数据服务器。
优选地, 如图 5所示, 所述路由选择单元 520可以通过以下模块实现: 数据模块 5201 , 用于存储第一阈值和第二阈值, 所述第一阈值大于第二 阈值;
路由选择模块 5202, 用于判断所述无线信号强度与预设的第一阈值和第 二阈值之间的大小关系,如果无线信号强度大于所述第一阈值,确定数据传输 方式为 GPRS/CDMA IX; 如果无线信号强度小于所述第二阈值, 确定数据 传输方式为 SMS; 否则, 确定数据传输方式为 GPRS/CDMA 1X+SMS。
优选地,如图 5所示,当所述数据传输方式为 GPRS/CDMA 1X+SMS时, 所述数据发送单元 530由以下模块组成:
第一发送模块 5301 , 用于使用 GPRS/CDMA IX方式将待发送数据发送 到数据服务器;
判断模块 5302, 用于判断待发送数据使用 GPRS/CDMA IX方式是否发 送成功;
第二发送模块 5303, 用于判断模块判断结果为否时, 使用 SMS的方式将 待发数据发送到数据服务器。
通过上述路由选择方法和与方法相对应的路由选择装置可知,在发送待传 输数据的过程中,本发明实施例判断无线信号强度,根据获得的无线信号强度 来确定选择 SMS, GPRS/CDMA, GPRS/CDMA+SMS三种方式中的一种进行 数据传输, 当信号强度允许的情况下,选择其中传输效率更快的 GPRS/CDMA 方式,只有在 GPRS/CDMA方式无法连接到服务器时,才会采用 SMS的方式, 从而提高了数据传输的效率。
显然, 上边所描述的实施例仅仅是本发明一部分实施例, 而不是全部的实 施例。基于本发明中的实施例, 本领域普通技术人员在没有做出创造性劳动前 提下所获得的所有其他实施例, 都应当属于本发明保护的范围。

Claims

权 利 要 求
1、 一种路由选择方法, 其特征在于, 包括:
检测无线信号强度;
根据检测到的无线信号强度确定待发送数据的数据传输方式;
使用确定的数据传输方式将待发送数据发送到数据服务器。
2、 根据权利要求 1所述的方法, 其特征在于, 所述数据传输方式包括: 短消息服务 SMS、 GPRS/CDMA IX和 GPRS/CDMA 1X+SMS。
3、 根据权利要求 2所述的方法, 其特征在于, 所述根据检测到的无线信 号强度确定待发送数据的数据传输方式具体为:
判断所述无线信号强度与预设的第一阈值和第二阈值之间的大小关系, 如果无线信号强度大于所述第一阈值,确定数据传输方式为 GPRS/CDMA
IX;
如果无线信号强度小于所述第二阈值, 确定数据传输方式为 SMS;
否则, 确定数据传输方式为 GPRS/CDMA 1X+SMS。
4、 根据权利要求 2或 3所述的方法, 其特征在于, 当所述数据传输方式 为 GPRS/CDMA 1X+SMS时, 所述使用确定的数据传输方式将待发送数据发 送到数据服务器具体为:
使用 GPRS/CDMA IX的方式将待发送数据发送到数据服务器, 判断数据 发送是否成功, 如果否, 使用 SMS的方式将待发送数据发送到数据服务器。
5、 根据权利要求 2或 3所述的方法, 其特征在于, 当所述数据传输方式 为 SMS时, 所述使用确定的数据传输方式将待发送数据发送到数据服务器具 体为:
将所述待发送数据转换为短信形式发送到短信网关,所述短信中携带第一 数据服务器标识;以使短信网关将接收到的数据转发给所述第一数据服务器标 识指示的数据服务器。
6、 根据权利要求 2或 3所述的方法, 其特征在于, 当所述数据传输方式 为 GPRS/CDMA IX时, 所述使用确定的数据传输方式将待发送数据发送到数 据服务器具体为:
将所述待发送数据转换为预设的数据格式后, 发送到 GPRS/CDMA网关, 转换得到的待转发数据中携带第二数据服务器标识, 以使 GPRS/CDMA 网关 将接收到的数据转发给所述第二数据服务器标识指示的数据服务器。
7、 一种路由选择装置, 其特征在于, 包括:
检测单元, 用于检测无线信号的强度;
路由选择单元,用于根据检测到的无线信号强度确定待发送数据的数据传 输方式;
数据发送单元,用于使用确定的数据传输方式将待发送数据发送到数据服 务器。
8、 根据权利要求 7所述的装置, 其特征在于, 所述路由选择单元包括: 数据模块, 用于存储第一阈值和第二阈值, 所述第一阈值大于第二阈值; 路由选择模块,用于判断所述无线信号强度与预设的第一阈值和第二阈值 之间的大小关系,如果无线信号强度大于所述第一阈值,确定数据传输方式为 GPRS/CDMA IX; 如果无线信号强度小于所述第二阈值, 确定数据传输方式 为 SMS; 否则, 确定数据传输方式为 GPRS/CDMA 1X+SMS。
9、 根据权利要求 7或 8所述的装置, 其特征在于, 当所述数据传输方式 为 GPRS/CDMA 1X+SMS时, 所述数据发送单元包括:
第一发送模块, 用于使用 GPRS/CDMA IX方式将待发送数据发送到数据 服务器;
判断模块,用于判断待发送数据使用 GPRS/CDMA IX方式是否发送成功; 第二发送模块, 用于判断模块判断结果为否时, 使用 SMS的方式将待发 数据发送到数据服务器。
10、 根据权利要求 7或 8所述的装置, 其特征在于, 当所述数据传输方式 为 SMS时, 数据发送单元具体用于:
将所述待发送数据以短信的形式发送到短信网关,所述短信中携带第一数 据服务器标识;以使短信网关将接收到的数据转发给所述第一数据服务器标识 指示的数据服务器。
11、 根据权利要求 7或 8所述的装置, 其特征在于, 当所述数据传输方式 为 GPRS/CDMA IX时, 数据发送单元具体用于:
将所述待发送数据转换为预设的数据格式后, 发送到 GPRS/CDMA网关, 转换得到的待转发数据中携带第二数据服务器标识, 以使 GPRS/CDMA 网关 将接收到的数据转发给所述第二数据服务器标识指示的数据服务器。
PCT/CN2010/070409 2009-11-27 2010-01-29 一种路由选择方法和装置 WO2011063618A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2009102412880A CN101715226B (zh) 2009-11-27 2009-11-27 一种路由选择方法和装置
CN200910241288.0 2009-11-27

Publications (1)

Publication Number Publication Date
WO2011063618A1 true WO2011063618A1 (zh) 2011-06-03

Family

ID=42418385

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2010/070409 WO2011063618A1 (zh) 2009-11-27 2010-01-29 一种路由选择方法和装置

Country Status (2)

Country Link
CN (1) CN101715226B (zh)
WO (1) WO2011063618A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110300398B (zh) * 2019-06-11 2023-04-14 唐文 与云服务平台进行通信的方法及智能安全帽
CN111343423A (zh) * 2020-02-26 2020-06-26 倪东杰 一种视频传输方法、装置、存储介质及电子设备

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1352863A (zh) * 1999-06-01 2002-06-05 诺基亚公司 在预订使用多网络情况下的消息路由
CN1790922A (zh) * 2004-12-15 2006-06-21 乐金电子(昆山)电脑有限公司 天线一体化模块装置
CN101170813A (zh) * 2006-10-27 2008-04-30 中兴通讯股份有限公司 一种双模终端支持智能呼叫的方法
CN101420656A (zh) * 2007-10-23 2009-04-29 中兴通讯股份有限公司 扩展手机电视业务接收范围的方法以及一种移动终端系统

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1352863A (zh) * 1999-06-01 2002-06-05 诺基亚公司 在预订使用多网络情况下的消息路由
CN1790922A (zh) * 2004-12-15 2006-06-21 乐金电子(昆山)电脑有限公司 天线一体化模块装置
CN101170813A (zh) * 2006-10-27 2008-04-30 中兴通讯股份有限公司 一种双模终端支持智能呼叫的方法
CN101420656A (zh) * 2007-10-23 2009-04-29 中兴通讯股份有限公司 扩展手机电视业务接收范围的方法以及一种移动终端系统

Also Published As

Publication number Publication date
CN101715226A (zh) 2010-05-26
CN101715226B (zh) 2012-08-22

Similar Documents

Publication Publication Date Title
TWI363512B (en) Access point multi-level transmission power and protocol based on the exchange of characteristics
CN103841002B (zh) 语音传输方法、终端、语音服务器及语音传输系统
RU2002104934A (ru) Способ и устройство передачи данных по обратной линии связи в системе мобильной связи
CN106464303A (zh) 一种数据传输的方法和终端
CN101136801B (zh) 网络故障检测方法
CN102685777B (zh) 基于干扰容限的数据并发传输系统及方法
EP2437456A1 (en) Method and system for realizing concurrent access of multi-kinds of bearer protocols on machine-to-machine (m2m) platform
WO2020109867A2 (zh) 多模通信装置及其通信方法、多模通信系统
CN102177697A (zh) 互联网业务控制方法及相关设备和系统
CN104641595A (zh) 一种问题定界的方法及装置
CN101548489A (zh) 无线网性能监视方法、无线通信系统、装置及其程序
CN111064552B (zh) 智能设备控制方法、装置、电子设备和存储介质
CN101536602B (zh) 在移动通信系统中的支持测量的方法
CN102111728B (zh) 移动终端的网络连接管理模块和方法
CN103347273A (zh) 一种根据业务需要自动选择最佳传输方式的装置和方法
CN104185292A (zh) 一种能量效率最大化的数据包调度方法
WO2012159580A1 (zh) 一种获取终端通信链路质量的方法、网络接入设备及系统
WO2011063618A1 (zh) 一种路由选择方法和装置
CN102984814A (zh) 一种大规模的gprs终端设备联网方法
CN102711254B (zh) 网络侧的资源释放控制方法及rnc
WO2011063619A1 (zh) 一种数据传输的方法及装置
CN101715213B (zh) 一种通话优化处理方法和系统
CN108055651A (zh) 一种基于d2d技术的移动终端设备心跳包转发方法
CN108810977A (zh) 一种通信方法、通信设备及具有存储功能的设备
CN102802237B (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: 10832525

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

Country of ref document: EP

Kind code of ref document: A1