WO2020001281A1 - 一种TBox控制方法及装置、计算机可读存储介质 - Google Patents

一种TBox控制方法及装置、计算机可读存储介质 Download PDF

Info

Publication number
WO2020001281A1
WO2020001281A1 PCT/CN2019/091096 CN2019091096W WO2020001281A1 WO 2020001281 A1 WO2020001281 A1 WO 2020001281A1 CN 2019091096 W CN2019091096 W CN 2019091096W WO 2020001281 A1 WO2020001281 A1 WO 2020001281A1
Authority
WO
WIPO (PCT)
Prior art keywords
tbox
domain name
target
control method
working mode
Prior art date
Application number
PCT/CN2019/091096
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 WO2020001281A1 publication Critical patent/WO2020001281A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/30Services specially adapted for particular environments, situations or purposes
    • H04W4/40Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P]
    • H04W4/48Services specially adapted for particular environments, situations or purposes for vehicles, e.g. vehicle-to-pedestrians [V2P] for in-vehicle communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • H04L61/5014Internet protocol [IP] addresses using dynamic host configuration protocol [DHCP] or bootstrap protocol [BOOTP]

Definitions

  • the embodiments of the present application relate to, but are not limited to, a TBox control method and device, and a computer-readable storage medium.
  • Telematics box Telematics communication module
  • Car TBox is the key development direction and has broad market prospects.
  • the on-board TBox is a front-loaded device that has been installed before the vehicle leaves the factory; moreover, the on-board TBox is installed inside the vehicle without exposed interfaces; in addition, for security reasons, the on-board TBox only opens the least ports and does not support access through the network.
  • TBox The equipment manufacturer establishes an online management center and operates TBox through the online management center. TBox regularly visits the management center to check for instructions. But usually the OEMs have their own online management centers, which are controlled by the OEMs themselves, and are not allowed to be easily operated by the equipment manufacturers. If the equipment manufacturers establish their own online management centers, they will be resisted by the OEMs and have security and privacy issues.
  • the method requires TBox to query regularly, and the traffic overhead is not small. Although there are not many single times, the flow is long and the overall cost is considerable.
  • a backdoor port is opened on the TBox (in a continuously open state), and the debugger communicates with the TBox through the backdoor port.
  • At least one embodiment of the present application provides a TBox control method and device, and a computer-readable storage medium to implement control of the TBox.
  • At least one embodiment of the present application provides a TBox control method, including:
  • the TBox's working mode is changed.
  • At least one embodiment of the present application provides a TBox control device, including a memory and a processor.
  • the memory stores a program.
  • the TBox control according to any one of the embodiments is implemented. method.
  • At least one embodiment of the present application provides a computer-readable storage medium, where the computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement any The TBox control method according to an embodiment.
  • Figure 1 is a system architecture diagram
  • FIG. 2 is a flowchart of a TBox control method according to an embodiment of the present application.
  • FIG. 3 is a flowchart of a TBox control method according to another embodiment of the present application.
  • FIG. 4 is a flowchart of a TBox control method according to another embodiment of the present application.
  • FIG. 5 is a flowchart of a TBox control method according to another embodiment of the present application.
  • FIG. 6 is a flowchart of a TBox control method according to another embodiment of the present application.
  • FIG. 7 is a block diagram of a TBox control device according to an embodiment of the present application.
  • TBox Add monitoring code to TBox's DNS Server service to monitor domain name resolution requests.
  • the TBox switches to the debugging mode, so that the debugger can communicate with the TBox for debugging or upgrading.
  • An embodiment of the present application provides a system including a TBox.
  • the system architecture includes a car 10, a head unit (HU) 11 and a TBox 12 installed on the car 10, and a terminal 13 and an Internet 14.
  • the terminal 13 is connected to the HU11 via WiFi, and the TBox12 provides the Internet access service for the HU11.
  • the path for accessing the Internet is terminal 13-> HU11-> TBox12-> Internet 14.
  • the terminal 13 may be, for example, a tablet computer (PAD), a computer, a smart phone, or the like.
  • the terminal 13 When the terminal 13 initiates a network request, it will first initiate a Domain Name System (DNS) resolution request to the HU11. HU11 attempts to resolve this domain name. If it can be resolved, it returns an Internet Protocol (IP) address to the terminal 13; if it cannot resolve, HU11 will initiate a DNS resolution request to TBox12. TBox12 attempts to resolve the domain name. If it can be resolved, it returns an IP address to HU11. If it cannot resolve, TBox12 will initiate a DNS resolution request to the network access provider to achieve Internet access.
  • DNS Domain Name System
  • the DNS server of the TBox is modified to listen to DNS resolution requests, and the TBox working mode is triggered to change when the target domain name is heard.
  • an embodiment of the present application provides a TBox control method, including step 201.
  • step 201 when a DNS resolution request for a target domain name is received, or when target information is detected by a network data packet, the working mode of the TBox is changed.
  • the TBox work mode is changed by analyzing DNS resolution requests or detecting network data packets. There is no need to establish a management center, no additional hardware, no need to disassemble the car, and reduced maintenance costs.
  • the target domain name and target information can be pre-configured as required. That is, before receiving the domain name system resolution request for the target domain name or before the target data is detected by the network data packet, the method further includes: pre-storing the target domain name or the target information.
  • changing the working mode of the TBox includes: entering a debugging mode, in which the TBox supports communication between the TBox and an external device to receive control instructions for the TBox from the external device.
  • the TBox provides Internet access services. External devices can only obtain the requested network resources through the TBox and cannot control the TBox itself (for example, change the TBox configuration, read TBox information, upgrade the TBox, etc.),
  • the domain name system of the target domain name resolves the request or detects the target information, it enters a debugging mode that can control the TBox.
  • the external device is a dedicated debugging device such as a computer or TBox.
  • the entering the debugging mode includes: opening a target port, and executing the control instruction when the control instruction is received from the target port.
  • the target port is opened and monitored, and a control instruction is acquired. It should be noted that this application is not limited to this, and communication control acquisition instructions may be obtained through other methods.
  • the solution provided by this embodiment only opens the target port after being triggered (that is, enters the debugging mode). Usually, the TBox does not need to open the port, which increases security.
  • the method further includes exiting the debugging mode after receiving a target control instruction. That is, exit from the debug mode by a control instruction.
  • a target control instruction That is, exit from the debug mode by a control instruction.
  • the exiting the debugging mode includes: closing a target port.
  • the mode switching is performed by a combination of a domain name (or detection target information) and an instruction.
  • the method further includes: receiving a control instruction.
  • the changing the working mode of the TBox includes: entering a working mode corresponding to the control instruction according to the control instruction. That is, after receiving the domain name system resolution request for the target domain name or detecting the target information, the mode migration is triggered, the target port is opened, and the corresponding working mode is set according to the control instruction received on the target port.
  • each target domain name corresponds to a working mode.
  • migration to the working mode corresponding to the target domain name is triggered.
  • changing the working mode of the TBox includes: entering a corresponding target domain name according to a pre-established correspondence between the target domain name and the working mode. Operating mode.
  • the domain name system resolution request for the target domain name is from HU.
  • the solution provided in this embodiment uses an existing HU device without adding additional hardware and without increasing costs and design difficulties.
  • the detecting the target information includes: detecting that the physical address requested by the network data packet is the target address, or detecting that the network data packet to be uploaded contains the target data.
  • the TBox needs to forward network packets through the TBox. Therefore, you can monitor the network packets and determine whether the working mode of the TBox needs to be changed based on the information of the network packets.
  • an embodiment of the present application provides a TBox control method, including steps 301 to 303.
  • step 301 the TBox receives a DNS resolution request.
  • step 302 the TBox determines that the DNS resolution request is a resolution request for the target domain name, and enters a debugging mode.
  • Entering the debugging mode includes: opening a target port and monitoring the target port. After entering the debug mode, if a control instruction is received from the target port, the control instruction is executed.
  • the control instruction is, for example, an instruction for debugging the TBox, or an instruction for obtaining a log from the TBox, and so on.
  • step 303 the TBox receives the exit instruction and exits the debugging mode.
  • Exiting debug mode includes: closing the target port and no longer listening to the target port.
  • the specific content of the exit instruction can be agreed, and this application does not limit it.
  • the TBox after the TBox enters the debugging mode, it can continue to provide networking services, or it can temporarily turn off the networking services, and then turn on the networking services after exiting the debugging mode.
  • the DNS request 10 is called only during domain name resolution, and the TBox operation load is not increased.
  • an embodiment of the present application provides a TBox control method, which includes steps 401 to 403.
  • step 401 the TBox receives a DNS resolution request.
  • step 402 the TBox determines that the DNS resolution request is a resolution request for the first target domain name, and enters a debugging mode.
  • Entering the debugging mode includes: opening a target port and monitoring the target port. After entering the debug mode, if a control instruction is received from the target port, the control instruction is executed.
  • the control instruction is, for example, an instruction for debugging the TBox, or an instruction for obtaining a log from the TBox, and so on.
  • step 403 after receiving the DNS resolution request, the TBox determines that the DNS resolution request is a resolution request for the second target domain name, and exits the debugging mode.
  • the mode switching is performed by a domain name DNS resolution request.
  • the first target domain name and the second target domain name may be the same or different.
  • the TBox when it receives a DNS resolution request for the first target domain name, it enters the debugging mode.
  • debug mode when receiving a DNS resolution request for the second target domain name, it enters non-debug mode.
  • the TBox may have multiple working modes, such as a first working mode, a second working mode, and a third working mode, respectively corresponding to the first domain name, the second domain name, and the third domain name.
  • a resolution request for the first domain name When a resolution request for the first domain name is detected, it enters the first work mode, when a resolution request for the second domain name is detected, it enters the second work mode, and when a resolution request for the third domain name is detected, it enters the third work. mode.
  • an embodiment of the present application provides a TBox control method, which includes steps 501 to 503.
  • step 501 the TBox receives a DNS resolution request.
  • the TBox determines that the DNS resolution request is a DNS resolution request for a target domain name, enters a switching state, opens a target port, and monitors the target port.
  • the TBox receives an instruction from the target port, and when the instruction is the first instruction, it enters a debugging mode.
  • the correspondence between the instruction and the working mode can be set in advance, and when the instruction is received, the working mode corresponding to the instruction is entered.
  • the first instruction may be set according to requirements, which is not limited in this application.
  • the working mode is switched by a combination of a DNS resolution request and an instruction.
  • FIG. 6 is a flowchart of a TBox control method according to an embodiment of the present application.
  • a remote network driver interface specification (RNDIS) connection is used between the TBox and the HU.
  • the TBox acts as a Dynamic Host Configuration Protocol (DHCP) server (Server) and assigns itself to the server.
  • DHCP Dynamic Host Configuration Protocol
  • the IP address is 192.168.0.1, and the IP address assigned to HU is 192.168.0.100.
  • the target domain name is DDD.DDD.EEE.COM.ZZZ; the target port is 15818; the Dnsmasq source code is modified to implement the following functions: listen for the domain name resolution request, and call the debug service program when the target domain name is heard.
  • the debugging service program does not run normally. After the debugging service program starts, open the target port and listen. When an external debugging device is connected to the target port, the TBox can process the debugging commands sent by the external debugging device through the target port. Specific debugging commands can be set as needed. Keep the TBox startup process normal. For example, modifying the Dnsmasq source code may be modifying the receive_query function in forward.c. When the target domain name is heard, the debugging service program is called.
  • an embodiment of the present application provides a TBox control method, including steps 601 to 607.
  • step 601 the terminal connects to the HU as a WiFi hotspot.
  • the HU as a WiFi hotspot, assigns itself an IP address of 192.168.1.1 and an IP address of the terminal to 192.168.1.100.
  • step 602 open a browser on the terminal, and enter a target domain name: DDD.DDD.EEE.COM.ZZZ in the address bar.
  • step 603 the browser sends a DNS resolution request to the HU, requesting the HU to resolve the domain name: DDD.DDD.EEE.COM.ZZZ, that is, the DNS resolution request carries the domain name: DDD.DDD.EEE.COM.ZZZ.
  • step 604 HU cannot resolve the domain name, and forwards the DNS resolution request to TBox.
  • TBox determines that the domain name DDD.DDD.EEE.COM.ZZZ to be resolved is the target domain name, and invokes a debugging service program.
  • the domain name resolution processing is performed by Dnsmasq on TBox.
  • the debugging service program is called.
  • step 606 the debugging service program is started, and the target port, that is, port 15818 is opened, and the TBox listens on port 15818.
  • step 607 the terminal runs a socket (socket) tool with a connection address of 192.168.0.1 and a port of 15818; the terminal sends a control instruction to the TBox through the socket tool. After the TBox receives the control instruction, it executes the control instruction. It should be noted that sending control instructions through the socket tool is only an example.
  • the target port is opened, and a control instruction is monitored on the target port.
  • An embodiment of the present application provides a TBox control device. As shown in FIG. 7, it includes a memory 710 and a processor 720.
  • the memory 710 stores a program, and the program is implemented when read and executed by the processor 720.
  • the TBox control method according to any one of the embodiments.
  • An embodiment of the present application provides a computer-readable storage medium, where the computer-readable storage medium stores one or more programs, and the one or more programs can be executed by one or more processors to implement any The TBox control method described in the embodiment.
  • An embodiment of the present application provides a TBox control method, including: a terminal sending a domain name system resolution request for a target domain name or carrying target information to a TBox in a network data packet.
  • the method further includes establishing a connection between the terminal and a target port of the TBox, and sending a control instruction to the TBox through the target port.
  • An embodiment of the present application further provides a TBox, including the foregoing TBox control device.
  • An embodiment of the present application further provides a car, including the above TBox.
  • Computer storage medium includes both volatile and nonvolatile implementations in any method or technology used to store information such as computer-readable instructions, data structures, program modules or other data.
  • Computer storage media include, but are not limited to, Random Access Memory (RAM), Read-Only Memory (ROM), Electrically Erasable Programmable Read-Only Memory (EEPROM) , Flash memory or other memory technology, Compact Disc (Read-Only Memory (CD-ROM), Digital Video Disc (DVD) or other optical disc storage, magnetic box, magnetic tape, disk storage or other magnetic storage A device, or any other medium that can be used to store desired information and can be accessed by a computer.
  • a communication medium typically contains computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transmission mechanism, and may include any information delivery medium .

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)
  • Debugging And Monitoring (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本申请公开了一种TBox控制方法及装置、计算机可读存储介质,该TBox控制方法包括:在接收到对目标域名的域名系统解析请求,或者在网络数据包检测到目标信息的情况下,变更TBox的工作模式。

Description

一种TBox控制方法及装置、计算机可读存储介质
本申请要求在2018年06月27日提交中国专利局、申请号为201810681792.1的中国专利申请的优先权,该申请的全部内容通过引用结合在本申请中。
技术领域
本申请实施例涉及但不限于一种TBox控制方法及装置、计算机可读存储介质。
背景技术
车联网蓬勃发展,车载通讯匣(Telematics box,TBox,即车联网通信模块)为车辆提供联网服务,是车联网体系中重要一环。车载TBox是重点发展方向,有广阔的市场前景。车载TBox是前装设备,在车辆出厂前就已经安装;而且,车载TBox安装在车辆内部,没有暴露的接口;另外,出于安全考虑,车载TBox只开启最少的端口,不支持通过网络访问。
因此TBox装车后,与TBox通讯会很麻烦,调试、获取日志(Log)等等操作都很难实现。目前各个设备商处理这个情况的方法有:
A)、设备商建立网上管理中心,通过网上管理中心操作TBox。由TBox定时访问管理中心,检查有无指令。但是通常主机厂会有自己的网上管理中心,由主机厂自己控制,不允许设备商轻易操作;如果设备商自己建立网上管理中心,会遭到主机厂抵制,而且有安全和隐私问题;这种方法需要TBox定时查询,流量开销不小,虽然单次不多,但是细水长流,总体成本也很可观。
B)、TBox上增加额外的硬件,例如WiFi或者蓝牙,通过访问该额外的硬件与该TBox通信;额外硬件会增加硬件成本,降低整体可靠度。
C)、TBox上开辟后门端口(处于持续开启状态),调试者通过后门端口与TBox通信。该方案会增加遭受网络攻击的风险,降低安全性;另外,主机厂很容易通过端口扫描之类手段找到后门端口,要求设备商关闭后门。
D)、拆车,暴露TBox硬件接口。拆车需要专业人士,而且对车辆进行拆装容易损坏车辆部件。
发明内容
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。
本申请至少一实施例提供了一种TBox控制方法及装置、计算机可读存储介质,实现对TBox的控制。
本申请至少一实施例提供一种TBox控制方法,包括:
在接收到对目标域名的域名系统解析请求,或者在网络数据包检测到目标信息的情况下,,变更TBox的工作模式。
本申请至少一实施例提供一种TBox控制装置,包括存储器和处理器,所述存储器存储有程序,所述程序在被所述处理器读取执行时,实现任一实施例所述的TBox控制方法。
本申请至少一实施例提供一种计算机可读存储介质,所述计算机可读存储介质存储有一个或者多个程序,所述一个或者多个程序可被一个或者多个处理器执行,以实现任一实施例所述的TBox控制方法。
在阅读并理解了附图和详细描述后,可以明白其他方面。
附图说明
附图用来提供对本申请技术方案的进一步理解,并且构成说明书的一部分,与本申请的实施例一起用于解释本申请的技术方案,并不构成对本申请技术方案的限制。
图1为系统架构图;
图2为本申请一实施例提供的TBox控制方法流程图;
图3为本申请另一实施例提供的TBox控制方法流程图;
图4为本申请又一实施例提供的TBox控制方法流程图;
图5为本申请又一实施例提供的TBox控制方法流程图;
图6为本申请又一实施例提供的TBox控制方法流程图;
图7为本申请一实施例提供的TBox控制装置框图。
具体实施方式
下文中将结合附图对本申请的实施例进行详细说明。需要说明的是,在不 冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。
在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机系统中执行。并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。
在TBox的DNS Server服务中添加监听代码,监测域名解析请求。当遇到目标域名的解析请求时,TBox切换到调试模式,这样调试机就可以与TBox进行通讯,进行调试或者升级等操作。
本申请一实施例提供一种包含TBox的系统。系统架构如图1所示,包括汽车10,设置在汽车10上的车机(Head Unit,HU)11和TBox12,还包括终端13和互联网(internet)14。其中终端13通过WiFi连接HU11,TBox12为HU11提供上网服务。上网的路径为终端13->HU11->TBox12->互联网14。所述终端13比如可以为平板电脑(PAD),电脑,智能手机等。
当终端13发起一个网络请求时,会先向HU11发起域名系统(Domain Name System,DNS)解析请求。HU11尝试解析这个域名,如果可以解析,向终端13返回互联网协议(Internet Protocol,IP)地址;如果无法解析,HU11会向TBox12发起DNS解析请求。TBox12尝试解析域名,如果可以解析,向HU11返回IP地址;如果无法解析,TBox12会向网络接入商发起DNS解析请求,实现上网。
本申请一实施例中,修改TBox的DNS Server(服务器),侦听DNS解析请求,在侦听到目标域名时触发TBox工作模式变化。
如图2所示,本申请一实施例提供一种TBox控制方法,包括步骤201。
在步骤201中,在接收到对目标域名的DNS解析请求,或者在网络数据包检测到目标信息的情况下,变更TBox的工作模式。
本实施例中,通过分析DNS解析请求或检测网络数据包,进行TBox工作模式的变更,无需建立管理中心,无需增加额外硬件,无需拆车,减少维修成本。
其中,目标域名和目标信息可以根据需要预先配置。即,所述接收到对目标域名的域名系统解析请求或者在网络数据包检测到目标信息前,还包括:预存所述目标域名或者所述目标信息。
在一实施例中,所述变更TBox的工作模式包括:进入调试模式,所述调试模式下支持所述TBox与外部设备通信以接收来自所述外部设备针对所述TBox 的控制指令。正常情况下,所述TBox提供上网服务,外部设备只能通过TBox获取所请求的网络资源,无法对TBox自身进行控制(比如,更改TBox配置,读取TBox信息,对TBox进行升级等等),本实施例中,在目标域名的域名系统解析请求或者检测到目标信息的情况下,进入可以对TBox进行控制的调试模式。外部设备比如为电脑或者TBox的专用调试设备等。
在一实施例中,所述进入调试模式包括:打开目标端口,在从所述目标端口接收到所述控制指令的情况下,执行所述控制指令。本实施例中,打开目标端口并进行监听,获取控制指令,需要说明的是,本申请不限于此,也可以通过其他方式进行通信获取控制指令。本实施例提供的方案,只在被触发(即进入调试模式)后打开目标端口,平时TBox无需打开端口,增加安全性。
在一实施例中,所述进入调试模式后,还包括,接收到目标控制指令后,退出所述调试模式。即通过控制指令从调试模式中退出。当然,也可以通过其他方式进行退出,比如接收到另一域名DNS解析请求后,退出调试模式。当然,也可以通过断电重启的方式退出调试模式。所述退出所述调试模式包括:关闭目标端口。
在一实施例中,通过域名(或者检测目标信息)和指令结合的方式进行模式切换。所述接收到对目标域名的域名系统解析请求或者检测到目标信息之后,变更TBox的工作模式之前,还包括:接收控制指令。
所述变更TBox的工作模式包括:根据所述控制指令进入与所述控制指令对应的工作模式。即接收到对目标域名的域名系统解析请求或者检测到目标信息之后,触发模式迁移,打开目标端口,根据目标端口上接收到的控制指令设置相应的工作模式。
在一实施例中,可能存在多个目标域名,每个目标域名对应一种工作模式,当检测目标域名后,触发迁移到该目标域名对应的工作模式。在存在多个目标域名且每个目标域名对应一种工作模式的情况下,所述变更TBox的工作模式包括:根据预先建立的目标域名与工作模式的对应关系,进入与所述目标域名对应的工作模式。
在一实施例中,所述对目标域名的域名系统解析请求来自HU。本实施例中提供的方案,使用已有的HU设备,无需增加额外硬件,无需额外增加成本与设计难度。
在一实施例中,所述检测到目标信息包括:检测到网络数据包请求的物理地址为目标地址,或者,检测到待上传的网络数据包包含目标数据。TBox作为一个路由设备,网络数据包需要通过TBox进行转发,因此,可以监听网络数据包,并根据网络数据包的信息判断是否需要更换TBox的工作模式。
如图3所示,本申请一实施例提供一种TBox控制方法,包括步骤301至步骤303。
在步骤301中,TBox接收到DNS解析请求。
在步骤302中,所述TBox判断该DNS解析请求是对目标域名的解析请求,进入调试模式。
其中,进入调试模式包括:打开目标端口,监听所述目标端口。进入调试模式后,在从目标端口接收到控制指令的情况下,执行所述控制指令。所述控制指令比如为对TBox进行调试的指令,或者,从TBox获取日志的指令,等等。
在步骤303中,所述TBox接收到退出指令,退出调试模式。退出调试模式包括:关闭目标端口,不再监听目标端口。
其中,退出指令的具体内容可以约定,本申请对此不作限定。
需要说明的是,TBox进入调试模式后,可以继续提供联网服务,也可以暂时关闭联网服务,在退出调试模式后,再开启联网服务。
本实施例中,仅在域名解析时调用DNS请求10.,不增加TBox运算负载。
如图4所示,本申请一实施例提供一种TBox控制方法,包括步骤401到步骤403。
在步骤401中,TBox接收到DNS解析请求。
在步骤402中,所述TBox判断该DNS解析请求是对第一目标域名的解析请求,进入调试模式。
其中,进入调试模式包括:打开目标端口,监听所述目标端口。进入调试模式后,在从目标端口接收到控制指令的情况下,执行所述控制指令。所述控制指令比如为对TBox进行调试的指令,或者,从TBox获取日志的指令,等等。
在步骤403中,TBox接收到DNS解析请求后,判断该DNS解析请求是对第二目标域名的解析请求,退出调试模式。
本实施例中,通过域名DNS解析请求来进行模式切换。需要说明的是,第 一目标域名和第二目标域名可以相同,也可以不同。当第一目标域名与第二目标域名相同时,当TBox处于非调试模式(即正常工作模式,提供上网服务)时,接收到对第一目标域名的DNS解析请求时,进入调试模式,当TBox处于调试模式下,接收到对第二目标域名的DNS解析请求时,进入非调试模式。
需要说明的是,在另一实施例中,TBox可以有多种工作模式,比如第一工作模式、第二工作模式和第三工作模式,分别对应第一域名、第二域名和第三域名。在检测到对第一域名的解析请求时,进入第一工作模式,检测到对第二域名的解析请求时,进入第二工作模式,检测到对第三域名的解析请求时,进入第三工作模式。
如图5所示,本申请一实施例提供一种TBox控制方法,包括步骤501至步骤503。
在步骤501中,TBox接收到DNS解析请求。
在步骤502中,所述TBox判断该DNS解析请求是对目标域名的DNS解析请求,进入切换状态,打开目标端口,监听目标端口。
在步骤503中,所述TBox从所述目标端口接收到指令,所述指令为第一指令时,进入调试模式。可以预先设置指令与工作模式的对应关系,接收到指令时,进入指令对应的工作模式。第一指令可以根据需要设置,本申请对此不作限定。
本实施例中,通过DNS解析请求和指令相结合的方式进行工作模式的切换。
图6为本申请一实施例提供的TBox控制方法流程图。本实施例中,TBox与HU之间采用远程网络驱动接口规范(Remote Network Driver Interface Specification,RNDIS)连接,TBox作为动态主机配置协议(Dynamic Host Configuration Protocol,DHCP)服务器(Server),给自己分配的IP地址为192.168.0.1,给HU分配的IP地址192.168.0.100。目标域名为DDD.DDD.EEE.COM.ZZZ;目标端口为15818;修改Dnsmasq源码,实现如下功能:侦听域名解析请求,在侦听到所述目标域名时,调用调试服务程序。其中,调试服务程序平时不运行。调试服务程序启动后,打开目标端口,进行侦听。在外部调试设备连接到目标端口时,TBox可以处理外部调试设备通过目标端口发送的调试命令。具体的调试命令,可以根据需要设定。保持TBox正常启动流程不变。比如,修改Dnsmasq源码可以是修改forward.c中的receive_query 函数,在侦听到所述目标域名时,调用调试服务程序。
如图6所示,本申请一实施例提供一种TBox控制方法,包括步骤601至步骤607。
在步骤601中,终端连接作为WiFi热点的HU。
本实施例中,HU作为WiFi热点,给自己分配的IP地址为192.168.1.1,给终端分配的IP地址为192.168.1.100。
在步骤602中,终端上打开浏览器,在地址栏输入目标域名:DDD.DDD.EEE.COM.ZZZ。
在步骤603中,浏览器向HU发送DNS解析请求,请求HU解析该域名:DDD.DDD.EEE.COM.ZZZ,即DNS解析请求中携带域名:DDD.DDD.EEE.COM.ZZZ。
在步骤604中,HU无法解析该域名,将所述DNS解析请求转发给TBox。
在步骤605中,TBox接收到该DNS解析请求后,判断待解析的域名DDD.DDD.EEE.COM.ZZZ为目标域名,调用调试服务程序。
其中,由TBox上的Dnsmasq进行域名解析处理,匹配到目标域名时,调用调试服务程序。
在步骤606中,调试服务程序启动,打开目标端口即15818端口,TBox在15818端口上侦听。
在步骤607中,终端上运行socket(套接字)工具,连接地址为192.168.0.1,端口为15818;终端通过socket工具向TBox发送控制指令,TBox接收到控制指令后,执行所述控制指令。需要说明的是,通过socket工具发送控制指令仅为示例。
本实施例提供的方法,在检测到对目标域名的DNS解析请求后,打开目标端口,在目标端口上监听控制指令。
本申请一实施例提供一种TBox控制装置,如图7所示,包括存储器710和处理器720,所述存储器710存储有程序,所述程序在被所述处理器720读取执行时,实现任一实施例所述的TBox控制方法。
本申请一实施例提供一种计算机可读存储介质,所述计算机可读存储介质存储有一个或者多个程序,所述一个或者多个程序可被一个或者多个处理器执行,以实现任一实施例所述的TBox控制方法。
本申请一实施例提供一种TBox控制方法,包括:终端发送对目标域名的域名系统解析请求或者在网络数据包中携带目标信息至TBox。
在一实施例中,还包括,所述终端与所述TBox的目标端口建立连接,通过所述目标端口发送控制指令至所述TBox。
本申请一实施例还提供一种TBox,包括上述TBox控制装置。
本申请一实施例还提供一种汽车,包括上述TBox。
本领域普通技术人员可以理解,上文中所公开方法中的全部或某些步骤、系统、装置中的功能模块/单元可以被实施为软件、固件、硬件及其适当的组合。在硬件实施方式中,在以上描述中提及的功能模块/单元之间的划分不一定对应于物理组件的划分;例如,一个物理组件可以具有多个功能,或者一个功能或步骤可以由若干物理组件合作执行。某些组件或所有组件可以被实施为由处理器,如数字信号处理器或微处理器执行的软件,或者被实施为硬件,或者被实施为集成电路,如专用集成电路。这样的软件可以分布在计算机可读介质上,计算机可读介质可以包括计算机存储介质(或非暂时性介质)和通信介质(或暂时性介质)。如本领域普通技术人员公知的,术语计算机存储介质包括在用于存储信息(诸如计算机可读指令、数据结构、程序模块或其他数据)的任何方法或技术中实施的易失性和非易失性、可移除和不可移除介质。计算机存储介质包括但不限于随机存取存储器(Random Access Memory,RAM)、只读存储器(Read-Only Memory,ROM)、带电可擦可编程只读存储器(Electrically Erasable Programmable Read-Only Memory,EEPROM)、闪存或其他存储器技术、只读光盘(Compact Disc Read-Only Memory,CD-ROM)、数字多功能盘(Digital Video Disc,DVD)或其他光盘存储、磁盒、磁带、磁盘存储或其他磁存储装置、或者可以用于存储期望的信息并且可以被计算机访问的任何其他的介质。此外,本领域普通技术人员公知的是,通信介质通常包含计算机可读指令、数据结构、程序模块或者诸如载波或其他传输机制之类的调制数据信号中的其他数据,并且可包括任何信息递送介质。

Claims (11)

  1. 一种TBox控制方法,包括:
    在接收到对目标域名的域名系统解析请求,或者在网络数据包中检测到目标信息的情况下,变更TBox的工作模式。
  2. 根据权利要求1所述的TBox控制方法,其中,所述变更TBox的工作模式包括:进入调试模式,所述调试模式下支持所述TBox与外部设备通信以接收来自所述外部设备针对所述TBox的控制指令。
  3. 根据权利要求2所述的TBox控制方法,其中,所述进入调试模式包括:打开目标端口,响应于从所述目标端口接收到所述控制指令,执行所述控制指令。
  4. 根据权利要求2所述的TBox控制方法,所述进入调试模式后,还包括,接收到目标控制指令后,关闭目标端口。
  5. 根据权利要求1所述的TBox控制方法,在所述接收到对目标域名的域名系统解析请求,或者在网络数据包中检测到目标信息之后,在变更TBox的工作模式之前,还包括:接收控制指令;
    所述变更TBox的工作模式包括:根据所述控制指令进入与所述控制指令对应的工作模式。
  6. 根据权利要求1所述的TBox控制方法,其中,在存在多个目标域名且每个目标域名对应一种工作模式的情况下,所述变更TBox的工作模式包括:根据预先建立的目标域名与工作模式的对应关系,进入与所述目标域名对应的工作模式。
  7. 根据权利要求1至6任一所述的TBox控制方法,其中,所述对目标域名的域名系统解析请求来自车机。
  8. 根据权利要求1至6任一所述的TBox控制方法,其中,所述在网络数据包中检测到目标信息包括:检测到所述网络数据包请求的物理地址为目标地址,或者,检测到待上传的所述网络数据包包含目标数据。
  9. 根据权利要求1至6任一所述的TBox控制方法,其中,所述接收到对目标域名的域名系统解析请求或者在网络数据包中检测到目标信息前,还包括:预存所述目标域名或者所述目标信息。
  10. 一种TBox控制装置,包括存储器和处理器,所述存储器存储有程序,所述程序在被所述处理器读取执行时,实现如权利要求1至9任一所述的TBox 控制方法。
  11. 一种计算机可读存储介质,所述计算机可读存储介质存储有至少一个程序,所述至少一个程序可被至少一个处理器执行,以实现如权利要求1至9任一所述的TBox控制方法。
PCT/CN2019/091096 2018-06-27 2019-06-13 一种TBox控制方法及装置、计算机可读存储介质 WO2020001281A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810681792.1 2018-06-27
CN201810681792.1A CN110650218B (zh) 2018-06-27 2018-06-27 一种TBox控制方法及装置、计算机可读存储介质

Publications (1)

Publication Number Publication Date
WO2020001281A1 true WO2020001281A1 (zh) 2020-01-02

Family

ID=68985769

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/091096 WO2020001281A1 (zh) 2018-06-27 2019-06-13 一种TBox控制方法及装置、计算机可读存储介质

Country Status (2)

Country Link
CN (1) CN110650218B (zh)
WO (1) WO2020001281A1 (zh)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111352646A (zh) * 2020-02-21 2020-06-30 联创汽车电子有限公司 Mpu软件升级方法及其升级系统
CN112084142A (zh) * 2020-08-10 2020-12-15 广州汽车集团股份有限公司 一种日志存储方法、装置及t-box
CN112363925A (zh) * 2020-11-10 2021-02-12 湖北亿咖通科技有限公司 车机基础信息的获取方法、电子设备及计算机存储介质

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112435364B (zh) * 2020-12-15 2022-05-31 一汽奔腾轿车有限公司 一种行车记录仪远程静默控制系统及控制方法
CN113141582B (zh) * 2021-04-25 2022-09-20 深圳市元征科技股份有限公司 日志导出方法、装置、计算机设备以及存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105141704A (zh) * 2015-09-24 2015-12-09 重庆长安汽车股份有限公司 车载通信控制器总成的休眠唤醒方法
CN105610984A (zh) * 2016-03-07 2016-05-25 安徽江淮汽车股份有限公司 一种远程控制车辆的方法
US20170302626A1 (en) * 2016-04-13 2017-10-19 VisualThreat Inc. Vehicle communication system based on controller-area network bus firewall
CN207321243U (zh) * 2017-11-08 2018-05-04 深圳市海梁科技有限公司 一种车载tbox装置

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040073658A1 (en) * 2002-10-10 2004-04-15 Cisco Technology, Inc. System and method for distributed diagnostics in a communication system
CN102215259A (zh) * 2011-05-31 2011-10-12 佘培嘉 网络家用电器智能系统
CN202813970U (zh) * 2012-09-17 2013-03-20 苏州三星电子有限公司 冰箱间室工作模式调整系统和冰箱
CN105049217A (zh) * 2015-06-17 2015-11-11 上海斐讯数据通信技术有限公司 一种控制智能网络设备调试接口的方法及系统
CN106506281B (zh) * 2016-11-24 2019-12-03 深圳市金溢科技股份有限公司 车辆收费通信测试方法、网络设备及系统
CN107483525A (zh) * 2016-12-23 2017-12-15 宝沃汽车(中国)有限公司 模式管理方法、车辆终端及车联网系统
CN106872879B (zh) * 2017-02-23 2020-03-20 苏州福瑞思信息科技有限公司 硬件无线调试方法、装置、通信芯片及电子设备

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105141704A (zh) * 2015-09-24 2015-12-09 重庆长安汽车股份有限公司 车载通信控制器总成的休眠唤醒方法
CN105610984A (zh) * 2016-03-07 2016-05-25 安徽江淮汽车股份有限公司 一种远程控制车辆的方法
US20170302626A1 (en) * 2016-04-13 2017-10-19 VisualThreat Inc. Vehicle communication system based on controller-area network bus firewall
CN207321243U (zh) * 2017-11-08 2018-05-04 深圳市海梁科技有限公司 一种车载tbox装置

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111352646A (zh) * 2020-02-21 2020-06-30 联创汽车电子有限公司 Mpu软件升级方法及其升级系统
CN111352646B (zh) * 2020-02-21 2024-03-12 上海汽车工业(集团)总公司 Mpu软件升级方法及其升级系统
CN112084142A (zh) * 2020-08-10 2020-12-15 广州汽车集团股份有限公司 一种日志存储方法、装置及t-box
CN112363925A (zh) * 2020-11-10 2021-02-12 湖北亿咖通科技有限公司 车机基础信息的获取方法、电子设备及计算机存储介质

Also Published As

Publication number Publication date
CN110650218A (zh) 2020-01-03
CN110650218B (zh) 2022-12-02

Similar Documents

Publication Publication Date Title
WO2020001281A1 (zh) 一种TBox控制方法及装置、计算机可读存储介质
EP3675418B1 (en) Issuance of service configuration file
US10812597B2 (en) Content delivery network (CDN) management system, method, and apparatus
EP3495938B1 (en) Raid configuration
US9529995B2 (en) Auto discovery of virtual machines
US7554931B2 (en) System and method for remote dynamic network configuration
CN114070723B (zh) 裸金属服务器的虚拟网络配置方法、系统及智能网卡
US8612540B2 (en) Wireless data card and working method of the wireless data card
CN109587005B (zh) 连接检测方法、装置、计算机设备以及可读存储介质
WO2019141121A1 (zh) 汽车诊断仪及其运行系统方法、汽车诊断系统
CN110764846B (zh) 基于本地代理服务实现跨浏览器调用电脑外接设备的方法
CN112953775A (zh) 一种车机升级系统及方法
US10499311B2 (en) Method and apparatus for implementing network sharing
US8332510B2 (en) Proxy detection by service processor
US20070155422A1 (en) Method for controlling mobile data connection through USB Ethernet management of mobile station
CN113766041B (zh) 获取第一服务器媒体访问控制mac地址的方法、装置、设备及存储介质
US8326919B1 (en) Network address translation auto-discovery in data storage networks
US11283881B1 (en) Management and protection of internet of things devices
KR102241501B1 (ko) 이종의 통신 인터페이스를 제어하는 단말의 동작 방법 및 그 장치
US8601108B1 (en) Credential authentication and authorization in a server device
JP6802279B2 (ja) 自動車の表示装置への表示すべきメッセージの伝送
CN115996237B (zh) 用于物联网终端的远程管理方法、处理器及存储介质
CN111726295B (zh) 报文处理方法、装置、网络设备及计算机可读存储介质
CN117640589A (zh) 用于bmc的管理网口ip地址配置方法、bmc芯片及服务器
CN118101518A (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: 19825878

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 12.06.2021)

122 Ep: pct application non-entry in european phase

Ref document number: 19825878

Country of ref document: EP

Kind code of ref document: A1