CN110601923A - Working mode configuration method, communication module and power terminal - Google Patents

Working mode configuration method, communication module and power terminal Download PDF

Info

Publication number
CN110601923A
CN110601923A CN201910889061.0A CN201910889061A CN110601923A CN 110601923 A CN110601923 A CN 110601923A CN 201910889061 A CN201910889061 A CN 201910889061A CN 110601923 A CN110601923 A CN 110601923A
Authority
CN
China
Prior art keywords
communication module
mode
configuration
switch
state
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.)
Granted
Application number
CN201910889061.0A
Other languages
Chinese (zh)
Other versions
CN110601923B (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.)
Ningbo Sanxing Electric Co Ltd
Ningbo Sanxing Medical and Electric Co Ltd
Original Assignee
Ningbo Sanxing Medical and Electric 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 Ningbo Sanxing Medical and Electric Co Ltd filed Critical Ningbo Sanxing Medical and Electric Co Ltd
Priority to CN201910889061.0A priority Critical patent/CN110601923B/en
Publication of CN110601923A publication Critical patent/CN110601923A/en
Application granted granted Critical
Publication of CN110601923B publication Critical patent/CN110601923B/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
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention provides a working mode configuration method, a communication module and a power terminal, and relates to the technical field of power terminals. The working mode configuration method is applied to a controller of a communication module, the communication module further comprises an interface, the controller is connected with the interface, when the communication module is in a power-on state, whether the interface is connected with a debugging board is judged, if yes, a target configuration mode with the highest priority is determined, a configuration signal is obtained through the target configuration mode, a target working mode is determined from multiple working modes of the communication module through the configuration signal, and if not, the target working mode of the communication module is configured to be a preset working mode. The working mode configuration method, the communication module and the power terminal provided by the invention have the advantage of improving the cost performance of the module.

Description

Working mode configuration method, communication module and power terminal
Technical Field
The invention relates to the technical field of power terminals, in particular to a working mode configuration method, a communication module and a power terminal.
Background
Currently, with the popularization of the power industry, power terminals are also gradually improved to better fit the use of users.
Generally including communication module in power terminal, current communication module generally integrates and has debugs serial ports, communication serial ports and burn piece serial ports, however, to the user, because the debugging to communication module is comparatively professional with burn piece operation, consequently debugging serial ports and burn piece serial ports generally only development or operation and maintenance personnel can use, the user does not can use debugging serial ports and burn piece serial ports at the in-process that uses power terminal, consequently increased communication module cost.
In summary, the cost of the communication module in the existing power terminal is high, but some functional users are not used in the using process, so that the overall cost performance of the communication module is low.
Disclosure of Invention
The invention aims to provide a working mode configuration method, a communication module and a power terminal, and aims to solve the problem that the whole cost performance of the communication module is low in the prior art.
In order to solve the problems, the invention provides the following technical scheme:
in a first aspect, the present invention provides a method for configuring a working mode, which is applied to a controller of a communication module, where the communication module further includes an interface, the controller is connected to the interface, and the method for configuring a working mode includes:
when the communication module is in a power-on state, judging whether the interface is connected with a debugging board;
if so, determining a target configuration mode with the highest priority, and acquiring a configuration signal through the target configuration mode to determine a target working mode from multiple working modes of the communication module through the configuration signal;
and if not, configuring the target working mode of the communication module as a preset working mode.
Further, the debugging board includes a first switch, and when the target configuration mode is the debugging board configuration mode, the step of obtaining the configuration signal through the target configuration mode to determine the target operating mode from the plurality of operating modes of the communication module through the configuration signal includes:
reading a level value corresponding to the first switch;
judging whether the level value is a high level;
if yes, configuring the working mode of the communication module as a modulation mode;
and if not, configuring the working mode of the communication module as a communication mode.
Further, the debugging board further includes a second switch, and before the step of determining whether the level value is a high level, the operating mode configuration method further includes:
reading state information of the second switch, wherein the state information of the second switch comprises an opening state and a closing state;
when the state information of the second switch is in an on state, controlling the second switch to be closed; wherein when the second switch is in an off state, the communication module is in a non-burn mode.
Further, the debugging board further includes a second switch, and the communication module is communicatively connected to a server, before the step of determining whether the level value is a high level, the operating mode configuration method further includes:
reading state information of the second switch, wherein the state information of the second switch comprises an opening state and a closing state;
and when the state information of the second switch is in an on state, generating a burning prompting signal and sending the burning prompting signal to the server, wherein when the second switch is in the on state, the communication module is in a burning mode.
Further, the debugging board further includes a third switch, and after the step of configuring the working mode of the communication module as the modulation mode or configuring the working mode of the communication module as the communication mode, the working mode configuration method further includes:
reading state information of the third switch, wherein the state information of the third switch comprises an opening state and a closing state;
and when the state information of the third switch is in an opening state, resetting the communication module.
Further, the communication module is communicatively connected to a server, and after the step of configuring the working mode of the communication module as a modulation mode or configuring the working mode of the communication module as a communication mode, the working mode configuration method further includes:
reading and recording a level value corresponding to the first switch according to a preset period;
and when the level value recorded in the current period is inconsistent with the level value recorded in the previous period, generating alarm information and sending the alarm information to the server.
Further, before the step of determining whether the level value is a high level, the operating mode configuring method further includes:
judging whether the level value corresponding to the first switch is equal to a standard value or not;
if yes, executing the step of judging whether the level value is high level;
and if not, finishing the configuration of the working mode of the communication module.
Further, the communication module is communicatively connected to a server, and when the target configuration mode is a message configuration mode, the step of obtaining the configuration signal through the target configuration mode to determine the target operating mode from the plurality of operating modes of the communication module through the configuration signal includes:
acquiring a configuration message sent by the server;
when the configuration message is a first message, configuring the working mode of the communication module as a modulation mode;
and when the configuration message is a second message, configuring the working mode of the communication module as a communication mode.
Further, the debugging is in communication connection with a background, and when the target configuration mode is an instruction configuration mode, the step of obtaining the configuration signal through the target configuration mode to determine the target operating mode from the plurality of operating modes of the communication module through the configuration signal includes:
acquiring a configuration instruction of the background through the debugging board;
when the configuration instruction is a first instruction, configuring the working mode of the communication module as a modulation mode;
and when the configuration instruction is a second instruction, configuring the working mode of the communication module to be a communication mode.
In a second aspect, an embodiment of the present invention further provides a communication module, where the communication module includes a controller and an interface, and the controller is connected to the interface;
when the communication module is in a power-on state, the controller is used for judging whether the interface is connected with a debugging board, wherein the debugging board is at least integrated with a debugging interface and a communication interface;
the controller is further configured to determine a target configuration mode with the highest priority when the interface is connected with a debugging board, and acquire a configuration signal through the target configuration mode to determine a target working mode from multiple working modes of the communication module through the configuration signal;
the controller is further configured to configure the working mode of the communication module to be a preset working mode when the interface is not connected with the debugging board.
In a third aspect, an embodiment of the present invention further provides an electric power terminal, where the electric power terminal includes the communication module described above.
Compared with the prior art, the method has the following beneficial effects:
the embodiment of the invention provides a working mode configuration method, a communication module and a power terminal, wherein the working mode configuration method is applied to a controller of the communication module, the communication module also comprises an interface, the controller is connected with the interface, when the communication module is in a power-on state, whether the interface is connected with a debugging board or not is judged, if yes, a target configuration mode with the highest priority is determined, a configuration signal is obtained through the target configuration mode, a target working mode is determined from multiple working modes of the communication module through the configuration signal, and if not, the target working mode of the communication module is configured to be a preset working mode. Because this application gets rid of serial ports such as the original debugging of communication module, communication and burn piece to adopt unified interface to receive corresponding debugging signal, make communication module's cost of manufacture reduce, and can realize functions such as modulation, communication and burn piece, promoted communication module's price/performance ratio.
Drawings
Fig. 1 is an exemplary flowchart of a method for configuring a working mode according to an embodiment of the present invention.
Fig. 2 is an exemplary flowchart for configuring an operating mode of a communication module by using a first configuration manner according to an embodiment of the present invention.
Fig. 3 is an exemplary flowchart for configuring an operating mode of a communication module by using a second configuration manner according to an embodiment of the present invention.
Fig. 4 is an exemplary flowchart for configuring an operating mode of a communication module by using a third configuration manner according to an embodiment of the present invention.
Fig. 5 is another exemplary flowchart for configuring an operating mode of a communication module by using a third configuration manner according to an embodiment of the present invention.
Fig. 6 is an exemplary module diagram of a communication module according to an embodiment of the present invention.
Description of reference numerals:
200-a communication module; 210-a controller; 220-interface.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in detail below.
At present, a communication module in an electric power terminal is generally integrated with a debugging single serial port and a burn-in serial port, for example, a 376G meter in the traditional old of the electric power industry integrates an RS232 debugging serial port, a USB serial port and the like on a PCB, wherein the debugging serial port is used for testing a programmed program by a manual method or a compiling program method and the like during or before the operation of the communication module, and correcting functions such as syntax errors, logic errors and the like. The USB serial port is equivalent to a burning serial port, and the burning serial port is used for burning a specific program into a chip of the communication module. From the user's perspective, it need not use debugging mouth and burn piece mouth at all, and this function only develops or the operation and maintenance personnel can use, if will debug serial ports and burn piece serial ports integration on a PCB increased the cost of product among the intangible, reduced the price/performance ratio.
Therefore, the embodiment of the invention provides a new communication module, and the RS232 debugging serial port and the USB burn-in port are removed from the communication module and integrated on a debugging board, so that the cost is reduced. Meanwhile, different requirements of debugging personnel and users are met through the working mode configuration method.
The following describes an exemplary operation mode configuration method provided in an embodiment of the present invention, with a controller of a communication module as an execution subject.
First embodiment
Referring to fig. 1, fig. 1 shows a schematic flowchart of a working mode configuration method according to an embodiment of the present invention, where the working mode configuration method includes:
s101, when the communication module is in a power-on state, whether the interface is connected with a debugging board is judged. If yes, S103 is performed, and if no, S105 is performed.
S103, determining a target configuration mode with the highest priority, and acquiring a configuration signal through the target configuration mode to determine a target working mode from multiple working modes of the communication module through the configuration signal.
And S105, configuring the target working mode of the communication module as a preset working mode.
In the application, in order to reduce the cost of the product and simultaneously reduce the complexity of the product, the serial port function and the USB port which are not needed by a user are removed and are independently integrated on a debugging board. The debugging board needs to be matched with bottom hardware and an MCU in the communication module, and a serial port compatible mechanism algorithm needs to be designed to control the working mode of the communication module.
It can be understood that after the serial port function and the USB port are removed, the communication module includes an interface and a controller, the controller is connected to the interface, and the interface is connected to the debugging board or directly to the background, and the working mode of the communication module is configured to achieve different functions and effects through the interface.
When the communication module is in a power-on state, the communication module indicates that operations such as communication or debugging need to be performed by using the interface of the communication module, and at this time, the controller firstly judges whether the interface is connected with a debugging board. If the debugging platelet exists, a target configuration mode can be determined from the plurality of configuration modes, the configuration signal is obtained through the target configuration mode, and the target working mode is determined from the plurality of working modes of the communication module through the configuration signal.
For example, when there are multiple configuration modes, the configuration mode with the highest priority may be selected from the multiple configuration modes, and the controller acquires the configuration signal through the configuration mode and then determines the target operating mode according to the configuration signal, that is, implements the target function through the interface.
And when the controller judges that the interface is not connected with the debugging board, the target working mode of the communication module is configured to be a preset working mode. As a possible implementation manner of the present application, after the communication module is powered on, when the controller does not detect that the interface is connected to the debugging board, the controller configures the target operating mode as the communication mode.
It should be noted that, this application can be realized through multiple modes to the judgement that whether the interface is connected with the debugging board, for example, be provided with corresponding selection button on the communication module, the staff passes through the mode of button for the controller can judge whether the interface is connected with the debugging board this moment. Or directly, whether the controller is connected with the debugging board through the level judgement of interface connection's pin, generally, be provided with a plurality of interface pins on the debugging board, if be provided with 8 interface pins on the debugging board, because the backstage still need be connected to the debugging board rear end, therefore the pin is in high level state, the controller realizes being connected with the judgement of debugging board to the interface through the level state that acquires one or more pin, this application does not do specifically and restricts to the judgement mode whether be connected with the debugging board.
Simultaneously, this application does not do any restriction to the connected mode between debugging board and the communication module yet, for example, the debugging board can with the communication module between pluggable be connected, when the staff need debug operation such as communication module promptly, can insert the debugging board on the interface, when need not debug operation such as, take out the debugging board from the interface again for the flexibility is stronger. Of course, the debugging board can also be arranged in the power terminal and connected with the interface.
As an implementation manner of the present application, the configuration manners described in S103 include three, which are a debug board configuration manner, a message configuration manner, and an instruction configuration manner, and priorities of the multiple configuration manners are preset, for example, the message configuration manner is a first priority, the debug board configuration manner is a second priority, and the instruction configuration manner is a third priority. When only one of the configuration modes exists, the configuration mode is taken as a target configuration mode, for example, in the working process of the communication module, when only the debugging board configuration mode exists, the debugging board configuration mode is taken as the target configuration mode, and then the configuration signal is acquired.
Referring to fig. 2, as a first implementation manner of the present application, when the determined target configuration manner is a message configuration manner, S103 includes:
s103-1, acquiring the configuration message sent by the server.
S103-2, judging whether the configuration message is the first message, if so, executing S103-3, and if not, executing S103-4.
S103-3, configuring the working mode of the communication module as a modulation mode.
S103-4, configuring the working mode of the communication module as a communication mode.
The communication module is in communication connection with a server, for example, the communication connection is established in a wired or wireless mode, and a worker can send a message to the communication module through the server, so that the controller can receive a corresponding configuration message in an European mode, and further judge whether the configuration message is a first message, if so, the working mode of the communication module is configured to be a modulation mode, and if not, the working mode of the communication module is set to be a communication mode. In the debugging mode state, a worker can debug a program in the communication module through the background, and in the communication state, the worker can perform data interaction with the communication module through the background, for example, the worker can acquire data of the power terminal through the communication module, such as voltage information or current information.
For example, the first message is 00F 2007F 00020351F 20002005F 0a 00080100160100, and when the controller receives the message, the operating mode of the communication module is configured to the debug mode, and when another message is received, the operating mode of the communication module is configured to the communication mode. Certainly, the second message may also be set to 070100F 2007F 00020351F 20002005F 0602080100160000, and when the first message is received, the controller configures the operating mode of the communication module to the debugging mode; and when the second message is received, the controller configures the working mode of the communication module into a communication mode.
Referring to fig. 3 as a second implementation manner of the present application, when the determined target configuration manner is an instruction configuration manner, S103 includes:
and S103-5, acquiring a configuration instruction of the background through the debugging board.
S103-6, judging whether the configuration instruction is the first instruction, if so, executing S1037, and if not, executing S1038.
S103-7, configuring the working mode of the communication module as a modulation mode.
S103-8, configuring the working mode of the communication module as a communication mode.
In the implementation mode, the communication module is in communication connection with the debugging board, the debugging board is in communication connection with the background, and the configuration instruction can be sent to the communication module through the background, wherein the configuration instruction is forwarded to the communication module through the debugging board, and the configuration instruction is executed by the controller. For example, the configuration instruction is an rs232 instruction. Of course, the configuration instruction may further include a second instruction, and when the controller receives the first instruction, the operating mode of the communication module is configured to be the modulation mode; and when the controller receives the second instruction, configuring the working mode of the communication module as a communication mode.
Referring to fig. 4 as a third implementation manner of the present application, when the determined target configuration manner is a message configuration manner, S103 includes:
s103-9, reading the state information of the second switch, wherein the state information of the second switch comprises an opening state and a closing state.
S103-10, controlling the second switch to be closed when the state information of the second switch is in an on state; when the second switch is in an off state, the communication module is in a non-burning mode.
In this application, in order to facilitate configuration of the working mode of the communication module, the debugging board is provided with three switches, namely a first switch, a second switch and a third switch. The first switch corresponds to the USB _ ID and controls the corresponding communication or debugging state, the second switch is the USB _ BOOT and controls the corresponding burn state, and the third switch is the corresponding HW _ WDT and controls the watchdog state.
The chip burning state is to burn the chip in the control communication module and is only used for the first time, so that the function is not used in a normal use state. Therefore, the controller firstly reads the state of the second switch, when the second switch is in an on state, the communication module is correspondingly in a burning state, and when the second switch is in an off state, the communication module is correspondingly in a non-burning state. For example, the on state or the off state of the second switch is determined by a high-low level signal of the second switch, and the on state is determined when the level value corresponding to the second switch is a high level, and the off state is determined when the level value corresponding to the second switch is a low level.
Moreover, when debugging or communicating the communication module, it is necessary to first ensure that the second switch is in the off state, so that, as an implementation manner of the present application, when the state information of the second switch is in the on state, the controller directly sends a control signal to control the second switch to jump to the off state, so as to ensure that the state information of the second switch is in the on state.
As another implementation manner of the present application, when the state information of the second switch is in an on state, the controller may generate a burn prompt signal and send the burn prompt signal to the server, wherein when the second switch is in the on state, the communication module is in a burn mode. Moreover, the debugging personnel can acquire the burn prompting signal through the server, so that the effect of prompting the debugging personnel is achieved, and the debugging personnel manually places the second switch in a closed state, namely places the second switch in an OFF state.
And S103-11, reading a level value corresponding to the first switch.
S103-12, judging whether the level value corresponding to the first switch is equal to the standard value, if so, executing S103-13, and if not, configuring the working mode of the communication module.
S103-13, judging whether the level value is high level, if yes, executing S103-14, and if no, executing S103-15.
S103-14, configuring the working mode of the communication module to be a modulation mode.
S103-15, configuring the working mode of the communication module as a communication mode.
When the target configuration mode is determined to be the configuration mode of the debugging board and the second switch is determined to be in the closed state, the communication module is in the debugging mode or the communication mode is determined by the first switch of the debugging board. Wherein the controller will continue to obtain the level value of the first switch, for example, by reading the level value of the first switch through the "hw _ gpio _ read ()" function.
After the level value is read, because the communication mode between the communication module and the debugging board is the rs232 mode, the controller firstly judges whether the level value corresponding to the first switch is equal to a standard value, the standard value is the rs232 mode value, if the level value is equal to the standard value, the communication between the communication module and the debugging board meets the rs232 mode, and the communication or the debugging can be controlled. If the level value corresponding to the first switch is not equal to the standard value, it indicates that the software of the communication module does not support the debugging board, and interaction cannot be realized, and at this time, the process is ended.
The controller is further configured to determine whether the level value is a high level on the premise that the level value corresponding to the first switch is equal to the standard value, and configure the working mode of the communication module according to the level value corresponding to the first switch. The mode configuration to communication module can be realized through toggle switch's mode to the staff. For example, when debugging is needed, the worker can toggle the first switch to the first position to make the level value corresponding to the first switch be the high level, and after the debugging is completed, the debugging result needs to be checked, and at this time, the worker can toggle the first switch to the second position to make the level value corresponding to the first switch be the low level.
After the step of S103-14 or S103-15, S103 further includes:
and S103-16, reading the state information of the third switch, wherein the state information of the third switch comprises an opening state and a closing state.
S103-17, when the state information of the third switch is in the opening state, resetting the communication module.
Wherein, the third switch on the debugging board is a reset switch which can control the reset of data. After executing the step of S103-14 or S103-15, the controller may acquire the state information of the third switch at any time, and when the state information of the third switch is in an on state, it indicates that the data in the communication module needs to be reset.
For example, when a debugger is debugging, the data needs to be reset for operation reasons, and then debugging is performed again, so that the debugger can toggle the third switch to the on state, and the controller can reset the data of the communication module. Or when the user needs to refresh the data acquisition of the communication module in the communication process, the state information of the third switch can be in an open state. Naturally, the operation of resetting the communication module may also be to change the state information of the third switch from the off state to the on state and then from the on state to the off state, which is not limited in this embodiment.
Meanwhile, after the step of S103-14 or S103-15, referring to fig. 5, S103 further includes:
and S103-18, reading and recording the level value corresponding to the first switch according to a preset period.
And S103-19, when the level value recorded in the current period is inconsistent with the level value recorded in the last period, generating alarm information and sending the alarm information to the server.
Because the debugging personnel may cause the state change of the first switch by misoperation in the debugging process, in order to prevent the communication module from being out of order due to misoperation of the debugging personnel, for example, the debugging personnel accidentally dials the switch of the debugging board.
In view of this, in the present application, the controller may also periodically read and record a level value corresponding to the first switch, and when the level value recorded in the current period is inconsistent with the level value recorded in the previous period, generate the alarm information and send the alarm information to the server. Therefore, when the level value of the first switch changes, the debugging personnel can receive the alarm information through the server and timely acquire the change of the state of the first switch.
Through the working mode configuration method provided by the application, the configuration of the working modes is convenient, various requirements are compatible from multiple dimensions, the method is suitable for developers and users, the product cost is reduced, and the product cost performance is improved.
Second embodiment
Referring to fig. 6, an embodiment of the invention provides a communication module 200, where the communication module 200 includes a controller 210 and an interface 220, and the controller 210 is connected to the interface 220. When the communication module 200 is in a power-on state, the controller 210 is configured to determine whether the interface 220 is connected to a debug board, where the debug board is at least integrated with the debug interface 220 and the communication interface 220, the controller 210 is further configured to determine a target configuration mode with a highest priority when the interface 220 is connected to the debug board, and obtain a configuration signal through the target configuration mode, so as to determine a target working mode from multiple working modes of the communication module 200 through the configuration signal, and the controller 210 is further configured to configure the working mode of the communication module 200 to be a preset working mode when the interface 220 is not connected to the debug board. Since the first embodiment of the present invention has already described a specific working method of the communication module 200, it is not described in detail in this implementation.
Third embodiment
The embodiment of the present invention further provides an electric power terminal, where the electric power terminal includes the communication module, and certainly, the electric power terminal may further include other modules, such as an electric power acquisition module, and the like, which is not specifically limited in this application.
In summary, embodiments of the present invention provide a working mode configuration method, a communication module, and an electric power terminal, where the working mode configuration method is applied to a controller of the communication module, the communication module further includes an interface, the controller is connected to the interface, when the communication module is in a power-on state, it is determined whether the interface is connected to a debug board, if so, a target configuration mode with a highest priority is determined, and a configuration signal is obtained through the target configuration mode, so as to determine a target working mode from multiple working modes of the communication module through the configuration signal, and if not, the target working mode of the communication module is configured to be a preset working mode. Because this application gets rid of serial ports such as the original debugging of communication module, communication and burn piece to adopt unified interface to receive corresponding debugging signal, make communication module's cost of manufacture reduce, and can realize functions such as modulation, communication and burn piece, promoted communication module's price/performance ratio.
Although the present invention is disclosed above, the present invention is not limited thereto. Various changes and modifications may be effected therein by one skilled in the art without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (11)

1. An operation mode configuration method is applied to a controller of a communication module, the communication module further comprises an interface, the controller is connected with the interface, and the operation mode configuration method comprises the following steps:
when the communication module is in a power-on state, judging whether the interface is connected with a debugging board;
if so, determining a target configuration mode with the highest priority, and acquiring a configuration signal through the target configuration mode to determine a target working mode from multiple working modes of the communication module through the configuration signal;
and if not, configuring the target working mode of the communication module as a preset working mode.
2. The method according to claim 1, wherein the debug board includes a first switch, and when the target configuration mode is the debug board configuration mode, the step of obtaining the configuration signal through the target configuration mode to determine the target operation mode from the plurality of operation modes of the communication module through the configuration signal includes:
reading a level value corresponding to the first switch;
judging whether the level value is a high level;
if yes, configuring the working mode of the communication module as a modulation mode;
and if not, configuring the working mode of the communication module as a communication mode.
3. The method of claim 2, wherein the debugging panel further comprises a second switch, and wherein before the step of determining whether the level value is a high level, the method further comprises:
reading state information of the second switch, wherein the state information of the second switch comprises an opening state and a closing state;
when the state information of the second switch is in an on state, controlling the second switch to be closed; wherein when the second switch is in an off state, the communication module is in a non-burn mode.
4. The method of claim 2, wherein the debugging panel further comprises a second switch, and the communication module is communicatively connected to a server, and before the step of determining whether the level value is high, the method further comprises:
reading state information of the second switch, wherein the state information of the second switch comprises an opening state and a closing state;
and when the state information of the second switch is in an on state, generating a burning prompting signal and sending the burning prompting signal to the server, wherein when the second switch is in the on state, the communication module is in a burning mode.
5. The method according to claim 2, wherein the debugging board further comprises a third switch, and after the step of configuring the operation mode of the communication module as the modulation mode or configuring the operation mode of the communication module as the communication mode, the method further comprises:
reading state information of the third switch, wherein the state information of the third switch comprises an opening state and a closing state;
and when the state information of the third switch is in an opening state, resetting the communication module.
6. The method as claimed in claim 2, wherein the communication module is communicatively connected to a server, and after the step of configuring the operation mode of the communication module as the modulation mode or configuring the operation mode of the communication module as the communication mode, the method further comprises:
reading and recording a level value corresponding to the first switch according to a preset period;
and when the level value recorded in the current period is inconsistent with the level value recorded in the previous period, generating alarm information and sending the alarm information to the server.
7. The operation mode configuration method according to claim 2, wherein before the step of determining whether the level value is a high level, the operation mode configuration method further comprises:
judging whether the level value corresponding to the first switch is equal to a standard value or not;
if yes, executing the step of judging whether the level value is high level;
and if not, finishing the configuration of the working mode of the communication module.
8. The method according to claim 1, wherein the communication module is communicatively connected to a server, and when the target configuration mode is a message configuration mode, the step of obtaining the configuration signal through the target configuration mode to determine the target operation mode from the plurality of operation modes of the communication module through the configuration signal comprises:
acquiring a configuration message sent by the server;
when the configuration message is a first message, configuring the working mode of the communication module as a modulation mode;
and when the configuration message is a second message, configuring the working mode of the communication module as a communication mode.
9. The method according to claim 1, wherein the debugging is communicatively connected to a background, and when the target configuration mode is an instruction configuration mode, the step of obtaining the configuration signal through the target configuration mode to determine the target operation mode from the plurality of operation modes of the communication module through the configuration signal comprises:
acquiring a configuration instruction of the background through the debugging board;
when the configuration instruction is a first instruction, configuring the working mode of the communication module as a modulation mode;
and when the configuration instruction is a second instruction, configuring the working mode of the communication module to be a communication mode.
10. A communication module, characterized in that the communication module comprises a controller and an interface, the controller being connected to the interface;
when the communication module is in a power-on state, the controller is used for judging whether the interface is connected with a debugging board, wherein the debugging board is at least integrated with a debugging interface and a communication interface;
the controller is further configured to determine a target configuration mode with the highest priority when the interface is connected with a debugging board, and acquire a configuration signal through the target configuration mode to determine a target working mode from multiple working modes of the communication module through the configuration signal;
the controller is further configured to configure the working mode of the communication module to be a preset working mode when the interface is not connected with the debugging board.
11. An electrical terminal, characterized in that it comprises a communication module according to claim 10.
CN201910889061.0A 2019-09-19 2019-09-19 Working mode configuration method, communication module and power terminal Active CN110601923B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910889061.0A CN110601923B (en) 2019-09-19 2019-09-19 Working mode configuration method, communication module and power terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910889061.0A CN110601923B (en) 2019-09-19 2019-09-19 Working mode configuration method, communication module and power terminal

Publications (2)

Publication Number Publication Date
CN110601923A true CN110601923A (en) 2019-12-20
CN110601923B CN110601923B (en) 2021-06-01

Family

ID=68861394

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910889061.0A Active CN110601923B (en) 2019-09-19 2019-09-19 Working mode configuration method, communication module and power terminal

Country Status (1)

Country Link
CN (1) CN110601923B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111458561A (en) * 2020-03-27 2020-07-28 深圳渊联技术有限公司 Equipment sampling device, configuration and management method, management server and management system

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101032427A (en) * 2007-04-27 2007-09-12 周钷 Digital-signal intelligent monitoring method and application system thereof
CN201230327Y (en) * 2008-05-30 2009-04-29 天津理工大学 DeviceNet field bus I/O communication apparatus based on multiple data triggering modes
US7877477B2 (en) * 2008-06-30 2011-01-25 Oracle America, Inc. Method and system for discovering managed systems in a network
CN102436413A (en) * 2011-11-08 2012-05-02 迈普通信技术股份有限公司 Debugging system and debugging method of board power supply
CN103927282A (en) * 2013-01-15 2014-07-16 郝明学 Device for controlling connection or removal of USB (Universal Serial Bus) device
CN104331350A (en) * 2014-09-29 2015-02-04 福建联迪商用设备有限公司 Method and device for debugging serial port of IC (Integrated Circuit) card electronic equipment
CN105204399A (en) * 2015-09-17 2015-12-30 厦门骐俊物联科技股份有限公司 OBD car networking intelligent terminal based on Open CPU technology
CN106470446A (en) * 2015-08-20 2017-03-01 株式会社东芝 Communicator and communication means
CN106648110A (en) * 2017-01-03 2017-05-10 京东方科技集团股份有限公司 Information processing device, terminal and terminal working mode adjusting system and method
KR20170068811A (en) * 2015-12-10 2017-06-20 현대자동차주식회사 Communication System Mounted on Vehicle and Operational Method Therefor
CN107809349A (en) * 2017-09-29 2018-03-16 郑州云海信息技术有限公司 A kind of device and method of monitoring server signal waveform
CN108712301A (en) * 2018-04-03 2018-10-26 四川斐讯信息技术有限公司 A kind of adjustment method and debugging system of terminal device
CN109558283A (en) * 2018-12-03 2019-04-02 郑州云海信息技术有限公司 A kind of board adjustment method, apparatus and system
CN109815184A (en) * 2017-11-21 2019-05-28 中兴通讯股份有限公司 Debugging single board device and its control method, computer readable storage medium

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101032427A (en) * 2007-04-27 2007-09-12 周钷 Digital-signal intelligent monitoring method and application system thereof
CN201230327Y (en) * 2008-05-30 2009-04-29 天津理工大学 DeviceNet field bus I/O communication apparatus based on multiple data triggering modes
US7877477B2 (en) * 2008-06-30 2011-01-25 Oracle America, Inc. Method and system for discovering managed systems in a network
CN102436413A (en) * 2011-11-08 2012-05-02 迈普通信技术股份有限公司 Debugging system and debugging method of board power supply
CN103927282A (en) * 2013-01-15 2014-07-16 郝明学 Device for controlling connection or removal of USB (Universal Serial Bus) device
CN104331350A (en) * 2014-09-29 2015-02-04 福建联迪商用设备有限公司 Method and device for debugging serial port of IC (Integrated Circuit) card electronic equipment
CN106470446A (en) * 2015-08-20 2017-03-01 株式会社东芝 Communicator and communication means
CN105204399A (en) * 2015-09-17 2015-12-30 厦门骐俊物联科技股份有限公司 OBD car networking intelligent terminal based on Open CPU technology
KR20170068811A (en) * 2015-12-10 2017-06-20 현대자동차주식회사 Communication System Mounted on Vehicle and Operational Method Therefor
CN106648110A (en) * 2017-01-03 2017-05-10 京东方科技集团股份有限公司 Information processing device, terminal and terminal working mode adjusting system and method
CN107809349A (en) * 2017-09-29 2018-03-16 郑州云海信息技术有限公司 A kind of device and method of monitoring server signal waveform
CN109815184A (en) * 2017-11-21 2019-05-28 中兴通讯股份有限公司 Debugging single board device and its control method, computer readable storage medium
CN108712301A (en) * 2018-04-03 2018-10-26 四川斐讯信息技术有限公司 A kind of adjustment method and debugging system of terminal device
CN109558283A (en) * 2018-12-03 2019-04-02 郑州云海信息技术有限公司 A kind of board adjustment method, apparatus and system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
R.BALDONI,: ""Properties of communication modes in distributed systems"", 《PROCEEDING 1ST INTERNATIONAL CONFERENCE ON ALGORITHMS AND ARCHITECTURES FOR PARALLEL PROCESSING》 *
陈硕,: ""基于USB和JTAG接口的DSP在线调试系统实现"", 《中国优秀硕士学位论文全文数据库-信息科技辑》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111458561A (en) * 2020-03-27 2020-07-28 深圳渊联技术有限公司 Equipment sampling device, configuration and management method, management server and management system

Also Published As

Publication number Publication date
CN110601923B (en) 2021-06-01

Similar Documents

Publication Publication Date Title
CN105573743B (en) Chip burning system and method and electronic equipment
CN106569118B (en) A kind of chip short-circuit failure detection system and method
CN112000351B (en) Updating method, updating device, updating equipment and storage medium of BMC (baseboard management controller) firmware
CN106980597B (en) System-on-chip verification method and system
EP0480527A2 (en) Test apparatus
CN110601923B (en) Working mode configuration method, communication module and power terminal
CN112198865A (en) Testing method, device and system for MCU low-power mode switching
CN111045930A (en) Method and system for downloading and debugging optical module code
CN116541032A (en) Data burning method, device, equipment and computer storage medium
CN109460359A (en) A kind of software version test method and system for embedded device
CN105446886B (en) A kind of computer program debugging method and apparatus
CN106154072B (en) A kind of electronic equipment test macro and method
CN112380076A (en) Mobile terminal performance testing method and device based on photoinduction
CN109582571B (en) Online debugging method and device, debugging slave computer, debugging host computer and system
CN107391329B (en) Method, system and storage device for testing repeated use of mobile terminal
CN105391833B (en) A kind of internal storage data loss test system and method based on mobile terminal
CN107733740B (en) VEE-based communication equipment automatic test method
CN103544099A (en) Method and device for testing programs on mobile device
CN114138312A (en) Upgrade test method, device, electronic equipment and computer readable storage medium
CN114019357A (en) Management method of test pin of logic processing module and related assembly
CN114661021A (en) Hardware-in-loop test method and device for controller
CN211698947U (en) Numerical control system FPGA-flash memory chip configuration circuit
CN217061428U (en) Chip burning device
CN217426113U (en) Hard disk lighting device based on single chip microcomputer analysis SGPIO signal
CN201293808Y (en) Universal device for developing and testing embedded information household electrical appliance

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