CN108737529B - SCA waveform control method, apparatus, computer device and storage medium - Google Patents

SCA waveform control method, apparatus, computer device and storage medium Download PDF

Info

Publication number
CN108737529B
CN108737529B CN201810448175.7A CN201810448175A CN108737529B CN 108737529 B CN108737529 B CN 108737529B CN 201810448175 A CN201810448175 A CN 201810448175A CN 108737529 B CN108737529 B CN 108737529B
Authority
CN
China
Prior art keywords
sca
waveform
waveform control
domain manager
socket
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.)
Active
Application number
CN201810448175.7A
Other languages
Chinese (zh)
Other versions
CN108737529A (en
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.)
Hunan Keyshare Communication Technology Co ltd
Hunan Institute of Science and Technology
Original Assignee
Hunan Keyshare Communication Technology Co ltd
Hunan Institute of Science and Technology
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 Hunan Keyshare Communication Technology Co ltd, Hunan Institute of Science and Technology filed Critical Hunan Keyshare Communication Technology Co ltd
Priority to CN201810448175.7A priority Critical patent/CN108737529B/en
Publication of CN108737529A publication Critical patent/CN108737529A/en
Application granted granted Critical
Publication of CN108737529B publication Critical patent/CN108737529B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/161Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
    • H04L69/162Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields involving adaptations of sockets based mechanisms
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/61Installation
    • G06F8/62Uninstallation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management
    • 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/02Standardisation; Integration
    • H04L41/0233Object-oriented techniques, for representation of network management data, e.g. common object request broker architecture [CORBA]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/34Network arrangements or protocols for supporting network services or applications involving the movement of software or configuration parameters 

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer And Data Communications (AREA)

Abstract

The application provides an SCA waveform control method, an apparatus, a computer device and a storage medium, wherein the method comprises the following steps: the SCA equipment runs a Socket server program to obtain object reference of the SCA domain manager, a preset Socket port is monitored, an upper computer runs a Socket client program to generate an SCA waveform control command and send the SCA waveform control command to the server, the Socket server in the SCA equipment calls a special function inside the SCA domain manager according to the SCA waveform control command, waveform control operation is executed, a waveform operation result is recorded, and the Socket server in the SCA equipment pushes the waveform control result to the upper computer. In the whole process, the waveform control of the SCA equipment is not required to be carried out through a CORBA middleware, so that a large amount of computing resources and storage resources of an industrial personal computer are not required to be occupied, and the development of the SCA technology can be effectively promoted.

Description

SCA waveform control method, apparatus, computer device and storage medium
Technical Field
The present application relates to the field of Communications technologies, and in particular, to a method and an apparatus for controlling a SCA (Software Communications Architecture) waveform, a computer device, and a storage medium.
Background
The software radio organically combines hardware, software and radio technologies together to form a flexible and diverse multifunctional distributed system. The basic design concept is based on a universal, standard and modularized hardware platform, and various functions of the radio station are realized through software programming. In order to achieve the design goal of the software Radio System, various software Radio System architectures are proposed in turn, wherein the SCA architecture formulated by the Joint Tactical Radio System (JTRS) project of the united army is generally accepted and most widely applied.
In conventional implementations, CORBA (Common Object Request Broker Architecture) middleware is generally used as a communication protocol between the host computer and the SCA device. CORBA middleware has the advantage of shielding the difference of different operating systems, and is particularly suitable for large distributed computing environments comprising a plurality of nodes and different operating systems. However, for a simple one-to-one system only including two nodes of an upper computer and SCA equipment, the CORBA middleware is adopted to perform waveform control on the SCA equipment, which occupies a large amount of computing resources and storage space, and thus the development of the SCA technology is seriously hindered.
Disclosure of Invention
In view of the above, there is a need to provide a new SCA waveform control method, apparatus, computer device and storage medium that occupy less computing resources and less storage space to promote the development of SCA technology.
A method of SCA waveform control, the method comprising:
running a Socket server program, acquiring an object reference of an SCA domain manager, and monitoring a preset Socket port;
receiving an SCA waveform control command sent by an upper computer running Socket client program;
calling a special function inside an SCA domain manager according to the SCA waveform control command, executing waveform control operation, and recording a waveform operation result;
and pushing the waveform operation result to an upper computer.
In one embodiment, after pushing the waveform operation result to the upper computer, the method further includes:
and when an SCA waveform control command retransmitted by the Socket client program operated by the upper computer is received, returning to the step of calling a special function in the SCA domain manager according to the SCA waveform control command and executing a waveform control operation.
In one embodiment, the running a Socket server program, obtaining an object reference of an SCA domain manager, and monitoring a preset Socket port includes:
starting an SCA system and running a Socket server program;
and acquiring the object reference of the SCA domain manager through CORBA middleware, and monitoring a preset Socket port.
In one embodiment, the calling an internal dedicated function of the SCA domain manager according to the SCA waveform control command, executing a waveform control operation, and recording a waveform operation result includes:
analyzing the SCA waveform control command, calling an interface function provided in the domain manager through CORBA, executing a corresponding waveform operation command, and recording a waveform operation result.
In one embodiment, before pushing the waveform operation result to the upper computer, the method further includes:
packaging the waveform operation result;
the propelling movement the wave form operation result is to the host computer, include:
and pushing the packaged waveform operation result.
In one embodiment, the encapsulating the waveform operation result includes:
loading the execution result of the waveform, packaging the execution result of the waveform starting, packaging the execution result of the waveform stopping, and packaging the execution result of the waveform unloading.
A method of SCA waveform control, the method comprising:
creating an independent thread, and creating a Socket client to generate an SCA waveform control command when receiving a waveform control operation request sent by an upper computer;
sending the SCA waveform control command to a Socket server;
receiving a Socket server according to an SCA waveform control command, calling a special function inside an SCA domain manager in the Socket server, executing waveform control operation, and feeding back a waveform operation result;
and when the fed-back waveform operation result is abnormal, retransmitting the SCA waveform control command to a Socket server.
An SCA waveform control system, the system comprising:
the system comprises an initial operation module, a service side management module and a service side management module, wherein the initial operation module is used for operating a Socket server program, acquiring object reference of an SCA domain manager and monitoring a preset Socket port;
the receiving module is used for receiving an SCA waveform control command sent by an upper computer running Socket client program;
the execution operation module is used for calling a special function in the SCA domain manager according to the SCA waveform control command, executing waveform control operation and recording a waveform operation result;
and the pushing module is used for pushing the waveform operation result to an upper computer.
A computer device comprising a memory storing a computer program and a processor implementing the steps of the method as described above when executing the computer program.
A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method as described above.
According to the SCA waveform control method, the SCA waveform control device, the computer equipment and the storage medium, the SCA equipment runs a Socket server program, acquires object reference of the SCA domain manager, monitors a preset Socket port, the upper computer runs the Socket client program, generates an SCA waveform control command and sends the SCA waveform control command to the server, the SCA equipment calls a special function in the SCA domain manager according to the SCA waveform control command, executes waveform control operation, records a waveform operation result, and pushes the waveform control result to the upper computer. In the whole process, the waveform control of the SCA equipment is not required to be carried out through a CORBA middleware, so that a large amount of computing resources and storage resources of an industrial personal computer are not required to be occupied, and the development of the SCA technology can be effectively promoted.
Drawings
FIG. 1 is a diagram of an exemplary embodiment of an SCA waveform control method;
FIG. 2 is a flow chart illustrating an exemplary SCA waveform control method;
FIG. 3 is a schematic flow chart of an SCA waveform control method according to another embodiment;
FIG. 4 is a diagram illustrating a waveform loading execution result feedback command format;
FIG. 5 is a diagram illustrating a waveform start execution result feedback command format;
FIG. 6 is a diagram illustrating a waveform stop result feedback command format;
FIG. 7 is a diagram illustrating a waveform unload execution result feedback command format;
FIG. 8 is a flow chart illustrating a method for SCA waveform control in accordance with another embodiment;
fig. 9 is a schematic flow chart of the application of the SCA waveform control method to a Socket client program in an upper computer;
FIG. 10 is a diagram illustrating a waveform load command format;
FIG. 11 is a flowchart illustrating the packaging of a waveform load request;
FIG. 12 is a diagram illustrating a waveform unload command format;
FIG. 13 is a diagram illustrating a waveform start command format;
FIG. 14 is a diagram illustrating a waveform stop command format;
FIG. 15 is a diagram showing an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The SCA waveform control method provided by the application can be applied to the application environment shown in FIG. 1. The upper computer is connected with the SCA equipment through a network, a Socket client program is loaded in the upper computer, and a Socket server program is loaded in the SCA equipment. The method comprises the steps that an SCA device is electrified to operate an SCA system, a Socket server program is operated while the SCA system is operated, object reference of an SCA domain manager is obtained, and a preset Socket port is monitored; the upper computer runs a Socket client program, generates an SCA waveform control command, sends the SCA waveform control command to a Socket server running in the SCA equipment, and the Socket server calls a special function inside the SCA domain manager according to the SCA waveform control command, executes waveform control operation, records a waveform operation result and pushes the waveform control result to the upper computer.
As shown in fig. 2, an SCA waveform control method includes:
s220: and running a Socket server program, acquiring the object reference of the SCA domain manager, and monitoring a preset Socket port.
The Socket server side program is a program which can obtain the object reference of the SCA core framework domain manager and can respond to the waveform management request from the upper computer software, and data interaction between the SCA core framework and the upper computer program is realized through the Socket. The domain manager is a module for implementing control, configuration, and management of all software resources, logic devices, waveform applications, services, and the like in the SCA device. The SCA equipment runs a Socket server program while powering on the SCA system, acquires the domain manager object reference in the SCA system, monitors a preset Socket port in the SCA equipment, and waits for a waveform management command sent by a Socket client program.
S240: and receiving an SCA waveform control command sent by the upper computer running Socket client program.
When the upper computer runs a Socket client program and generates and sends an SCA waveform control command to the SCA equipment, the SCA equipment immediately receives the command and carries out the next response processing.
S260: and calling a special function inside the SCA domain manager according to the SCA waveform control command, executing waveform control operation and recording a waveform operation result.
The internal special function of the domain manager refers to a special function preset in the domain manager in the SCA equipment, the domain manager is used for realizing control, configuration and management of all software resources, logic equipment, waveform application, services and the like in the SCA equipment, the function for realizing the corresponding operation and management function is recorded in the domain manager in advance, and when the corresponding management function needs to be realized, only the part of the special function needs to be directly called. And the Socket server in the SCA equipment calls a special function inside the SCA domain manager according to the SCA waveform control command, executes waveform control operation and records a waveform operation result. Specifically, once receiving a waveform control command message, a Socket server in the SCA device parses the message, and then calls an interface function provided inside the domain manager through CORBA to execute a corresponding waveform operation command.
S280: and pushing the waveform operation result to an upper computer.
And the Socket server in the SCA equipment feeds back the waveform operation result to the upper computer. If not, after the upper computer receives the waveform operation result, a Socket client program in the upper computer verifies whether the waveform operation is correct, and if so, the SCA waveform control of the current round is finished; and if not, sending the SCA waveform control command to the SCA equipment again, and adding 1 to the retransmission times accumulation.
According to the SCA waveform control method, the SCA equipment runs a Socket server program, object reference of an SCA domain manager is obtained, a preset Socket port is monitored, the upper computer runs a Socket client program, an SCA waveform control command is generated and sent to the server, the Socket server in the SCA equipment calls a special function in the SCA domain manager according to the SCA waveform control command, waveform control operation is executed, a waveform operation result is recorded, and the Socket server in the SCA equipment pushes the waveform control result to the upper computer. In the whole process, the waveform control of the SCA equipment is not required to be carried out through a CORBA middleware, so that a large amount of computing resources and storage resources of an industrial personal computer are not required to be occupied, and the development of the SCA technology can be effectively promoted.
As shown in fig. 3, in one embodiment, after step S280, the method further includes:
s290: and when an SCA waveform control command retransmitted by the upper computer running Socket client program is received, returning to the step of calling a special function in the SCA domain manager according to the SCA waveform control command and executing waveform control operation.
The Socket server in the SCA device feeds back the waveform operation result after the Socket client program verification step S280, verifies whether the waveform operation result is normal, and if the waveform operation result is abnormal, the upper computer runs the Socket client program to resend the SCA waveform control command to the Socket server in the SCA device, and adds 1 to the cumulative retransmission times. And when the Socket server in the SCA device receives the retransmitted SCA waveform control command, returning to the step S260 to re-execute the waveform control operation.
In one embodiment, the step of running a Socket server program, acquiring an object reference of an SCA domain manager, and monitoring a preset Socket port includes: starting an SCA system and running a Socket server program; and acquiring the object reference of the SCA domain manager through CORBA middleware, and monitoring a preset Socket port.
In the SCA equipment, when the SCA equipment is started and powered on, the SCA system is operated, meanwhile, a Socket server program is operated, the SCA domain manager object reference is obtained through CORBA middleware, monitoring is carried out at a pre-designated Socket port, and an SCA waveform control command sent by a Socket client program is waited.
In one embodiment, calling a dedicated function inside the SCA domain manager according to the SCA waveform control command, executing a waveform control operation, and recording a waveform operation result, includes: analyzing the SCA waveform control command, calling an interface function provided in the domain manager through CORBA, executing a corresponding waveform operation command, and recording a waveform operation result.
As shown in fig. 3, in one embodiment, before step S280, the method further includes:
s270: and packaging the waveform operation result.
And packaging the waveform operation result, and feeding the packaged waveform operation result back to the Socket server. Optionally, the packed waveform operation results include: loading the execution result of the waveform, packaging the execution result of the waveform starting, packaging the execution result of the waveform stopping, and packaging the execution result of the waveform unloading. The process of packaging the results of the above-described waveform operations will be described in detail with reference to the accompanying drawings.
Constructing a waveform loading execution result feedback message according to the format of FIG. 4, firstly creating a character array buf with the fixed length of 68 bytes, then constructing a message header, storing a command code 0x0011 and a parameter list length 0x0040 (decimal 64) into the first 4 bytes of the buf according to a small-end storage format, finally constructing a parameter list, and storing a waveform name and a feedback result into the last 64 bytes of the buf according to the small-end storage format until the message encapsulation is finished.
And starting to execute result message encapsulation aiming at the waveform. Constructing a waveform starting execution result feedback message according to the format of FIG. 5, firstly creating a character array buf with the fixed length of 68 bytes, then constructing a message header, storing a command code 0x0012 and a parameter list length 0x0040 (decimal 64) into the first 4 bytes of the buf according to a small-end storage format, finally constructing a parameter list, and storing a waveform name and a feedback result into the last 64 bytes of the buf according to the small-end storage format until the message encapsulation is finished.
And stopping executing result message encapsulation aiming at the waveform. And constructing a waveform stop execution result feedback message according to the format of FIG. 6, firstly creating a character array buf with the fixed length of 68 bytes, then constructing a message header, storing a command code 0x0013 and a parameter list length 0x0040 (decimal 64) into the first 4 bytes of the buf according to a small-end storage format, finally constructing a parameter list, and storing a waveform name and a feedback result into the last 64 bytes of the buf according to the small-end storage format until the message encapsulation is finished.
Result messaging is performed for waveform offload. Constructing a waveform unloading execution result feedback message according to the format of FIG. 7, firstly creating a character array buf with the fixed length of 68 bytes, then constructing a message header, storing a command code 0x0014 and a parameter list length 0x0040 (decimal 64) into the first 4 bytes of the buf according to a small-end storage format, finally constructing a parameter list, and storing a waveform name and a feedback result into the last 64 bytes of the buf according to the small-end storage format until the message encapsulation is finished.
As shown in fig. 8, an SCA waveform control method is applied to an upper computer, where the upper computer includes a Socket client program, and the method includes:
s820: creating an independent thread, and creating a Socket client to generate an SCA waveform control command when receiving a waveform control operation request sent by an upper computer;
s840: sending an SCA waveform control command to a Socket server;
s860: receiving a Socket server according to an SCA waveform control command, calling a special function inside an SCA domain manager in the Socket server, executing waveform control operation, and feeding back a waveform operation result;
s880: and when the fed-back waveform operation result is abnormal, retransmitting the SCA waveform control command to the Socket server.
According to the SCA waveform control method, the SCA equipment runs a Socket server program, object reference of an SCA domain manager is obtained, a preset Socket port is monitored, the upper computer runs a Socket client program, an SCA waveform control command is generated and sent to the server, the Socket server in the SCA equipment calls a special function in the SCA domain manager according to the SCA waveform control command, waveform control operation is executed, a waveform operation result is recorded, and the Socket server in the SCA equipment pushes the waveform control result to the upper computer. In the whole process, the waveform control of the SCA equipment is not required to be carried out through a CORBA middleware, so that a large amount of computing resources and storage resources of an industrial personal computer are not required to be occupied, and the development of the SCA technology can be effectively promoted.
Specifically, the waveform control operation specifically includes four operations of waveform loading, waveform starting, waveform stopping, and waveform unloading. The command format is as follows.
Figure GDA0003161000210000081
The command codes correspond to the codes of 4 commands for loading, starting, stopping and unloading the waveform application, and small-end storage is adopted; the parameter list is the parameters needed to execute the command; the length of the parameter list indicates how many bytes the parameter list has in total, and the parameter list is stored in a small-end mode.
a. Loaded waveform
The command format for loading the waveform is as follows:
Figure GDA0003161000210000082
Figure GDA0003161000210000091
the waveform loading command code is 0x0001, and the field of the waveform name in the parameter list identifies the name of the waveform to be loaded; the "waveform deployment plan" identifies the target processor to be deployed for each component of the waveform, all waveform name, component ID, device ID fields are stored in string form, and ends with '\\ 0'. The fields are defined as follows:
a.1 "waveform name": the waveform name needs to be the same as the name attribute definition of the < software > element in the SAD file of the waveform to be loaded. For example: the SAD file for a certain waveform is as follows:
<softwareassembly id="DCE:4B408302-24C4-437d-8158-0FE0FCC7A7EB"name="WF_Demo">
the "waveform name" field in the waveform load command should be "WF _ Demo".
a.2 component ID: the component ID is an identifier of the waveform component, and must be the same as the ID attribute of the < componentization > element in the SAD file. For example: two component IDs DCE: Com1 and DCE: Com2 are defined in the SAD file below.
a.3 device ID: the device ID is used to identify the device ID corresponding to the target processor whose previous component ID needs to be deployed, and the device ID must be the same as the ID attribute of the < componentization > element in the DCD file. For example: two Device IDs of DCE, Device1 and Device2, are defined in the DCD file below.
b. Start waveform
The command format of the start waveform is as follows:
Figure GDA0003161000210000092
starting waveform command encoding 0x0002, and fixing the length of a parameter list to be 32; the parameter list contains only one parameter, the waveform name, which requires a.
c. Stop waveform
The command format of the stop waveform is as follows:
Figure GDA0003161000210000101
stop waveform command code is 0x0003, parameter list length is fixed to 32; the parameter list contains only one parameter, the waveform name, which requires a.
d. Unloading waveform
The command format for the unload waveform is as follows:
Figure GDA0003161000210000102
the unload waveform command is encoded as 0x0004, with the parameter list length fixed at 32; the parameter list includes a parameter, the waveform name, which is required to be the same as a.
The waveform operation result feedback specifically comprises loading waveform result feedback, unloading waveform result feedback, starting waveform result feedback and stopping waveform result feedback, and the command format is as follows:
command encoding Parameter List Length (Unit: byte) Parameter list
2 bytes 2 bytes 0 to N bytes
The command codes correspond to codes of 4 commands of loading waveform feedback, unloading waveform result feedback, starting waveform result feedback and stopping waveform result feedback, and are stored by adopting a small end; the parameter list is a waveform operation command return result; the parameter list length indicates how many bytes the parameter list has in total, here fixed to 64 bytes, stored in a small-end manner.
e. Loading waveform result feedback
The loading waveform command result is divided into 0 (indicating success) and 1 (indicating failure), if the loading is successful, 0 is returned; if an error occurs causing an exception, 1 is returned. The command format is:
Figure GDA0003161000210000103
Figure GDA0003161000210000111
f. start waveform result feedback
The starting waveform command result is divided into 0 (indicating success) and 1 (indicating failure), if the starting is successful, 0 is returned; if an error occurs causing an exception, 1 is returned. The command format is:
Figure GDA0003161000210000112
g. stopping waveform result feedback
The stop waveform command result is divided into 0 (indicating success) and 1 (indicating failure), if the stop is successful, 0 is returned; if an error occurs causing an exception, 1 is returned. The command format is:
Figure GDA0003161000210000113
h. offloading waveform result feedback
The unloading waveform command result is divided into 0 (indicating success) and 1 (indicating failure), if the unloading is successful, 0 is returned; if an error occurs causing an exception, 1 is returned. The command format is:
Figure GDA0003161000210000114
in order to further explain the technical scheme of the SCA waveform control method of the present invention applied to the upper computer in detail, a specific application example will be used for description.
The Socket client program has the following specific steps, as shown in fig. 9:
the method comprises the following steps: creating an independent thread and waiting for a waveform control operation request sent by an industrial personal computer user;
step two: once a waveform control operation request sent by an industrial personal computer user is received, a Socket client is created, the operation request is packaged into a corresponding control command message, and the method for packaging the control command message according to different operation requests comprises the following steps:
waveform loading request message encapsulation
After receiving a waveform loading instruction sent by a user, analyzing an SAD (Software Assembly description) file corresponding to the waveform stored on an industrial personal computer, acquiring a waveform name and a waveform component ID according to contents a.1 and a.2, analyzing a DCD (Device Configuration description) file corresponding to an SCA system, acquiring a Device ID according to contents a.3, flexibly specifying a Device on which a waveform component is specifically deployed according to a certain matching strategy by the user, generating a waveform component ID-Device ID pair, constructing a waveform loading message according to a format of FIG. 10, creating a character array buf with a fixed length of 4096 bytes for storing the waveform loading message, constructing a message header, storing a command code of 0x0001 and a parameter list length into the first 4 bytes of the buf according to a small-end storage format, wherein the parameter list length is the total number of bytes occupied by the waveform component ID-Device ID pair, a waveform component ID-device ID pair occupies 64 bytes, a parameter list is constructed, and the waveform name and the waveform component ID-device ID pair are stored in the byte after buf according to the small-end storage format until the message encapsulation is completed, and the design flow chart is shown in fig. 11.
Wave starting request message encapsulation
After receiving a waveform starting instruction sent by a user, analyzing an SAD file to obtain a waveform name, constructing a waveform starting message according to the format of FIG. 12, firstly creating a character array buf with the fixed length of 36 bytes, then constructing a message header, storing a command code 0x0002 and a parameter list length 0x0020 (decimal 32) into the first 4 bytes of the buf according to a small-end storage format, finally constructing a parameter list, and storing the waveform name into the 32 bytes after the buf according to the small-end storage format until the message is completely packaged.
Waveform stop request message encapsulation
After receiving a waveform stop instruction sent by a user, analyzing an SAD file to obtain a waveform name, constructing a waveform stop message according to a format of FIG. 13, firstly creating a character array buf with the fixed length of 36 bytes, then constructing a message header, storing a command code 0x0003 and a parameter list length 0x0020 (decimal 32) into the first 4 bytes of the buf according to a small-end storage format, finally constructing a parameter list, and storing the waveform name into the 32 bytes after the buf according to the small-end storage format until the message is completely packaged.
Waveform offload request message encapsulation
After receiving a waveform unloading instruction sent by a user, analyzing an SAD file to obtain a waveform name, constructing a waveform unloading message according to the format of FIG. 14, firstly creating a character array buf with the fixed length of 36 bytes, then constructing a message header, storing a command code 0x0004 and a parameter list length 0x0020 (decimal 32) into the first 4 bytes of the buf according to a small-end storage format, finally constructing a parameter list, and storing the waveform name into the 32 bytes after the buf according to the small-end storage format until the message is completely packaged.
Step three: after the message encapsulation is completed, the message is sent to a Socket server program in the SCA equipment through a Socket, and then a waveform control result is waited to be returned.
Step four: once the waveform operation result is received, analyzing the waveform operation result message, and if the result is normal, returning the result to the industrial personal computer user; if the result is abnormal, the waveform control command message is immediately retransmitted, and then the waiting is continued until a correct execution result is received or the retransmission times are exceeded, and the abnormal result is fed back to the user of the industrial personal computer;
step five: and closing the previously established Socket client, and waiting for the waveform control operation sent by the industrial personal computer user again.
In addition, the present application also provides an SCA waveform control system, the system comprising:
the system comprises an initial operation module, a service side management module and a service side management module, wherein the initial operation module is used for operating a Socket server program, acquiring object reference of an SCA domain manager and monitoring a preset Socket port;
the receiving module is used for receiving an SCA waveform control command sent by an upper computer running Socket client program;
the execution operation module is used for calling a special function in the SCA domain manager according to the SCA waveform control command, executing waveform control operation and recording a waveform operation result;
and the pushing module is used for pushing the waveform operation result to an upper computer.
For specific definition of the SCA waveform control system, reference may be made to the above definition of the SCA waveform control method, which is not described herein again. The various modules in the SCA waveform control system described above may be implemented in whole or in part by software, hardware, and combinations thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as shown in fig. 15. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The database of the computer device is used for storing relevant software data. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a SCA waveform control method.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (9)

1. A method of SCA waveform control, the method comprising:
running a Socket server program, acquiring an object reference of an SCA domain manager, and monitoring a preset Socket port;
receiving an SCA waveform control command sent by an upper computer running Socket client program;
calling an internal special function of the SCA domain manager according to the SCA waveform control command, executing waveform control operation, and recording a waveform operation result, wherein the internal special function of the domain manager refers to a special function preset in the domain manager in the SCA equipment;
pushing the waveform operation result to an upper computer;
the running of the Socket server program obtains the object reference of the SCA domain manager, and the monitoring of the preset Socket port comprises the following steps: starting an SCA system and running a Socket server program; obtaining an object reference of an SCA domain manager through CORBA middleware, and monitoring a preset Socket port;
the calling of the SCA and the special function inside the manager comprises the following steps: and calling an interface function provided inside the domain manager through CORBA.
2. The method of claim 1, wherein after pushing the waveform operation result to an upper computer, further comprising:
and when an SCA waveform control command retransmitted by the Socket client program operated by the upper computer is received, returning to the step of calling a special function in the SCA domain manager according to the SCA waveform control command and executing a waveform control operation.
3. The method of claim 1, wherein the calling an internal dedicated function of the SCA domain manager according to the SCA waveform control command, executing a waveform control operation, and recording a waveform operation result comprises:
analyzing the SCA waveform control command, calling an interface function provided in the domain manager through CORBA, executing a corresponding waveform operation command, and recording a waveform operation result.
4. The method of claim 3, wherein before pushing the waveform operation result to an upper computer, further comprising:
packaging the waveform operation result;
the propelling movement the wave form operation result is to the host computer, include:
and pushing the packaged waveform operation result.
5. The method of claim 4, wherein the encapsulating the waveform operation results comprises:
loading the execution result of the waveform, packaging the execution result of the waveform starting, packaging the execution result of the waveform stopping, and packaging the execution result of the waveform unloading.
6. A method of SCA waveform control, the method comprising:
creating an independent thread, and creating a Socket client to generate an SCA waveform control command when receiving a waveform control operation request sent by an upper computer;
sending the SCA waveform control command to a Socket server;
receiving a Socket server according to an SCA waveform control command, calling an internal special function of an SCA domain manager in the Socket server, executing waveform control operation, and feeding back a waveform operation result, wherein the internal special function of the domain manager refers to a special function preset in the domain manager in the SCA equipment; the calling of the internal special function of the SCA domain manager comprises the following steps: calling an interface function provided inside the domain manager through CORBA;
and when the fed-back waveform operation result is abnormal, retransmitting the SCA waveform control command to a Socket server.
7. An SCA waveform control system, the system comprising:
the system comprises an initial operation module, a service side management module and a service side management module, wherein the initial operation module is used for operating a Socket server program, acquiring object reference of an SCA domain manager and monitoring a preset Socket port;
the receiving module is used for receiving an SCA waveform control command sent by an upper computer running Socket client program;
the execution operation module is used for calling an internal special function of the SCA domain manager according to the SCA waveform control command, executing waveform control operation and recording a waveform operation result, wherein the internal special function of the domain manager refers to a special function preset in the domain manager in the SCA equipment;
and the pushing module is used for pushing the waveform operation result to an upper computer.
8. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method of any one of claims 1 to 6 when executing the computer program.
9. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 6.
CN201810448175.7A 2018-05-11 2018-05-11 SCA waveform control method, apparatus, computer device and storage medium Active CN108737529B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810448175.7A CN108737529B (en) 2018-05-11 2018-05-11 SCA waveform control method, apparatus, computer device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810448175.7A CN108737529B (en) 2018-05-11 2018-05-11 SCA waveform control method, apparatus, computer device and storage medium

Publications (2)

Publication Number Publication Date
CN108737529A CN108737529A (en) 2018-11-02
CN108737529B true CN108737529B (en) 2021-11-19

Family

ID=63938160

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810448175.7A Active CN108737529B (en) 2018-05-11 2018-05-11 SCA waveform control method, apparatus, computer device and storage medium

Country Status (1)

Country Link
CN (1) CN108737529B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109743396B (en) * 2019-01-10 2021-06-04 中国人民解放军国防科技大学 Component loading method of SCA software radio platform
CN110224966A (en) * 2019-06-17 2019-09-10 湖南基石通信技术有限公司 A kind of adc data fine synchronization method, system and relevant apparatus
CN111190780B (en) * 2019-12-30 2023-10-20 杭州涂鸦信息技术有限公司 Multi-platform supporting production testing method, production testing equipment and production testing system
CN113329086B (en) * 2021-05-31 2022-06-28 成都谐盈科技有限公司 Port connection system and method
CN114500689B (en) * 2022-01-30 2023-09-08 合肥美的电冰箱有限公司 Bus communication method, device, communication board, household electrical appliance and storage medium
CN116684243B (en) * 2023-07-28 2023-10-24 成都谐盈科技有限公司 Method and terminal for managing SCA component

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20080041395A (en) * 2006-11-07 2008-05-13 한국전자통신연구원 Apparatus and method of management for component on the sca system
CN102081545A (en) * 2011-01-07 2011-06-01 中国电子科技集团公司第十研究所 Method of realizing software communications architecture (SCA) on embedded platform
US8402475B2 (en) * 2007-12-17 2013-03-19 Electronics And Telecommunications Research Institute SCA-based system and method of connecting components to each other
CN104090810A (en) * 2014-07-29 2014-10-08 中国航空无线电电子研究所 Core framework integration method based on software communication system architecture
CN104615423A (en) * 2015-01-14 2015-05-13 中国人民解放军总参谋部第六十三研究所 Multi-user SCA waveform development method and device
CN107168744A (en) * 2017-05-22 2017-09-15 哈尔滨工程大学 The system and method loaded for DSP chip file

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20080041395A (en) * 2006-11-07 2008-05-13 한국전자통신연구원 Apparatus and method of management for component on the sca system
US8402475B2 (en) * 2007-12-17 2013-03-19 Electronics And Telecommunications Research Institute SCA-based system and method of connecting components to each other
CN102081545A (en) * 2011-01-07 2011-06-01 中国电子科技集团公司第十研究所 Method of realizing software communications architecture (SCA) on embedded platform
CN104090810A (en) * 2014-07-29 2014-10-08 中国航空无线电电子研究所 Core framework integration method based on software communication system architecture
CN104615423A (en) * 2015-01-14 2015-05-13 中国人民解放军总参谋部第六十三研究所 Multi-user SCA waveform development method and device
CN107168744A (en) * 2017-05-22 2017-09-15 哈尔滨工程大学 The system and method loaded for DSP chip file

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
小型化软件通信体系结构的研究与实现;唐麒;《中国优秀硕士学位论文全文数据库信息科技辑》;20120715;正文第23-35页、第42-55页 *

Also Published As

Publication number Publication date
CN108737529A (en) 2018-11-02

Similar Documents

Publication Publication Date Title
CN108737529B (en) SCA waveform control method, apparatus, computer device and storage medium
US8260741B2 (en) System and method for utilizing a modular operating system (OS) resident agent allowing an out-of-band server management
CN106331135B (en) A kind of part interface update method, system, client and server-side
CN110471692B (en) Over-the-air upgrading method, device, equipment and storage medium of terminal program
EP3148114A1 (en) Device management session triggering method, device, system and computer storage medium
US20130152069A1 (en) Method, apparatus and system for initiating terminal operation
US9456017B2 (en) System and method for a connector being able to adapt to newer features introduced to a messaging provider with only configuration changes
CN113114706B (en) Multichannel Ethernet message processing method based on power chip
CN112054998A (en) Proxy service method, device, equipment and computer readable storage medium
CN113656164B (en) Task execution method, system, electronic device and computer storage medium
CN111885564B (en) Data transmission method, equipment upgrading method and computer readable storage medium
US8533736B2 (en) System and method for adding local resources for use by a mobile agent object
US20220394211A1 (en) Information transmission method and related device
CN112287265B (en) Asynchronous event driven based file conversion method and system
CN115220993A (en) Process monitoring method, device, vehicle and storage medium
CN112491956B (en) Upgrading method and device of communication module in Internet of things equipment and computer equipment
CN114546648A (en) Task processing method and task processing platform
CN103984541A (en) Method and system for generating application procedure based on terminal source codes
CN106713453B (en) Application information monitoring method and device
CN114884907B (en) Communication method, device, system, equipment and medium based on automatic driving
KR102305668B1 (en) Method for performing data communication and electronic device thereof
CN110365720B (en) Method, device and system for processing resource request
CN112083998B (en) Dynamic configuration method and device for task parameters in RTP of VxWorks system
CN116339938A (en) Task processing method and device, storage medium and electronic device
CN116915860B (en) Instruction transmission method, device, equipment and medium based on UDP

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant