[go: up one dir, main page]

CN106227688A - A kind of compatible multimodal target machine software maintenance communication means - Google Patents

A kind of compatible multimodal target machine software maintenance communication means Download PDF

Info

Publication number
CN106227688A
CN106227688A CN201610595946.6A CN201610595946A CN106227688A CN 106227688 A CN106227688 A CN 106227688A CN 201610595946 A CN201610595946 A CN 201610595946A CN 106227688 A CN106227688 A CN 106227688A
Authority
CN
China
Prior art keywords
target machine
maintenance
interface
data
communication interface
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610595946.6A
Other languages
Chinese (zh)
Inventor
马瑞
颜纪迅
朱立平
马永忠
徐建军
郑小宁
罗星原
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xian Flight Automatic Control Research Institute of AVIC
Original Assignee
Xian Flight Automatic Control Research Institute of AVIC
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 Xian Flight Automatic Control Research Institute of AVIC filed Critical Xian Flight Automatic Control Research Institute of AVIC
Priority to CN201610595946.6A priority Critical patent/CN106227688A/en
Publication of CN106227688A publication Critical patent/CN106227688A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Prevention of errors by analysis, debugging or testing of software
    • G06F11/362Debugging of software
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Prevention of errors by analysis, debugging or testing of software
    • G06F11/3698Environments for analysis, debugging or testing of software
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4063Device-to-bus coupling
    • G06F13/4068Electrical coupling
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/403Bus networks with centralised control, e.g. polling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Debugging And Monitoring (AREA)

Abstract

本发明属于嵌入式软件开发设计技术,具体涉及一种兼容多模式的目标机软件维护通信方法。本发明兼容多模式的目标机软件维护通信方法在目标机上制定统一的软件更新、调试等维护服务的调用接口,在目标机软件维护状态下,目标机在其支持的各通信接口间循环查询是否收到数据,当从任意接口接收到数据后,将继续从该接口接收数据,直到组成完整的一包数据,然后基于该接口下通信协议分析数据包中上位机调用服务信息,调用目标机中对应的维护服务,在得到维护服务的响应数据后,通过该通信接口返回响应数据,完成上位机的一次维护服务请求,然后目标机继续在各通信接口间循环查询,重复以上过程,实现对各接口的维护服务支持。

The invention belongs to embedded software development and design technology, in particular to a multi-mode compatible target machine software maintenance communication method. The present invention is compatible with the multi-mode target machine software maintenance communication method. On the target machine, a unified call interface for software update, debugging and other maintenance services is formulated. After receiving data, after receiving data from any interface, it will continue to receive data from this interface until a complete packet of data is formed, and then analyze the host computer call service information in the data packet based on the communication protocol under this interface, and call the target machine. The corresponding maintenance service, after obtaining the response data of the maintenance service, returns the response data through the communication interface, and completes a maintenance service request from the upper computer, and then the target computer continues to query circularly among the communication interfaces, and repeats the above process to realize the maintenance of each Maintenance service support for the interface.

Description

一种兼容多模式的目标机软件维护通信方法A Compatible Multi-mode Target Machine Software Maintenance Communication Method

技术领域technical field

本发明属于嵌入式软件开发设计技术,具体涉及一种兼容多模式的目标机软件维护通信方法。The invention belongs to embedded software development and design technology, in particular to a multi-mode compatible target machine software maintenance communication method.

背景技术Background technique

对于由多个不同架构的目标机组成的嵌入式系统,在系统不同的开发阶段,每个目标机都存在不同的软件更新与调试连接需求,每种需求下存在不同的主机与目标机通信方式,如在单板开发阶段通过串口或以太网线通信,在系统维护阶段通过系统内总线通信等。传统开发过程中,无论何种需求模式下目标机都只支持一种固定的通信方式,而一种固定的通信并不适用系统在不同开发阶段目标机软件更新与调试需求,这种目标机通信模式的单一性导致系统开发阶段的软件更新与调试过程复杂,效率低下,增加系统研制成本。For an embedded system composed of multiple target machines with different architectures, each target machine has different software update and debugging connection requirements in different development stages of the system, and there are different communication methods between the host machine and the target machine under each requirement , such as communicating through serial port or Ethernet cable in the single board development stage, communicating through the system bus in the system maintenance stage, etc. In the traditional development process, the target machine only supports one fixed communication mode regardless of the demand mode, and a fixed communication method is not suitable for the software update and debugging requirements of the target machine in different development stages of the system. This target machine communication The singleness of the mode leads to complex software update and debugging process in the system development stage, low efficiency and increased system development cost.

发明内容Contents of the invention

本发明的目的是:引入一种兼容多模式的目标机软件维护通信方法。The purpose of the present invention is to introduce a compatible multi-mode target machine software maintenance communication method.

本发明采取的技术方案是:在目标机上制定统一的软件更新、调试等维护服务的调用接口,当目标机在软件维护状态下时,目标机在其支持的各通信接口间循环查询是否收到数据,当目标机从任意接口接收到数据后,将继续从该接口接收数据,直到组成该通信接口下完整的一包数据,目标机基于该接口下通信协议分析获得上位机调用服务信息并调用对应的维护服务,在得到维护服务的响应数据后,通过该通信接口返回响应数据,完成上位机的一次维护服务请求,然后目标机继续在各通信接口间循环查询,实现对各接口的维护服务支持,从而满足不同模式的维护通信需求。具体操作步骤如下:The technical solution adopted by the present invention is: on the target machine, formulate unified calling interfaces for maintenance services such as software update and debugging, and when the target machine is in the software maintenance state, the target machine circularly inquires whether the Data, when the target computer receives data from any interface, it will continue to receive data from this interface until a complete packet of data under the communication interface is formed. The target computer obtains the service information of the host computer based on the analysis of the communication protocol under the interface and calls The corresponding maintenance service, after obtaining the response data of the maintenance service, returns the response data through the communication interface, and completes a maintenance service request from the upper computer, and then the target computer continues to circularly inquire among the communication interfaces to realize the maintenance service for each interface Support, so as to meet the maintenance communication requirements of different modes. The specific operation steps are as follows:

步骤1 在目标机端,对软件更新、调试等各类维护服务需求制定统一的调用接口,同一类服务在不同通信接口访问时的调用接口完全相同;Step 1 On the target machine side, formulate a unified call interface for various maintenance service requirements such as software update and debugging. The call interface of the same type of service is exactly the same when accessed by different communication interfaces;

步骤2 目标机启动并运行在维护状态,目标机轮流循环查询支持的总线通信接口,当从任何一个总线通信接口接收到数据后,目标机基于该通信接口的通信协议分析接收到的数据并继续接收数据,直到获得该通信接口下通信协议指定的一个完整的数据包;Step 2. The target computer starts and runs in the maintenance state. The target computer takes turns to query the supported bus communication interfaces. After receiving data from any bus communication interface, the target computer analyzes the received data based on the communication protocol of the communication interface and continues Receive data until a complete data packet specified by the communication protocol under the communication interface is obtained;

步骤3 目标机根据上述通信接口的通信协议解析获得数据包中包含的上位机调用维护服务信息,调用对应的维护服务;Step 3: According to the communication protocol of the above-mentioned communication interface, the target machine analyzes and obtains the host computer calling maintenance service information contained in the data packet, and calls the corresponding maintenance service;

步骤4 目标机执行维护服务,返回响应数据,将响应数据通过接收到数据的通信接口返回给上位机,完成上位机的一次维护服务请求;Step 4: The target computer executes the maintenance service, returns the response data, and returns the response data to the host computer through the communication interface that receives the data, and completes a maintenance service request of the host computer;

步骤5 目标机继续在支持的总线通信接口间循环查询,重复步骤2到步骤4的过程。Step 5 The target machine continues to query among the supported bus communication interfaces, repeating the process from step 2 to step 4.

本发明具有的优点和有益效果:本发明一种兼容多模式的目标机软件维护通信方法,通过对目标机上维护服务的统一接口定义,以及对目标机支持的各通信接口轮询查询,支持在嵌入式系统不同开发阶段的维护通信需求,在单板开发阶段可通过串口或以太网进行软件更新与调试,在系统集成阶段可通过系统内总线做软件更新与调试,不需将单板从系统中取出单独连接通信线路与供电,便于系统在各开发阶段的维护过程,加强了系统的可维护性,提高了嵌入式软件开发与维护效率。The present invention has the advantages and beneficial effects: the present invention is a multi-mode compatible target machine software maintenance communication method, through the uniform interface definition of the maintenance service on the target machine, and the polling query of each communication interface supported by the target machine, it supports The maintenance and communication requirements of the embedded system at different development stages can be updated and debugged through the serial port or Ethernet during the single board development stage, and can be updated and debugged through the system bus during the system integration stage, without the need to disconnect the single board from the system The separate connection of communication lines and power supply is taken out of the middle, which facilitates the maintenance process of the system at each development stage, strengthens the maintainability of the system, and improves the efficiency of embedded software development and maintenance.

附图说明Description of drawings

图1是兼容多模式的目标机软件维护方法总体流程图。FIG. 1 is an overall flowchart of a multi-mode compatible target machine software maintenance method.

具体实施方式detailed description

下面以目标机在单板或系统模式下进行目标机软件维护为例,对一种兼容多模式的目标机软件维护方法进行介绍,方法总体流程图见图1,具体步骤如下:Taking the target machine software maintenance in single board or system mode as an example, a multi-mode compatible target machine software maintenance method is introduced below. The overall flow chart of the method is shown in Figure 1, and the specific steps are as follows:

步骤一 在目标机端,对目标机上软件更新、调试等各类维护服务需求制定统一的调用接口,如对目标机Flash访问、寄存器读取、内存访问分别制定统一的服务调用接口,同一类服务在通过目标机的不同通信接口访问时的调用服务接口完全相同。Step 1 On the target machine side, a unified call interface is formulated for various maintenance service requirements such as software update and debugging on the target machine, such as a unified service call interface for target machine Flash access, register reading, and memory access. The call service interface is exactly the same when accessed through different communication interfaces of the target machine.

步骤二 目标机根据维护需求处于单板模式单独维护或处于系统模式基于整个系统维护,在目标机启动并运行在维护状态后,目标机循环轮流查询支持的总线通信接口,当从任何一个总线通信接口接收到数据后,目标机基于该通信接口的通信协议分析接收到的数据并继续接收数据,直到按照该通信接口下通信协议获得一个完整的数据包。Step 2. According to the maintenance requirements, the target machine is in the single-board mode for individual maintenance or in the system mode for maintenance based on the entire system. After the target machine is started and running in the maintenance state, the target machine will take turns querying the supported bus communication interfaces. When communicating from any bus After the interface receives the data, the target computer analyzes the received data based on the communication protocol of the communication interface and continues to receive the data until a complete data packet is obtained according to the communication protocol of the communication interface.

步骤三 目标机根据所述接收到数据包的通信接口的通信协议解析获得的数据包,分析数据包中上位机请求调用的维护服务信息,目标机调用对应的维护服务,如上位机请求下载Flash数据,则目标机调用Flash访问服务接口,将上位机请求的参数传递给服务接口。Step 3 The target machine parses the obtained data packet according to the communication protocol of the communication interface receiving the data packet, analyzes the maintenance service information that the host computer requests to call in the data packet, and the target machine calls the corresponding maintenance service, such as the host computer requests to download Flash data, the target computer calls the Flash to access the service interface, and passes the parameters requested by the host computer to the service interface.

步骤四 目标机执行上述调用的维护服务,返回响应数据,如上述Flash访问服务将返回下载Flash数据是否成功的响应数据,目标机将响应数据通过接收到上位机数据的通信接口返回给上位机,完成上位机的一次维护服务请求;Step 4 The target machine executes the maintenance service of the above call, and returns the response data. For example, the above-mentioned Flash access service will return the response data of whether the download of the Flash data is successful, and the target machine returns the response data to the host computer through the communication interface that receives the host computer data. Complete a maintenance service request of the upper computer;

步骤五 目标机继续在支持的总线通信接口间循环查询,重复步骤二到步骤四的过程。实现对各类总线接口维护服务的支持,从而满足不同模式的维护通信需求,由此满足单板维护模式和系统维护模式下的各类维护需求。Step 5 The target computer continues to query among the supported bus communication interfaces, repeating the process from step 2 to step 4. Realize the support for various bus interface maintenance services, so as to meet the maintenance communication requirements of different modes, thereby meeting various maintenance requirements in the single board maintenance mode and system maintenance mode.

Claims (2)

1. a compatibility multimodal target machine software maintenance communication means, it is characterised in that formulate unification on target machine The calling interface of service is safeguarded in software upgrading, debugging etc., and when target machine is under software maintenance state, target machine is supported at it Between each communication interface, whether cyclic query receives data, when target machine is after any interface to data, continuation is connect from this Mouth receives data, until forming bag data complete under this communication interface, target machine is based on Protocol Analysis under this interface Obtain host computer call information on services and call the maintenance service of correspondence, after being maintained the response data of service, by this Communication interface returns response data, completes the full maintenance service request of host computer, and then target machine continues in each communication interface Between cyclic query, it is achieved the maintenance service support to each interface.
Compatibility the most according to claim 1 multimodal target machine software maintenance communication means, it is characterised in that specifically walk Rapid as follows:
To software upgrading, debugging etc. are all kinds of, step 1, at target machine end, safeguards that demand for services formulates unified calling interface, same The class service calling interface when different communication interface accessing is identical;
Step 2 target machine starts and operates in maintenance state, target machine cyclic query in turn support bus communication interface, when from After any one bus communication interface receives data, the number that target machine Protocol Analysis based on this communication interface receives According to and continue to data, until obtaining the complete packet that communication protocol is specified under this communication interface;
Step 3 target machine resolves, according to the communication protocol of above-mentioned communication interface, the host computer comprised in acquisition packet and calls maintenance Information on services, calls the maintenance service of correspondence;
Step 4 target machine performs to safeguard service, returns response data, response data is returned by the communication interface receiving data Back to host computer, complete the full maintenance service request of host computer;
Step 5 target machine continues cyclic query between the bus communication interface supported, repeats the step 2 process to step 4.
CN201610595946.6A 2016-07-26 2016-07-26 A kind of compatible multimodal target machine software maintenance communication means Pending CN106227688A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610595946.6A CN106227688A (en) 2016-07-26 2016-07-26 A kind of compatible multimodal target machine software maintenance communication means

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610595946.6A CN106227688A (en) 2016-07-26 2016-07-26 A kind of compatible multimodal target machine software maintenance communication means

Publications (1)

Publication Number Publication Date
CN106227688A true CN106227688A (en) 2016-12-14

Family

ID=57533054

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610595946.6A Pending CN106227688A (en) 2016-07-26 2016-07-26 A kind of compatible multimodal target machine software maintenance communication means

Country Status (1)

Country Link
CN (1) CN106227688A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106155637A (en) * 2016-07-26 2016-11-23 中国航空工业集团公司西安飞行自动控制研究所 A kind of Multi-target machine parallel communication method based on redundance
CN110366038A (en) * 2019-07-11 2019-10-22 四川长虹电器股份有限公司 The method of multiversion software hardware compatibility multiple technologies state
CN113760627A (en) * 2021-07-27 2021-12-07 飞腾信息技术有限公司 Method and device for controlling interface debugging in bus by adopting response mechanism

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006095994A1 (en) * 2005-03-07 2006-09-14 Lg Electronics Inc. Providing mobility management protocol information to a mobile terminal for performing handover in a mobile communication system
CN1968288A (en) * 2006-09-22 2007-05-23 上海微电子装备有限公司 Data communication system and method for distributed system
CN102567029A (en) * 2011-12-31 2012-07-11 深圳市中兴昆腾有限公司 Extendable software design architecture
CN102902624A (en) * 2012-11-09 2013-01-30 上海斐讯数据通信技术有限公司 Software debugging system and method
CN103984968A (en) * 2014-05-13 2014-08-13 南京普天通信股份有限公司 Multiplexing data collection system and method with unified external interfaces
CN104539631A (en) * 2015-01-20 2015-04-22 成都市酷岳科技有限公司 Method and module for realizing information exchange and high-speed transmission
CN104656514A (en) * 2015-01-20 2015-05-27 成都信升斯科技有限公司 Intelligent data acquisition system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2006095994A1 (en) * 2005-03-07 2006-09-14 Lg Electronics Inc. Providing mobility management protocol information to a mobile terminal for performing handover in a mobile communication system
CN1968288A (en) * 2006-09-22 2007-05-23 上海微电子装备有限公司 Data communication system and method for distributed system
CN102567029A (en) * 2011-12-31 2012-07-11 深圳市中兴昆腾有限公司 Extendable software design architecture
CN102902624A (en) * 2012-11-09 2013-01-30 上海斐讯数据通信技术有限公司 Software debugging system and method
CN103984968A (en) * 2014-05-13 2014-08-13 南京普天通信股份有限公司 Multiplexing data collection system and method with unified external interfaces
CN104539631A (en) * 2015-01-20 2015-04-22 成都市酷岳科技有限公司 Method and module for realizing information exchange and high-speed transmission
CN104656514A (en) * 2015-01-20 2015-05-27 成都信升斯科技有限公司 Intelligent data acquisition system

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106155637A (en) * 2016-07-26 2016-11-23 中国航空工业集团公司西安飞行自动控制研究所 A kind of Multi-target machine parallel communication method based on redundance
CN110366038A (en) * 2019-07-11 2019-10-22 四川长虹电器股份有限公司 The method of multiversion software hardware compatibility multiple technologies state
CN110366038B (en) * 2019-07-11 2021-08-06 四川长虹电器股份有限公司 Method for multi-version software equipment to be compatible with multiple technical states
CN113760627A (en) * 2021-07-27 2021-12-07 飞腾信息技术有限公司 Method and device for controlling interface debugging in bus by adopting response mechanism
CN113760627B (en) * 2021-07-27 2023-03-21 飞腾信息技术有限公司 Method and device for controlling interface debugging in bus by adopting response mechanism

Similar Documents

Publication Publication Date Title
CN101447884B (en) A method, device and system for implementing software upgrade through cooperation between network elements
CN115361327B (en) Method, device, terminal and medium for automatically testing NCSI command of network card
CN105407138B (en) Configuration file loading method and device, communication equipment
CN106227688A (en) A kind of compatible multimodal target machine software maintenance communication means
CN108900317B (en) Method for batch upgrading of multiple network devices in Ethernet broadcast mode
CN109104305A (en) A kind of node increases method and relevant apparatus
CN104010005A (en) A method and system for supporting access of different types of sensors
CN101282240A (en) A network device management method, device and system
CN104468260A (en) Recognition method, device and system for mobile terminal device
CN111736871A (en) FPGA chip upgrade method, device and system
CN111817878A (en) Networking method and device of intelligent equipment and cloud server
WO2015062494A1 (en) Method and device for sdk uploading and downloading of a file
CN203301532U (en) Cloud desktop system
CN104462488B (en) The High Availabitity of database solves method and apparatus
CN104239222B (en) A kind of memory pool access method, equipment and system
CN109618363B (en) Mobile gateway test system and method
CN103812946A (en) Method and system for online cloud updating of AR application program
CN106982131A (en) Initiate method, the apparatus and system of VNF instantiations
CN102262540A (en) Basic software parameter definition extension method applied to AUTOSAR (AUTomotive Open System Architecture) ECU (Electric Control Unit) configuration
CN104506405A (en) Method and device for cross-domain access
CN101504613B (en) Distributed dynamic binary translation method used for limited system
CN103677928A (en) System and method for achieving rapid software serial port upgrading in GNSS receiver
CN103458058B (en) A kind of network household appliance communication agent method and apparatus
CN104836708A (en) Method and device for binding information
CN105744344B (en) Play control method and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20161214

WD01 Invention patent application deemed withdrawn after publication