[go: up one dir, main page]

CN116599915B - Channel determination method, transmission selection module and communication test control system - Google Patents

Channel determination method, transmission selection module and communication test control system

Info

Publication number
CN116599915B
CN116599915B CN202310675391.6A CN202310675391A CN116599915B CN 116599915 B CN116599915 B CN 116599915B CN 202310675391 A CN202310675391 A CN 202310675391A CN 116599915 B CN116599915 B CN 116599915B
Authority
CN
China
Prior art keywords
data
channel
ratio
target
coefficient
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
CN202310675391.6A
Other languages
Chinese (zh)
Other versions
CN116599915A (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.)
China South Power Grid International Co ltd
Original Assignee
China South Power Grid International Co ltd
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 China South Power Grid International Co ltd filed Critical China South Power Grid International Co ltd
Priority to CN202310675391.6A priority Critical patent/CN116599915B/en
Publication of CN116599915A publication Critical patent/CN116599915A/en
Application granted granted Critical
Publication of CN116599915B publication Critical patent/CN116599915B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • H04L47/76Admission control; Resource allocation using dynamic resource allocation, e.g. in-call renegotiation requested by the user or requested by the network in response to changing network conditions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • H04L47/80Actions related to the user profile or the type of traffic
    • H04L47/805QOS or priority aware
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • H04L47/80Actions related to the user profile or the type of traffic
    • H04L47/808User-type aware
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Health & Medical Sciences (AREA)
  • Computing Systems (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

本申请提供了一种信道的确定方法、传输选择模块与通信测试的控制系统。该方法包括:基于接收到的数据包参数信息,确定第一系数;基于目标网关的设备信息,确定第二系数,以及基于目标网关当前的各可用信道的信道信息,确定多个第三系数,设备信息包括目标网关的芯片内存、软件版本信息以及传输速度,信道信息包括信道占用率、信噪比以及信道容量,目标网关用于传输数据包;基于第一系数和第二系数与各第三系数,确定目标可用信道,并基于目标可用信道将数据包发送至云端。解决现有技术中的网关因无法根据信道环境信息动态地调整传输数据的信道,导致的数据传输速度较慢以及通信效率较低的问题。

The present application provides a channel determination method, a transmission selection module, and a control system for communication testing. The method includes: determining a first coefficient based on the received data packet parameter information; determining a second coefficient based on the device information of the target gateway, and determining multiple third coefficients based on the channel information of each currently available channel of the target gateway, the device information includes the chip memory, software version information, and transmission speed of the target gateway, the channel information includes the channel occupancy rate, signal-to-noise ratio, and channel capacity, and the target gateway is used to transmit data packets; based on the first coefficient, the second coefficient, and each third coefficient, the target available channel is determined, and the data packet is sent to the cloud based on the target available channel. This method solves the problem in the prior art that the gateway cannot dynamically adjust the channel for transmitting data according to the channel environment information, resulting in slow data transmission speed and low communication efficiency.

Description

Channel determining method, transmission selection module and communication test control system
Technical Field
The application relates to the technical field of distribution gateways, in particular to a channel determining method, a transmission selection module, a computer readable storage medium, an electronic device and a communication test control system.
Background
The edge gateway/intelligent gateway is intelligent equipment integrating functions of power supply and electricity consumption collection, data collection of all collection terminals, equipment state monitoring, communication networking, in-situ analysis decision, collaborative calculation and the like. The edge gateway/intelligent gateway adopts container technology, hardware platform, function software, structure modularization, software and hardware decoupling and communication protocol self-adapting design, not only has edge computing capability, but also can meet the requirements of high-performance concurrency, large-capacity storage and multiple acquisition objects. The edge gateway/intelligent gateway is a brand new device, adopts a brand new architecture, has powerful functions and realizes software-defined hardware functions.
However, most of the existing gateways communicate according to preset channels during communication, and cannot be adjusted according to actual conditions, so that the communication efficiency is low, and the test results of the gateways are affected.
Disclosure of Invention
The application aims to provide a channel determining method, a transmission selecting module, a computer readable storage medium, an electronic device and a communication test control system, which at least solve the problems of low data transmission speed and low communication efficiency caused by the fact that a gateway in the prior art cannot dynamically adjust a channel for transmitting data according to channel environment information.
In order to achieve the above object, according to one aspect of the present application, there is provided a channel determining method, including determining a first coefficient based on received packet parameter information, the packet parameter information including a data length and a storage capacity of a packet, determining a second coefficient based on device information of a target gateway, and determining a plurality of third coefficients based on channel information of each available channel currently of the target gateway, the device information including a chip memory of the target gateway, software version information, and a transmission speed, the channel information including a channel occupancy rate, a signal to noise ratio, and a channel capacity, the target gateway being configured to transmit the packet, determining a target available channel based on the first coefficient and the second coefficient and each of the third coefficients, and transmitting the packet to a cloud based on the target available channel.
Optionally, determining the first coefficient based on the received data packet parameter information includes obtaining a first ratio based on a ratio of a standard data length to the data length, obtaining a second ratio based on a ratio of a standard storage capacity to the storage capacity, and obtaining the first coefficient based on a product of the first ratio and the second ratio.
Optionally, determining the second coefficient based on the device information of the target gateway includes obtaining a third ratio based on a ratio of the chip memory to the standard chip memory, obtaining a fourth ratio based on a ratio of the software version information to the standard software version information, obtaining a fifth ratio based on a ratio of the transmission speed to the standard transmission speed, and obtaining the second coefficient based on a product of the third ratio, the fourth ratio and the fifth ratio.
Optionally, determining a plurality of third coefficients based on channel information of each available channel of the target gateway currently comprises obtaining a sixth ratio based on a ratio of the signal-to-noise ratio of each available channel to a standard signal-to-noise ratio, obtaining a seventh ratio based on a ratio of the channel capacity of each available channel to a standard channel capacity, obtaining an eighth ratio based on a ratio of the channel occupancy of each available channel to a standard channel occupancy, obtaining a first target product based on a product of the sixth ratio of each available channel and the seventh ratio, and obtaining a plurality of third coefficients based on a ratio of the first target product of each available channel and the eighth ratio.
Optionally, determining a target available channel based on the first coefficient and the second coefficient and the third coefficient comprises determining products of the third coefficient and the first coefficient of each available channel to obtain a plurality of second target products, determining products of the third coefficient and the second coefficient of each available channel to obtain a plurality of third target products, determining a sum of the second target products and the third target products of each available channel to obtain a target value, determining a ratio of the target value of each available channel to a sum of the corresponding first coefficient and second coefficient to obtain a plurality of ninth ratios, and determining the available channel corresponding to the largest ninth ratio as the target available channel.
Optionally, in the case that the maximum ninth ratio is more than one, determining the available channel corresponding to the maximum ninth ratio as the target available channel includes determining whether the first coefficient, the second coefficient and the third coefficient corresponding to each maximum ninth ratio exceed corresponding preset thresholds, and determining that the available channel corresponding to the maximum ninth ratio, where the first coefficient, the second coefficient and the third coefficient all exceed corresponding preset thresholds, exceeds the corresponding preset thresholds, is the target available channel.
Optionally, the data information carried by the data packet comprises at least one of environmental security data, electrical control data, video data, equipment monitoring data and electric energy quality data, wherein the environmental security data comprises water logging data, fire disaster data, access control data, anti-theft alarm data, SF 6 and O 2 detection data, temperature and humidity data and smoke data, the electrical control data comprises dehumidifier data, exhaust fan data, air conditioning data, lamp control data and IO control data, the video data comprises dome camera data and rifle bolt data, the equipment monitoring data comprises local monitoring data, cable temperature measurement data and transformer overtemperature data, and the electric energy quality data comprises reactive compensation data, harmonic treatment data and low-voltage line measurement data.
Optionally, the process of determining the data packet based on the data information includes classifying the data information according to a classification standard to obtain a plurality of sub-data information, wherein the classification standard includes one of a time period for collecting the data information, a data type of the data information and a device type corresponding to the data information, converting formats of the sub-data information and the corresponding type information into a target format to obtain the sub-data information and the corresponding type information after format conversion, and the target format includes one of an XML format, a JSON format and a YAML format, and storing and compressing the sub-data information and the corresponding type information after format conversion in an index table form to obtain the data packet.
According to another aspect of the application, a transmission selection module is provided, wherein the transmission selection module is used for determining a first coefficient based on received data packet parameter information, the data packet parameter information comprises a data length and a storage capacity of a data packet, determining a second coefficient based on equipment information of a target gateway, and determining a plurality of third coefficients based on channel information of each current available channel of the target gateway, the equipment information comprises a chip memory of the target gateway, software version information and a transmission speed, the channel information comprises a channel occupancy rate, a signal to noise ratio and a channel capacity, the target gateway is used for transmitting the data packet, determining a target available channel based on the first coefficient, the second coefficient and the third coefficients, and transmitting the data packet to a cloud based on the target available channel.
According to still another aspect of the present application, there is provided a computer readable storage medium including a stored program, wherein the program when run controls a device in which the computer readable storage medium is located to perform any one of the channel determination methods.
According to a further aspect of the application there is provided an electronic device comprising a memory having a computer program stored therein and a processor arranged to perform any of the methods of determining a channel by means of the computer program.
According to one aspect of the application, a control system for communication test is provided, which comprises a gateway module, a transmission selection module and a cloud end, wherein the gateway module comprises a target gateway, the target gateway is used for transmitting data packets, the transmission selection module is communicated with the gateway module and is used for executing any channel determination method, and the cloud end is communicated with the transmission selection module and is used for receiving the data packets forwarded by the transmission selection module.
By applying the technical scheme of the application, the first coefficient is determined based on the data packet parameter information of the data packet, the second coefficient is determined based on the equipment information of the target gateway for transmitting the data packet, the third coefficient of each available channel is respectively determined based on the channel information of each available information of the target gateway for transmitting the data packet, and the target available channel is determined based on the first coefficient and the second coefficient and each third coefficient respectively. That is, based on the device information of the target gateway, the channel information of each available channel, and the packet parameter information of the packet, the target available channel with better communication quality is determined, and then the packet is sent to the cloud based on the target available channel. The method and the device realize the dynamic selection of the available channels for transmitting the data packets, ensure higher transmission efficiency of the data packets, reduce the influence of the communication process on the test result, and improve the accuracy of the communication test result of the power distribution gateway, thereby solving the problems of slower data transmission speed and lower communication efficiency caused by the fact that the gateway in the prior art cannot dynamically adjust the channels for transmitting the data according to the channel environment information.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this specification, illustrate embodiments of the application and together with the description serve to explain the application. In the drawings:
fig. 1 is a block diagram showing a hardware configuration of a mobile terminal performing a channel determination method provided in an embodiment of the present application;
fig. 2 is a flow chart of a method for determining a channel according to an embodiment of the present application;
FIG. 3 is a schematic diagram of a communication test control system according to an embodiment of the present application;
fig. 4 shows an architecture diagram of a control system for communication testing provided according to an embodiment of the present application.
Wherein the above figures include the following reference numerals:
102. the system comprises a processor, 104, a memory, 106, transmission equipment, 108, input and output equipment, 10, a data perception module, 20, a gateway module, 30, a packaging module, 40, a transmission selection module and 50, a cloud.
Detailed Description
It should be noted that, without conflict, the embodiments of the present application and features of the embodiments may be combined with each other. The application will be described in detail below with reference to the drawings in connection with embodiments.
In order that those skilled in the art will better understand the present application, a technical solution in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present application without making any inventive effort, shall fall within the scope of the present application.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate in order to describe the embodiments of the application herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
As described in the background art, in order to solve the above-mentioned problems, the embodiments of the present application provide a channel determining method, a transmission selecting module, a computer readable storage medium, an electronic device, and a communication test control system, in which a gateway in the prior art cannot dynamically adjust a channel for transmitting data according to channel environment information, resulting in a slower data transmission speed and a lower communication efficiency.
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.
The method embodiments provided in the embodiments of the present application may be performed in a mobile terminal, a computer terminal or similar computing device. Taking the mobile terminal as an example, fig. 1 is a block diagram of a hardware structure of the mobile terminal according to a channel determining method according to an embodiment of the present application. As shown in fig. 1, a mobile terminal may include one or more (only one is shown in fig. 1) processors 102 (the processor 102 may include, but is not limited to, a microprocessor MCU or a processing device such as a programmable logic device FPGA) and a memory 104 for storing data, wherein the mobile terminal may also include a transmission device 106 for communication functions and an input-output device 108. It will be appreciated by those skilled in the art that the structure shown in fig. 1 is merely illustrative and not limiting of the structure of the mobile terminal described above. For example, the mobile terminal may also include more or fewer components than shown in fig. 1, or have a different configuration than shown in fig. 1.
The memory 104 may be used to store a computer program, for example, a software program of application software and a module, such as a computer program corresponding to a channel determining method in an embodiment of the present invention, and the processor 102 executes the computer program stored in the memory 104 to perform various functional applications and data processing, that is, implement the above-mentioned method. Memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory remotely located relative to the processor 102, which may be connected to the mobile terminal via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof. The transmission device 106 is used to receive or transmit data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, simply referred to as a NIC) that can connect to other network devices through a base station to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is configured to communicate with the internet wirelessly.
In the present embodiment, a method for determining a channel running on a mobile terminal, a computer terminal, or a similar computing device is provided, it should be noted that the steps illustrated in the flowchart of the drawings may be performed in a computer system such as a set of computer executable instructions, and although a logical order is illustrated in the flowchart, in some cases, the steps illustrated or described may be performed in an order different from that herein.
Fig. 2 is a flowchart of a method of determining a channel according to an embodiment of the present application. As shown in fig. 2, the determination method includes the steps of:
step S201, determining a first coefficient based on received data packet parameter information, wherein the data packet parameter information comprises the data length and the storage capacity of the data packet;
specifically, the packet parameter information may further include compression type information of a packet, and the storage capacity of the packet is the size of the packet.
Step S202, determining a second coefficient based on equipment information of a target gateway, and determining a plurality of third coefficients based on channel information of each current available channel of the target gateway, wherein the equipment information comprises chip memory, software version information and transmission speed of the target gateway, the channel information comprises channel occupancy rate, signal to noise ratio and channel capacity, and the target gateway is used for transmitting the data packet;
In a specific embodiment of the present application, the software version information is current software version information of the target gateway, and the transmission speed is an average transmission speed of the target gateway.
Step S203, determining a target available channel based on the first coefficient, the second coefficient and the third coefficients, and transmitting the data packet to the cloud end based on the target available channel.
According to the method, a first coefficient is determined based on data packet parameter information of a data packet, a second coefficient is determined based on equipment information of a target gateway transmitting the data packet, third coefficients of available channels are respectively determined based on channel information of available channels of the target gateway transmitting the data packet, and then the target available channels are respectively determined based on the first coefficient and the second coefficient and the third coefficients. That is, based on the device information of the target gateway, the channel information of each available channel, and the packet parameter information of the packet, the target available channel with better communication quality is determined, and then the packet is sent to the cloud based on the target available channel. The method and the device realize the dynamic selection of the available channels for transmitting the data packets, ensure higher transmission efficiency of the data packets, reduce the influence of the communication process on the test result, and improve the accuracy of the communication test result of the power distribution gateway, thereby solving the problems of slower data transmission speed and lower communication efficiency caused by the fact that the gateway in the prior art cannot dynamically adjust the channels for transmitting the data according to the channel environment information.
It should be noted that the steps illustrated in the flowcharts of the figures may be performed in a computer system such as a set of computer executable instructions, and that although a logical order is illustrated in the flowcharts, in some cases the steps illustrated or described may be performed in an order other than that illustrated herein.
In a specific implementation process, the step S201 may be implemented through step S2011 and step S2012. In step S2011, a first ratio is obtained based on the ratio of the standard data length to the data length, and a second ratio is obtained based on the ratio of the standard storage capacity to the storage capacity, and in step S2012, the first coefficient is obtained based on the product of the first ratio and the second ratio. That is, the first coefficient is inversely proportional to the data length and the storage capacity of the data packet, that is, the first coefficient may be used as the ratio of the product of the standard data length and the standard storage capacity to the product of the data length and the storage capacity, so that the first coefficient is determined more simply, the subsequent determination of the target available channel based on the first coefficient, the second coefficient and the third coefficient is further ensured to be more accurate, and the transmission efficiency of the data packet is further ensured to be higher.
Specifically, the standard data length and the standard storage capacity are both the standard data length and the storage capacity of the same type of data packet.
For the above embodiment, other relevant parameters of the data packet may be added according to different situations, so as to determine the first coefficient.
In the practical application process, it is obtained through experiments that the second coefficient of the target gateway is directly proportional to the chip memory, the software version information and the transmission speed of the target gateway, so, in order to obtain the second coefficient of the target gateway more simply, the step S202 of the present application can be implemented through the step S2021 and the step S2022. Step S2021, based on the ratio of the chip memory to the standard chip memory, obtains a third ratio, based on the ratio of the software version information to the standard software version information, obtains a fourth ratio, and based on the ratio of the transmission speed to the standard transmission speed, obtains a fifth ratio, and step S2022, based on the product of the third ratio, the fourth ratio, and the fifth ratio, obtains the second coefficient.
In a specific embodiment of the present application, in the case that the standard chip memory of the target gateway is 128M, the standard software version information is 1.0, and the standard transmission speed of the target gateway is 100Byte, the current chip memory of the target gateway is denoted as P, the current software version information is denoted as Q, and the current transmission speed is denoted as L, the second coefficient may be denoted as
The step S202 may be implemented as step S2023 and step S2024. Step S2023, based on the ratio of the signal-to-noise ratio of each available channel to the standard signal-to-noise ratio, obtains a sixth ratio, based on the ratio of the channel capacity of each available channel to the standard channel capacity, obtains a seventh ratio, based on the ratio of the channel occupancy of each available channel to the standard channel occupancy, obtains an eighth ratio, step S2024, based on the product of the sixth ratio of each available channel and the seventh ratio, obtains a first target product, and based on the ratio of the first target product of each available channel and the eighth ratio, obtains a plurality of third coefficients, thereby realizing simpler determination of the third coefficients, further ensuring that the determined target available channels are more accurate, and further ensuring higher transmission efficiency of data packets.
Specifically, the channel occupancy rate is an average occupancy rate of the available channel in a preset period, and the signal-to-noise ratio is a signal-to-noise ratio of the available channel in the preset period.
In a specific embodiment of the present application, when the channel occupancy of an available channel is denoted as a1, the signal-to-noise ratio is denoted as b1, and the channel capacity is denoted as c1, and the standard channel occupancy of the target gateway is denoted as a2, the standard signal-to-noise ratio is denoted as b2, and the standard channel capacity is denoted as c2, the third coefficient of the available channel may be expressed as:
In some embodiments, the step S203 may be specifically implemented by the steps S2031, S2032, and S2033. The method includes determining a product of the third coefficient and the first coefficient of each of the available channels to obtain a plurality of second target products, and determining a product of the third coefficient and the second coefficient of each of the available channels to obtain a plurality of third target products, determining a sum of the second target product and the third target product of each of the available channels to obtain a target value, and determining a ratio of the target value of each of the available channels to a sum of the corresponding first coefficient and the corresponding second coefficient to obtain a plurality of ninth ratios, and determining the available channel corresponding to the largest ninth ratio as the target available channel, in step S2032.
Specifically, for one of the above data packets, the first coefficient thereof may be denoted as D, for the target gateway, the second coefficient thereof may be denoted as E, and for each of the available channels in the target gateway, the third coefficient thereof may be denoted as F i. Then there are two target products D x F i and the third target product E x F i. Thus, the target value is d×f i+E×Fi, and the ninth ratio for each available channel is:
by the calculation mode, a ninth ratio is corresponding to each available channel of the target gateway. Then, the available channel corresponding to the largest ninth ratio may be determined as the target available channel.
In practical applications, there are also cases where there is a plurality of the above-mentioned ninth ratio at maximum. In this case, the step S2032 may be further implemented by determining whether the first coefficient, the second coefficient, and the third coefficient corresponding to the ninth ratio of each maximum value exceed a corresponding preset threshold, and determining the available channel corresponding to the ninth ratio of the maximum value, where the first coefficient, the second coefficient, and the third coefficient exceed the corresponding preset threshold and the corresponding maximum value exceeds the corresponding preset threshold, as the target available channel, thereby further implementing screening of the target available channel with better communication quality, and further ensuring that the efficiency of transmitting the data packet is higher through the target available channel.
Specifically, for example, there are two maximum ninth ratios, which are denoted as a ninth ratio T1 and a ninth ratio T2, respectively. That is, two target available channels may be determined. If the first coefficient, the second coefficient and the third coefficient corresponding to the ninth ratio T1 all exceed the corresponding threshold values, only the first coefficient and the second coefficient of the first coefficient, the second coefficient and the third coefficient corresponding to the ninth ratio T2 exceed the corresponding threshold values. For this case, an available channel corresponding to the ninth ratio T1 may be determined as the target available channel.
In a specific embodiment of the application, the data information carried by the data packet comprises at least one of environmental security data, electrical control data, video data, equipment monitoring data and power quality data, wherein the environmental security data comprises water logging data, fire disaster data, access control data, burglar alarm data, SF 6 and O 2 detection data, temperature and humidity data and smoke data, the electrical control data comprises dehumidifier data, exhaust fan data, air conditioning data, lamp control data and IO control data, the video data comprises dome camera data and rifle bolt data, the equipment monitoring data comprises local monitoring data, cable temperature measurement data and transformer overtemperature data, and the power quality data comprises reactive compensation data, harmonic treatment data and low-voltage line measurement data.
In some embodiments, the process of determining the data packet based on the data information includes classifying the data information according to a classification standard to obtain a plurality of sub-data information, wherein the classification standard includes one of a time period for collecting the data information, a data type of the data information, and a device type corresponding to the data information, converting a format of each sub-data information and corresponding type information into a target format to obtain each sub-data information and corresponding type information after format conversion, the target format includes one of an XML format, a JSON format, and a YAML format, and storing and compressing each sub-data information and corresponding type information after format conversion in the form of an index table to obtain the data packet.
The embodiment of the application also provides a transmission selection module, which can be used for executing the method for determining the channel provided by the embodiment of the application. The device is used for realizing the above embodiments and preferred embodiments, and is not described in detail. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. While the means described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
The following describes a transmission selection module provided in an embodiment of the present application. The transmission selection module of the application is used for:
Determining a first coefficient based on received data packet parameter information, wherein the data packet parameter information comprises the data length and the storage capacity of the data packet;
specifically, the packet parameter information may further include compression type information of a packet, and the storage capacity of the packet is the size of the packet.
Determining a second coefficient based on equipment information of a target gateway, and determining a plurality of third coefficients based on channel information of each current available channel of the target gateway, wherein the equipment information comprises chip memory, software version information and transmission speed of the target gateway, the channel information comprises channel occupancy rate, signal to noise ratio and channel capacity, and the target gateway is used for transmitting the data packet;
In a specific embodiment of the present application, the software version information is current software version information of the target gateway, and the transmission speed is an average transmission speed of the target gateway.
And determining a target available channel based on the first coefficient, the second coefficient and the third coefficients, and transmitting the data packet to a cloud end based on the target available channel.
According to the embodiment, the transmission selection module is used for determining a first coefficient based on data packet parameter information of a data packet, determining a second coefficient based on equipment information of a target gateway for transmitting the data packet, respectively determining third coefficients of each available channel based on channel information of each available information of the target gateway for transmitting the data packet, and respectively determining a target available channel based on the first coefficient and the second coefficient and each third coefficient. That is, the transmission selection module is configured to determine a target available channel with better communication quality based on the device information of the target gateway, the channel information of each available channel, and the packet parameter information of the packet, and then send the packet to the cloud based on the target available channel. The method and the device realize the dynamic selection of the available channels for transmitting the data packets, ensure higher transmission efficiency of the data packets, reduce the influence of the communication process on the test result, and improve the accuracy of the communication test result of the power distribution gateway, thereby solving the problems of slower data transmission speed and lower communication efficiency caused by the fact that the gateway in the prior art cannot dynamically adjust the channels for transmitting the data according to the channel environment information.
In a specific implementation process, the transmission selection module further comprises an analysis unit, and the analysis unit is used for obtaining a first ratio based on the ratio of the standard data length to the data length, obtaining a second ratio based on the ratio of the standard storage capacity to the storage capacity, and obtaining the first coefficient based on the product of the first ratio and the second ratio. That is, the first coefficient is inversely proportional to the data length and the storage capacity of the data packet, that is, the first coefficient may be used as the ratio of the product of the standard data length and the standard storage capacity to the product of the data length and the storage capacity, so that the first coefficient is determined more simply, the subsequent determination of the target available channel based on the first coefficient, the second coefficient and the third coefficient is further ensured to be more accurate, and the transmission efficiency of the data packet is further ensured to be higher.
Specifically, the standard data length and the standard storage capacity are both the standard data length and the storage capacity of the same type of data packet.
For the above embodiment, other relevant parameters of the data packet may be added according to different situations, so as to determine the first coefficient.
In the practical application process, the second coefficient of the target gateway is obtained through experiments and is in direct proportion to the chip memory, the software version information and the transmission speed of the target gateway respectively, so that in order to obtain the second coefficient of the target gateway more simply, the analysis unit is further used for obtaining a third ratio based on the ratio of the chip memory to the standard chip memory, obtaining a fourth ratio based on the ratio of the software version information to the standard software version information and obtaining a fifth ratio based on the ratio of the transmission speed to the standard transmission speed, and obtaining the second coefficient based on the product of the third ratio, the fourth ratio and the fifth ratio.
In a specific embodiment of the present application, in the case that the standard chip memory of the target gateway is 128M, the standard software version information is 1.0, and the standard transmission speed of the target gateway is 100Byte, the current chip memory of the target gateway is denoted as P, the current software version information is denoted as Q, and the current transmission speed is denoted as L, the second coefficient may be denoted as
The analysis unit is further configured to obtain a sixth ratio based on a ratio of the signal-to-noise ratio of each of the available channels to a standard signal-to-noise ratio, obtain a seventh ratio based on a ratio of the channel capacity of each of the available channels to a standard channel capacity, obtain an eighth ratio based on a ratio of the channel occupancy of each of the available channels to the standard channel occupancy, obtain a first target product based on a product of the sixth ratio of each of the available channels and the seventh ratio, and obtain a plurality of the third coefficients based on a ratio of the first target product of each of the available channels and the eighth ratio, thereby realizing a simpler determination of the third coefficients, further ensuring that the determined target available channels are more accurate, and further ensuring that the transmission efficiency of the data packet is higher.
Specifically, the channel occupancy rate is an average occupancy rate of the available channel in a preset period, and the signal-to-noise ratio is a signal-to-noise ratio of the available channel in the preset period.
In a specific embodiment of the present application, when the channel occupancy of an available channel is denoted as a1, the signal-to-noise ratio is denoted as b1, and the channel capacity is denoted as c1, and the standard channel occupancy of the target gateway is denoted as a2, the standard signal-to-noise ratio is denoted as b2, and the standard channel capacity is denoted as c2, the third coefficient of the available channel may be denoted as
In some embodiments, the transmission selection module further includes a selection unit configured to:
The method comprises the steps of determining products of the third coefficients and the first coefficients of each available channel to obtain a plurality of second target products, determining products of the third coefficients and the second coefficients of each available channel to obtain a plurality of third target products, determining a sum of the second target products and the third target products of each available channel to obtain a target value, determining a ratio of the target value of each available channel to the sum of the corresponding first coefficients and second coefficients to obtain a plurality of ninth ratios, and determining the available channel corresponding to the largest ninth ratio as the target available channel.
The method and the device realize that the target available channel is determined more simply, and further ensure that the efficiency of transmitting the data packet based on the target available channel is higher.
Specifically, for one of the above data packets, the first coefficient thereof may be denoted as D, for the target gateway, the second coefficient thereof may be denoted as E, and for each of the available channels in the target gateway, the third coefficient thereof may be denoted as F i. Then there are two target products D x F i and the third target product E x F i. Thus, the target value is d×f i+E×Fi, and the ninth ratio for each available channel is:
by the calculation mode, a ninth ratio is corresponding to each available channel of the target gateway. Then, the available channel corresponding to the largest ninth ratio may be determined as the target available channel.
In practical applications, there are also cases where there is a plurality of the above-mentioned ninth ratio at maximum. For this case, the selecting unit is further configured to determine whether the first coefficient, the second coefficient, and the third coefficient corresponding to the ninth ratio that are the largest respectively exceed a corresponding preset threshold, and determine the available channel corresponding to the ninth ratio that is the largest respectively that has the first coefficient, the second coefficient, and the third coefficient that exceed the corresponding preset threshold and that has the largest respectively that has the largest corresponding preset threshold as the target available channel, thereby further realizing screening of the target available channel with better communication quality, and further ensuring that the efficiency of transmitting the data packet is higher through the target available channel.
Specifically, for example, there are two maximum ninth ratios, which are denoted as a ninth ratio T1 and a ninth ratio T2, respectively. That is, two target available channels may be determined. If the first coefficient, the second coefficient and the third coefficient corresponding to the ninth ratio T1 all exceed the corresponding threshold values, only the first coefficient and the second coefficient of the first coefficient, the second coefficient and the third coefficient corresponding to the ninth ratio T2 exceed the corresponding threshold values. For this case, an available channel corresponding to the ninth ratio T1 may be determined as the target available channel.
In a specific embodiment of the application, the data information carried by the data packet comprises at least one of environmental security data, electrical control data, video data, equipment monitoring data and power quality data, wherein the environmental security data comprises water logging data, fire disaster data, access control data, burglar alarm data, SF 6 and O 2 detection data, temperature and humidity data and smoke data, the electrical control data comprises dehumidifier data, exhaust fan data, air conditioning data, lamp control data and IO control data, the video data comprises dome camera data and rifle bolt data, the equipment monitoring data comprises local monitoring data, cable temperature measurement data and transformer overtemperature data, and the power quality data comprises reactive compensation data, harmonic treatment data and low-voltage line measurement data.
In some embodiments, the transmission selection module further includes a packaging module, configured to classify the data information according to a classification standard to obtain a plurality of sub-data information, where the classification standard includes one of a time period for collecting the data information, a data type of the data information, and a device type corresponding to the data information, convert formats of the sub-data information and the corresponding type information into a target format to obtain the sub-data information and the corresponding type information after format conversion, where the target format includes one of an XML format, a JSON format, and a YAML format, and store and compress the sub-data information and the corresponding type information after format conversion in an index table to obtain the data packet.
The transmission selection module comprises a processor and a memory, wherein the transmission selection module and the like are stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions. The modules are all located in the same processor, or the modules are respectively located in different processors in any combination.
The processor includes a kernel, and the kernel fetches the corresponding program unit from the memory. The kernel can be provided with one or more than one kernel, and the problems of low data transmission speed and low communication efficiency caused by the fact that a gateway in the prior art cannot dynamically adjust a channel for transmitting data according to channel environment information are solved by adjusting kernel parameters.
The memory may include volatile memory, random Access Memory (RAM), and/or nonvolatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM), among other forms in computer readable media, the memory including at least one memory chip.
The embodiment of the invention provides a computer readable storage medium, which comprises a stored program, wherein the program is used for controlling a device where the computer readable storage medium is located to execute the method for determining the channel.
Specifically, the method for determining the channel includes:
step S201, determining a first coefficient based on received data packet parameter information, wherein the data packet parameter information comprises the data length and the storage capacity of the data packet;
Step S202, determining a second coefficient based on equipment information of a target gateway, and determining a plurality of third coefficients based on channel information of each current available channel of the target gateway, wherein the equipment information comprises chip memory, software version information and transmission speed of the target gateway, the channel information comprises channel occupancy rate, signal to noise ratio and channel capacity, and the target gateway is used for transmitting the data packet;
step S203, determining a target available channel based on the first coefficient, the second coefficient and the third coefficients, and transmitting the data packet to the cloud end based on the target available channel.
An embodiment of the invention provides an electronic device comprising a memory, in which a computer program is stored, and a processor arranged to perform the above-mentioned method of determining a channel by means of the above-mentioned computer program.
Specifically, the method for determining the channel includes:
step S201, determining a first coefficient based on received data packet parameter information, wherein the data packet parameter information comprises the data length and the storage capacity of the data packet;
Step S202, determining a second coefficient based on equipment information of a target gateway, and determining a plurality of third coefficients based on channel information of each current available channel of the target gateway, wherein the equipment information comprises chip memory, software version information and transmission speed of the target gateway, the channel information comprises channel occupancy rate, signal to noise ratio and channel capacity, and the target gateway is used for transmitting the data packet;
step S203, determining a target available channel based on the first coefficient, the second coefficient and the third coefficients, and transmitting the data packet to the cloud end based on the target available channel.
In an exemplary embodiment of the present application, a control system for communication testing is also provided. The control system comprises a gateway module, a transmission selection module and a cloud. The gateway module comprises a target gateway, a transmission selection module and a cloud end, wherein the target gateway is used for transmitting data packets, the transmission selection module is communicated with the gateway module and used for executing any channel determination method, and the cloud end is communicated with the transmission selection module and used for receiving the data packets forwarded by the transmission selection module.
The control system for communication test comprises a transmission selection module, wherein the transmission selection module is used for executing any one of the channel determination methods. The method comprises the steps of determining a first coefficient based on data packet parameter information of a data packet, determining a second coefficient based on equipment information of a target gateway transmitting the data packet, determining third coefficients of available channels based on channel information of the target gateway transmitting the data packet, and determining a target available channel based on the first coefficient and the second coefficient and the third coefficients. That is, based on the device information of the target gateway, the channel information of each available channel, and the packet parameter information of the packet, the target available channel with better communication quality is determined, and then the packet is sent to the cloud based on the target available channel. The method and the device realize the dynamic selection of the available channels for transmitting the data packets, ensure higher transmission efficiency of the data packets, reduce the influence of the communication process on the test result, and improve the accuracy of the communication test result of the power distribution gateway, thereby solving the problems of slower data transmission speed and lower communication efficiency caused by the fact that the gateway in the prior art cannot dynamically adjust the channels for transmitting the data according to the channel environment information.
In order to enable those skilled in the art to more clearly understand the technical solutions of the present application, the implementation process of the channel determining method of the present application will be described in detail below with reference to specific embodiments.
The present embodiment relates to a control system for a specific communication test. As shown in fig. 3, the control system for communication test includes a data sensing module 10, a gateway module 20, a packaging module 30, a transmission selection module 40 and a cloud 50. As shown in fig. 4, the data sensing module 10 includes various types of sensors for acquiring data information. The data information comprises at least one of environmental security data, electrical control data, video data, equipment monitoring data and electric energy quality data, wherein the environmental security data comprises water logging data, fire data, access control data, burglar alarm data, SF 6 and O 2 detection data, temperature and humidity data and smoke data, the electrical control data comprises dehumidifier data, exhaust fan data, air conditioning data, lamp control data and IO control data, the video data comprises dome camera data and gun camera data, the equipment monitoring data comprises local monitoring data, cable temperature measurement data and transformer overtemperature data, and the electric energy quality data comprises reactive compensation data, harmonic treatment data and low-voltage line measurement data.
The gateway module 20 is communicatively connected with the data sensing module 10 and is used for receiving data information, wherein the communication protocol types of the gateway module 20 and the data sensing module 10 mainly include DL/T634.5-101, DL/T634.5-104, MQTT and the like.
And the packaging module 30 is in communication connection with the gateway module 20 and is used for packaging the data information to generate a data packet. Dividing data information into different types of sub data information according to a classification standard, respectively converting the type information of the sub data information and the sub data information into target formats, then compressing, respectively generating corresponding data packets by the compressed sub data information and the corresponding type information in the form of an index table, wherein the data packets comprise index information and internal data, the internal data are the compressed sub data information, the index information is the type information corresponding to the sub data information, the classification standard comprises any one of a time period for data information acquisition, a data type of the data information and a device type corresponding to the data information, and the target formats comprise any one of an XML format, a JSON format and a YAML format.
The transmission selection module 40 is electrically connected to the gateway module 20 and the packaging module 30, and is configured to obtain device information of the target gateway in the gateway module and channel information of each available channel in the target gateway, and receive the data packet. And the equipment information of the target gateway, the channel information of each available channel in the target gateway and the data packet parameter information of the data packet determine the target available channel. The method comprises the following specific steps:
the transmission selection module 40 further comprises an analysis unit and a selection unit. Wherein, the
The analysis unit is used for:
The method comprises the steps of obtaining a first ratio based on the ratio of the standard data length to the data length, obtaining a second ratio based on the ratio of the standard storage capacity to the storage capacity, and obtaining a first coefficient based on the product of the first ratio and the second ratio.
And obtaining a third ratio based on the ratio of the chip memory to the standard chip memory, obtaining a fourth ratio based on the ratio of the software version information to the standard software version information, obtaining a fifth ratio based on the ratio of the transmission speed to the standard transmission speed, and obtaining a second coefficient based on the product of the third ratio, the fourth ratio and the fifth ratio.
Obtaining a sixth ratio based on the ratio of the signal-to-noise ratio of each available channel to the standard signal-to-noise ratio, obtaining a seventh ratio based on the ratio of the channel capacity of each available channel to the standard channel capacity, obtaining an eighth ratio based on the ratio of the channel occupancy of each available channel to the standard channel occupancy, obtaining a first target product based on the product of the sixth ratio of each available channel and the seventh ratio, and obtaining a plurality of third coefficients based on the ratio of the first target product of each available channel to the eighth ratio.
The selection unit is used for:
The method comprises the steps of determining products of third coefficients and first coefficients of all available channels to obtain a plurality of second target products, determining products of the third coefficients and the second coefficients of all available channels to obtain a plurality of third target products, determining the sum of the second target products and the third target products of all available channels to obtain target values, determining the ratio of the target values of all available channels to the sum of corresponding first coefficients and second coefficients to obtain a plurality of ninth ratios, and determining the available channel corresponding to the largest ninth ratio as a target available channel.
And determining whether the first coefficient, the second coefficient and the third coefficient corresponding to the maximum ninth ratio exceeds a corresponding preset threshold value or not under the condition that the plurality of maximum ninth ratios exist, and determining an available channel corresponding to the maximum ninth ratio with the first coefficient, the second coefficient and the third coefficient exceeding the corresponding preset threshold value and the maximum exceeding the corresponding preset threshold value as a target available channel.
The cloud end 50 is communicatively connected to the transmission selection module 40, and is configured to receive the data packet and perform data processing.
In this embodiment, when the communication test is required to be performed on the gateway module 20, the data sensing module 10 transmits the acquired external data information to the gateway module 20, and packages and transmits the external data information to the transmission selection module 40 through the packaging module 30, so that the transmission selection module 40 selects one available channel with the best communication quality as a target available channel according to the parameter information of the data packet, the device information of the target gateway and the channel information of each available channel of the target gateway, and transmits the data packet through the target available channel, thereby improving the data transmission efficiency during communication, reducing the influence of the communication rate on the communication test result, and improving the accuracy of the gateway communication test result.
The embodiment of the invention provides equipment, which comprises a processor, a memory and a program stored in the memory and capable of running on the processor, wherein the processor realizes at least the following steps when executing the program:
step S201, determining a first coefficient based on received data packet parameter information, wherein the data packet parameter information comprises the data length and the storage capacity of the data packet;
Step S202, determining a second coefficient based on equipment information of a target gateway, and determining a plurality of third coefficients based on channel information of each current available channel of the target gateway, wherein the equipment information comprises chip memory, software version information and transmission speed of the target gateway, the channel information comprises channel occupancy rate, signal to noise ratio and channel capacity, and the target gateway is used for transmitting the data packet;
step S203, determining a target available channel based on the first coefficient, the second coefficient and the third coefficients, and transmitting the data packet to the cloud end based on the target available channel.
The device herein may be a server, PC, PAD, cell phone, etc.
The application also provides a computer program product adapted to perform, when executed on a data processing device, a program initialized with at least the following method steps:
step S201, determining a first coefficient based on received data packet parameter information, wherein the data packet parameter information comprises the data length and the storage capacity of the data packet;
Step S202, determining a second coefficient based on equipment information of a target gateway, and determining a plurality of third coefficients based on channel information of each current available channel of the target gateway, wherein the equipment information comprises chip memory, software version information and transmission speed of the target gateway, the channel information comprises channel occupancy rate, signal to noise ratio and channel capacity, and the target gateway is used for transmitting the data packet;
step S203, determining a target available channel based on the first coefficient, the second coefficient and the third coefficients, and transmitting the data packet to the cloud end based on the target available channel.
It will be appreciated by those skilled in the art that the modules or steps of the invention described above may be implemented in a general purpose computing device, they may be concentrated on a single computing device, or distributed across a network of computing devices, they may be implemented in program code executable by computing devices, so that they may be stored in a storage device for execution by computing devices, and in some cases, the steps shown or described may be performed in a different order than that shown or described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple modules or steps of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
In one typical configuration, a computing device includes one or more processors (CPUs), input/output interfaces, network interfaces, and memory.
The memory may include volatile memory in a computer-readable medium, random Access Memory (RAM) and/or nonvolatile memory, etc., such as Read Only Memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
Computer readable media, including both non-transitory and non-transitory, removable and non-removable media, may implement information storage by any method or technology. The information may be computer readable instructions, data structures, modules of a program, or other data. Examples of storage media for a computer include, but are not limited to, phase change memory (PRAM), static Random Access Memory (SRAM), dynamic Random Access Memory (DRAM), other types of 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 Versatile Discs (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices, or any other non-transmission medium, which can be used to store information that can be accessed by a computing device. Computer-readable media, as defined herein, does not include transitory computer-readable media (transmission media), such as modulated data signals and carrier waves.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises an element.
From the above description, it can be seen that the above embodiments of the present application achieve the following technical effects:
1) The channel determining method includes the steps of determining a first coefficient based on data packet parameter information of a data packet, determining a second coefficient based on equipment information of a target gateway for transmitting the data packet, determining third coefficients of all available channels based on channel information of all available information of the target gateway for transmitting the data packet, and determining a target available channel based on the first coefficient and the second coefficient and all the third coefficients. That is, based on the device information of the target gateway, the channel information of each available channel, and the packet parameter information of the packet, the target available channel with better communication quality is determined, and then the packet is sent to the cloud based on the target available channel. The method and the device realize the dynamic selection of the available channels for transmitting the data packets, ensure higher transmission efficiency of the data packets, reduce the influence of the communication process on the test result, and improve the accuracy of the communication test result of the power distribution gateway, thereby solving the problems of slower data transmission speed and lower communication efficiency caused by the fact that the gateway in the prior art cannot dynamically adjust the channels for transmitting the data according to the channel environment information.
2) The transmission selection module is used for determining a first coefficient based on data packet parameter information of a data packet, determining a second coefficient based on equipment information of a target gateway for transmitting the data packet, respectively determining third coefficients of available channels based on channel information of each available information of the target gateway for transmitting the data packet, and respectively determining a target available channel based on the first coefficient and the second coefficient and each third coefficient. That is, the transmission selection module is configured to determine a target available channel with better communication quality based on the device information of the target gateway, the channel information of each available channel, and the packet parameter information of the packet, and then send the packet to the cloud based on the target available channel. The method and the device realize the dynamic selection of the available channels for transmitting the data packets, ensure higher transmission efficiency of the data packets, reduce the influence of the communication process on the test result, and improve the accuracy of the communication test result of the power distribution gateway, thereby solving the problems of slower data transmission speed and lower communication efficiency caused by the fact that the gateway in the prior art cannot dynamically adjust the channels for transmitting the data according to the channel environment information.
3) The control system for communication test of the application comprises a transmission selection module, wherein the transmission selection module is used for executing any one of the channel determination methods. The method comprises the steps of determining a first coefficient based on data packet parameter information of a data packet, determining a second coefficient based on equipment information of a target gateway transmitting the data packet, determining third coefficients of available channels based on channel information of the target gateway transmitting the data packet, and determining a target available channel based on the first coefficient and the second coefficient and the third coefficients. That is, based on the device information of the target gateway, the channel information of each available channel, and the packet parameter information of the packet, the target available channel with better communication quality is determined, and then the packet is sent to the cloud based on the target available channel. The method and the device realize the dynamic selection of the available channels for transmitting the data packets, ensure higher transmission efficiency of the data packets, reduce the influence of the communication process on the test result, and improve the accuracy of the communication test result of the power distribution gateway, thereby solving the problems of slower data transmission speed and lower communication efficiency caused by the fact that the gateway in the prior art cannot dynamically adjust the channels for transmitting the data according to the channel environment information.
The above description is only of the preferred embodiments of the present application and is not intended to limit the present application, but various modifications and variations can be made to the present application by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (11)

1. A method for determining a channel, comprising:
determining a first coefficient based on received data packet parameter information, wherein the data packet parameter information comprises the data length and the storage capacity of a data packet;
Determining a second coefficient based on equipment information of a target gateway, and determining a plurality of third coefficients based on channel information of each current available channel of the target gateway, wherein the equipment information comprises a chip memory of the target gateway, software version information and transmission speed, the channel information comprises a channel occupancy rate, a signal to noise ratio and a channel capacity, the target gateway is used for transmitting the data packet, and one available channel corresponds to one third coefficient;
determining a target available channel based on the first and second coefficients and each of the third coefficients, and transmitting the data packet to a cloud based on the target available channel,
The method comprises the steps of determining a third coefficient of each available channel, obtaining a plurality of second target products, determining products of the third coefficient of each available channel and the second coefficient, obtaining a plurality of third target products, determining a sum of the second target products and the third target products of each available channel, obtaining a target value, determining a ratio of the target value of each available channel to a sum of the corresponding first coefficient and second coefficient, obtaining a plurality of ninth ratios, and determining the available channel corresponding to the largest ninth ratio as the target available channel.
2. The method of determining of claim 1, wherein determining the first coefficient based on the received packet parameter information comprises:
obtaining a first ratio based on the ratio of the standard data length to the data length, and obtaining a second ratio based on the ratio of the standard storage capacity to the storage capacity;
and obtaining the first coefficient based on the product of the first ratio and the second ratio.
3. The determination method according to claim 1, wherein determining the second coefficient based on the device information of the target gateway includes:
Obtaining a third ratio based on the ratio of the chip memory to the standard chip memory, obtaining a fourth ratio based on the ratio of the software version information to the standard software version information, and obtaining a fifth ratio based on the ratio of the transmission speed to the standard transmission speed;
And obtaining the second coefficient based on the product of the third ratio, the fourth ratio and the fifth ratio.
4. The method of determining according to claim 1, wherein determining a plurality of third coefficients based on channel information of each available channel currently of the target gateway includes:
Obtaining a sixth ratio based on the ratio of the signal-to-noise ratio of each available channel to a standard signal-to-noise ratio, obtaining a seventh ratio based on the ratio of the channel capacity of each available channel to a standard channel capacity, and obtaining an eighth ratio based on the ratio of the channel occupancy of each available channel to a standard channel occupancy;
A plurality of first target products are obtained based on the product of the sixth ratio and the seventh ratio for each of the available channels, and a plurality of the third coefficients are obtained based on the ratio of the first target product and the eighth ratio for each of the available channels.
5. The determining method according to claim 1, wherein in the case where there are a plurality of the ninth ratios at the maximum, determining the available channel corresponding to the ninth ratio at the maximum as the target available channel includes:
Determining whether the first coefficient, the second coefficient and the third coefficient corresponding to the maximum ninth ratio exceeds a corresponding preset threshold value;
And determining the available channel corresponding to the ninth ratio, in which the first coefficient, the second coefficient and the third coefficient all exceed the corresponding preset threshold and the maximum value exceeding the corresponding preset threshold is the target available channel.
6. The method according to any one of claims 1 to 4, wherein the data information carried by the data packet includes at least one of environmental security data including water logging data, fire data, door control data, burglar alarm data, SF 6 and O 2 detection data, temperature and humidity data and smoke data, electrical control data including dehumidifier data, exhaust fan data, air conditioning data, lamp control data and IO control data, and camera data, video data including local monitoring data, cable temperature measurement data and transformer overtemperature data, and equipment monitoring data including reactive power compensation data, harmonic control data and low voltage line measurement data.
7. The method of determining according to claim 6, wherein determining the data packet based on the data information comprises:
Classifying the data information according to a classification standard to obtain a plurality of sub-data information, wherein the classification standard comprises one of a time period for data information acquisition, a data type of the data information and a device type corresponding to the data information;
converting the format of each piece of sub data information and the corresponding type information into a target format to obtain each piece of sub data information and the corresponding type information after format conversion, wherein the target format comprises one of an XML format, a JSON format and a YAML format;
And storing and compressing each piece of sub data information after format conversion and corresponding type information in an index table form to obtain the data packet.
8. A transmission selection module, wherein the transmission selection module is configured to:
determining a first coefficient based on received data packet parameter information, wherein the data packet parameter information comprises the data length and the storage capacity of a data packet;
Determining a second coefficient based on equipment information of a target gateway, and determining a plurality of third coefficients based on channel information of each current available channel of the target gateway, wherein the equipment information comprises chip memory, software version information and transmission speed of the target gateway, the channel information comprises channel occupancy rate, signal to noise ratio and channel capacity, and the target gateway is used for transmitting the data packet;
determining a target available channel based on the first and second coefficients and each of the third coefficients, and transmitting the data packet to a cloud based on the target available channel,
The method comprises the steps of determining a third coefficient of each available channel, obtaining a plurality of second target products, determining products of the third coefficient of each available channel and the second coefficient, obtaining a plurality of third target products, determining a sum of the second target products and the third target products of each available channel, obtaining a target value, determining a ratio of the target value of each available channel to a sum of the corresponding first coefficient and second coefficient, obtaining a plurality of ninth ratios, and determining the available channel corresponding to the largest ninth ratio as the target available channel.
9. A computer-readable storage medium, characterized in that the computer-readable storage medium comprises a stored program, wherein the program, when run, controls a device in which the computer-readable storage medium is located to perform the method of determining a channel according to any one of claims 1 to 7.
10. An electronic device comprising a memory and a processor, characterized in that the memory has stored therein a computer program, the processor being arranged to perform the method of determining a channel according to any of claims 1 to 7 by means of the computer program.
11. A control system for communication testing, comprising:
the gateway module comprises a target gateway, and the target gateway is used for transmitting data packets;
A transmission selection module in communication with the gateway module for performing the channel determination method of any one of claims 1 to 7;
and the cloud end is communicated with the transmission selection module and is used for receiving the data packet forwarded by the transmission selection module.
CN202310675391.6A 2023-06-07 2023-06-07 Channel determination method, transmission selection module and communication test control system Active CN116599915B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310675391.6A CN116599915B (en) 2023-06-07 2023-06-07 Channel determination method, transmission selection module and communication test control system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310675391.6A CN116599915B (en) 2023-06-07 2023-06-07 Channel determination method, transmission selection module and communication test control system

Publications (2)

Publication Number Publication Date
CN116599915A CN116599915A (en) 2023-08-15
CN116599915B true CN116599915B (en) 2025-08-05

Family

ID=87589915

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310675391.6A Active CN116599915B (en) 2023-06-07 2023-06-07 Channel determination method, transmission selection module and communication test control system

Country Status (1)

Country Link
CN (1) CN116599915B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113364672A (en) * 2021-06-29 2021-09-07 中星电子股份有限公司 Method, device, equipment and computer readable medium for determining media gateway information
CN113596794A (en) * 2021-07-22 2021-11-02 杭州萤石软件有限公司 Channel selection method, device, system and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103686211B (en) * 2012-08-30 2017-02-08 光宝电子(广州)有限公司 Channel selection method, channel selector and network connection device
US9866635B2 (en) * 2014-03-26 2018-01-09 Rockwell Automation Technologies, Inc. Unified data ingestion adapter for migration of industrial data to a cloud platform
US10230491B2 (en) * 2015-12-15 2019-03-12 General Electric Company System and method for communication in a body area network system
CN114500678B (en) * 2022-01-26 2024-08-30 阿里巴巴(中国)有限公司 Method and equipment for establishing connection between gateway and communication node
CN115767755B (en) * 2022-11-23 2023-07-11 国网湖北省电力有限公司电力科学研究院 Lightweight scheduling method, system and storage medium suitable for LoRaWAN network terminal node

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113364672A (en) * 2021-06-29 2021-09-07 中星电子股份有限公司 Method, device, equipment and computer readable medium for determining media gateway information
CN113596794A (en) * 2021-07-22 2021-11-02 杭州萤石软件有限公司 Channel selection method, device, system and storage medium

Also Published As

Publication number Publication date
CN116599915A (en) 2023-08-15

Similar Documents

Publication Publication Date Title
CN102741898B (en) The communication means of a kind of electrical gateway and electrical gateway
CN208689407U (en) A kind of low-voltage intelligent distribution system based on Internet of Things
JP7195689B2 (en) How to send data to battery management system and host system
US11799983B2 (en) Ranking internet of things (IoT) data based on IoT analytics services
CN110880938A (en) Data acquisition method and device
CN109067871B (en) A Power Ubiquitous Intelligent Cloud Architecture
CN113660286A (en) Communication protocol fusion method combined with Kalman filtering data fusion and related equipment
CN116599915B (en) Channel determination method, transmission selection module and communication test control system
CN115864676A (en) Micro-energy collection method and passive electronic equipment
CN103581291B (en) ZigBee-based equipment monitoring system and monitoring method thereof in metal closed environment
CN112015813B (en) Data sharing method, system and device for power distribution network and computer equipment
CN110224492A (en) A kind of unattended operation transformer station real-time monitoring system
CN113746905A (en) Distributed intelligent sensing system and control method thereof
CN113141301A (en) Working state parameter processing method and device
Narayanan Addressing The Challenges Facing IoT Adoption.
JP2017162046A (en) Sensor data processing device, sensor data processing system, sensor data processing method, and sensor data processing program
Biswas et al. Efficient Data Transfer Mechanism for DLMS/COSEM Enabled Smart Energy Metering Platform
CN105206028A (en) Information acquisition device and system based on internet of things
CN108900988A (en) A kind of indoor electronic instrument temperature monitoring method based on 6LoWPAN
CN107202869A (en) A kind of air quality multiple spot real-time monitoring system
CN208689408U (en) A kind of intelligent distributing box intelligent control system
CN201690464U (en) Miniature lattice detection and control module
CN107493269B (en) Substation intelligent electronic equipment and its data sending and receiving method and system
de Araújo et al. A middleware for the integration of smart grid elements with WSN based solutions
Lei et al. Design and Implementation of Smart Home Gateway Based on 433MHz Radio-Frequency Communication

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