CN109951212A - A kind of remote audio line data communication package based on PRIME standard - Google Patents

A kind of remote audio line data communication package based on PRIME standard Download PDF

Info

Publication number
CN109951212A
CN109951212A CN201910144230.8A CN201910144230A CN109951212A CN 109951212 A CN109951212 A CN 109951212A CN 201910144230 A CN201910144230 A CN 201910144230A CN 109951212 A CN109951212 A CN 109951212A
Authority
CN
China
Prior art keywords
slave
network
networking
data
communication
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910144230.8A
Other languages
Chinese (zh)
Inventor
陈国平
王红
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chongqing University of Post and Telecommunications
Original Assignee
Chongqing University of Post and Telecommunications
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 Chongqing University of Post and Telecommunications filed Critical Chongqing University of Post and Telecommunications
Priority to CN201910144230.8A priority Critical patent/CN109951212A/en
Publication of CN109951212A publication Critical patent/CN109951212A/en
Pending legal-status Critical Current

Links

Abstract

The invention discloses a kind of remote audio line data communication package based on PRIME standard is related to long-range local network communication field, for solving the problems, such as that monitoring, the order of control system, message carry out stable two-way communication on tone frequency channel wire.It include: the host side for controlling, managing entire localized network, the switching node of terminal as localized network establishes network with host side, carries out the slave generator terminal of data communication and two length as localized network communication link are 1 km or so, the tone frequency channel wire with positive and negative electrode output.It was verified that the communication plan has reliable networking, communication function, and can execute the movement of data transmission in time, there are huge practical potentiality and researching value to the automatic transmission system being applied on tone frequency channel wire.

Description

A kind of remote audio line data communication package based on PRIME standard
Technical field
The present invention relates to long-range localized networks to establish field, in particular to a kind of tone frequency channel wire bidirectional data communication field, it Belong to the PLC technology in carrier communication field.
Background technique
Representative communication standard of the PRIME agreement as PLC, applying frequency bandwidth are CENELEC-A frequency band (41.9- 88.8kHz), communication process is strengthened instead of mono signal carrier communication mode using the OFDM technology with multicarrier In anti-attenuation and antimierophonic ability.
For the transmission of the data of power line, PLC technology has outstanding communication quality, therefore is chiefly used in intelligent electricity The fields such as the long-range control of net, street lamp.But traditional PLC module is all directly to be designed according to the characteristics of power line communication, Have the shortcomings that volume is big, inherency is strong.Especially when the foundation for carrying out MAC layer communication network, connecting, existing PLC mould Integration packaging is good for block, can not be suitable for other non-electrical line of force communications fields.Meanwhile tone frequency channel wire is only used to transmit voice letter Number, purposes is very single, is not used in the processing to communication data in general monitoring system, equipment, transmission substantially.
Summary of the invention
When studying the communication system in certain fields (such as nuclear power environment), due to the particular provisions of plant area, it can not increase new Communication link can only use the route being laid out, such as tone frequency channel wire.Since the communication channel of tone frequency channel wire is not ideal electric power Line channel, during establishing actual network communication, it may appear that the problems such as data are blocked, are omitted, so as to cause network connection Establish failure.
Under remote, in order to realize that stable network connection is established, reliable data communication process is carried out, to avoid There is the incomplete situation of data receiver.
The invention proposes a kind of remote audio line data communication package based on PRIME standard, comprising: for controlling, The host side for managing entire localized network is established network with host side, is carried out as the switching node of localized network terminal The tone frequency channel wire of the slave generator terminal of data communication and two positive and negative electrodes output as localized network communication link.
One and only one switching node Node:C in one localized network, all upgradings from generator terminal, registration Process is completed by Node:C.
The host side network connection establishment process is to send correlation using UART to SM2400 modules A by MCU and refer to It enables, SM2400 modules A is forced to complete the netinit of host side.
The host side network initialization process the following steps are included:
Step 1 obtains the PRIME firmware protocols that SM2400 modules A uses;
Step 2, the address EUI-48 that host is configured in MLME;
Step 3, MLME initiate to establish the order of network;
The Interface status of step 4, configuration of IP V4 agreement;
Step 5, the Interface status for activating IPV4 agreement, check activation result;
Step 6 establishes IPV4 network connection, and IP, subnet mask, the gateway address of IPV4 agreement is arranged.
It is established in the step 3 comprising information such as SNA, CID in the data packet of networking command, and found in the process One upgrades to switching node Node:C from node.
The return value of successful activation IPV4 network interface is 0x01 in the step 5.
In the step 6 MCU receive SM2400 modules A returned data value be 0 when, then the IPV4 network of host side is built It stands successfully.
The networking of the slave generator terminal, login process are to send correlation using UART to SM2400 module B by MCU and refer to It enables, SM2400 module B is forced to complete the network connection from generator terminal.
The slave generator terminal networking login process the following steps are included:
Step 1 obtains the PRIME firmware protocols that SM2400 module B is used;
Step 2, the address EUI-48 that slave is configured in MLME;
Step 3 finds suitable switching node, initiates registration request;
Step 4, MLME initiate logging request to host according to information such as SNA, CID of switching node;
Step 5, the IPV4 Interface status for configuring slave;
Step 6, activation IPV4 Interface status, check activation result;
Step 7 establishes IPV4 network connection, confirmation network connection result;
Step 8, the logging request for initiating network communication complete the login connection of IPV4 network.
The return value of successful activation IPV4 network interface is 0x01 in the step 6.
In the step 7 MCU receive SM2400 module B returned data value be 0 when, then built from the IPV4 network of generator terminal It stands successfully.
In the step 8 MCU receive SM2400 module B returned data value be 0x02 when, then from the IPV4 net of generator terminal Network logins successfully.
The SM2400 modules A and SM2400 module B is connected to the both ends of the tone frequency channel wire of two 1 kms or more.
The networking login mode of more slaves is the height according to task priority, is successively arranged by queue serial number Team logs in.
More slave networking login mode specifically: set distance of the slave apart from host as x, the physical location of slave For y, the address IP is z, and the representation method for obtaining slave position is (x, y, z).
When being ranked up label, the numerical value of x, y and z are got over hour, and it is higher that the networking of slave logs in priority, i.e., at first to Host initiates networking logging request.If x, the numerical value of y and z is bigger, the networking login priority of slave is lower, more late to master Machine initiates networking logging request.Meanwhile it can accurately confirm the slave number that network connection is successfully established with host.
The slave successfully log in number checking algorithm the following steps are included:
After step 1, each slave complete networking login, the data bit for defining " 0x01 " in the frame that communicates back is correlation data Position, if the digit of correlation data position is By, communication frame length Le, the communication frame overall length that all slaves return after successfully logging in Degree is Lt, and communication frame bits of offset is S.
Step 2 carries out traversal queries to Lt, is to indicate jointly with start bit " 0x3C " and stop bits " 0x3E ", by Lt into Row segment processing.If every section is started with start bit, the data segment that stop bits stops is Pn, wherein which section n indicates.
Step 3, to every section of PnIn correlation data position carry out traversal queries, if finding a correlation data position, quantity Factor a adds one certainly.
Step 4 obtains data segment number of segment N according to formula (1), after a data segment represents a slave success networking login The frame that communicates back, so number of segment N be represents successfully networking log in slave number M, i.e. N=M.
Step 5 obtains the slave number L that failed networking logs according to formula (2).Wherein, T is total slave number of demand.
T-M=L (2)
And communication frame format, the data length returned after each slave success networking login is fixed.It is every in Le The start bit and stop bits of segment data section are seamless connections, it is impossible to there are other data, it, must if there are other data bit There is slave logon error occur surely.
It solves slave and the method for logon error occurs are as follows: abandon the data segment of traversal queries erroneous logons slave passback, see The information received in host computer is examined, the slave logged in failed networking sends networking log on command again, re-starts networking It logs in.
Since the value of correlation data position is " 0x01 ", therefore the IP address of slave is started setting up from 0x02.
Detailed description of the invention
In order to which the purpose of the present invention, technical solution is more clearly understood, below in conjunction with attached drawing, the present invention is done further It is described in detail, in which:
Fig. 1 is a kind of remote audio line data communication package structural schematic diagram based on PRIME standard
Fig. 2 is host side netinit flow diagram
Fig. 3 is from generator terminal networking login process schematic diagram
Fig. 4 is more slave networking login mode schematic diagrames
Fig. 5 is the data sectional processing schematic of communication frame
Fig. 6 is the flow diagram for establishing overall network connection
Specific embodiment
In order to realize the two-way stable transmission that the data such as system command, message are controlled, monitored on tone frequency channel wire, improve tradition Plc communication module is applicable only to the phenomenon in power line, improves the practicability and portability of PLC technology, and the present invention proposes A kind of remote audio line data communication package based on PRIME standard.Mature PRIME consensus standard is utilized in the program, Complete MAC layer host side on tone frequency channel wire in conjunction with MCU chip, established from the localized network of generator terminal, realize host side with from generator terminal Data communication function.
With reference to the accompanying drawing technical solution in the embodiment of the present invention carry out it is clear, describe in detail.
The present invention it is a kind of based on the remote audio line data communication package of PRIME standard the realization process includes: utilizing host MCU controls the localized network initialization that SM2400 communication module A completes host side, then controls SM2400 communication by slave MCU Module B is completed from the foundation of generator terminal group-net communication process, then using switching node as the bridge of network upgrade, realization from Machine to registration, the process logged in, then the tone frequency channel wire of about 1 km realize host side with from the bidirectional data communication of generator terminal.
It is as shown in Figure 1 a kind of structural schematic diagram of remote audio line data communication package based on PRIME standard, SM2400 communication module A, B is to be designed according to SM2400 chip application manual, including SM2400 minimum system, send/connect Receive buffer, transmission power amplifier and coupling circuit based on OPA564.
It is illustrated in figure 2 host side network initialization process schematic diagram, there are six steps altogether, assist first according to PRIME The local communication network of standard initialization self MAC layer is discussed, then setting setting IP address type is IPV4, to establish base Network connection in the address IPV4.
It is illustrated in figure 3 from generator terminal networking login process schematic diagram, one and shares eight steps, initializing itself After MAC layer local communication network, the escalation process that node is carried out with the switching node of oneself SNA address matching is found, so Initiate the logging request of network to host by switching node afterwards.The logging request of last host acknowledgement slave, if being wrapped in request The SNA in localized network that the SNA information contained is controlled with host is matched, then agrees to log in, that is, successfully complete host and slave net Network establishment of connection.Conversely, the then failure of host and slave network connection.
It is illustrated in figure 4 more slave networking login mode schematic diagrames, mode specifically: according to the height of task priority It is low, queuing login is successively carried out by queue serial number.If distance of the slave apart from host is x, the physical location of slave is y, IP Location is z, and the representation method for obtaining slave position is (x, y, z), such as example (100,1,123).When being ranked up label, x, y It is got over hour with the numerical value of z, the networking login priority of slave is higher, i.e., initiates networking logging request to host at first.If x, y Bigger with the numerical value of z, then the networking login priority of slave is lower, more late to initiate networking logging request to host.So in figure The slave of queue serial number 01 logs at first, and the slave of queue serial number 93 finally logs in.
It is illustrated in figure 5 the data sectional processing schematic of communication frame, is connected to the network for confirming successfully to establish with host Slave number.After completing networking login due to each slave, there is data bit in the frame that communicates back: " 0x01 ", therefore define The data bit of " 0x01 " is correlation data position.If the digit of correlation data position be By, communication frame length Le, all slaves at The communication frame total length that function returns after logging in is Lt, and communication frame bits of offset is S.Traversal queries are carried out to Lt, with start bit " 0x3C " and stop bits " 0x3E " are common mark, and Lt is carried out segment processing.If every section is started with start bit, stop bits stops Data segment only is Pn, wherein which section n indicates.To every section of PnIn correlation data position carry out traversal queries, if finding one Correlation data position, Quantitative factor a add one certainly.Data segment number of segment N is obtained according to formula (1).Since a data segment represents one The frame that communicates back after slave success networking login, so number of segment N is slave the number M, i.e. N=M for representing successfully networking login. The slave number L that failed networking logs in is obtained according to formula (2).
It is illustrated in figure 6 the flow diagram for establishing overall network connection, is broadly divided into host MCU and slave MCU two Point.Host MCU mainly executes the movement of host side network initialization, and logical to slave transmission after completing network connection and establishing The message such as letter data, instruction.Slave MCU mainly executes the movement logged in from generator terminal networking, and after completing network connection and establishing The message such as communication data, the instruction of receiving host, then feedback-related message is (in physical address, working condition of slave etc. Hold) to host.
The present invention directly controls SM2400 communication module using MCU, on tone frequency channel wire, realizes foundation, the number of communication network According to transmitted in both directions, for range is wide, quantity is more under adverse circumstances, can not in addition be laid with communication link control, monitoring system into The transmission process of row high stability, provide it is a kind of be simple and efficient, portable strong remote audio line data communication package, The use scope for increasing tone frequency channel wire reduces research and development cost.
It should be understood that embodiment provided above or embodiment are only the preferred embodiment of the present invention, It is not intended to limit the invention, is replaced all within the spirits and principles of the present invention to any modification of the invention made, equally It changes, improve, should be included in protection scope of the present invention.

Claims (7)

1. a kind of remote audio line data communication package of PRIME standard characterized by comprising entire for controlling, managing The host side of localized network establishes network with host side, carries out data communication as the switching node of localized network terminal The tone frequency channel wire that two positive and negative electrodes from generator terminal and as localized network communication link export;Have in one localized network and only has One switching node Node:C, all upgradings from generator terminal, registration process are completed by Node:C, and can accurately confirmed into Function and host establish the slave number of network connection.
2. a kind of remote audio line data communication package of PRIME standard, which is characterized in that the network connection of host side was established Journey is to send dependent instruction using UART to SM2400 modules A by MCU, SM2400 modules A is forced to complete the network of host side Initialization, wherein host side network initialization process the following steps are included:
Step 1 obtains the PRIME firmware protocols that SM2400 modules A uses;
Step 2, in management entity (the Media Access Control Layer Management in MAC layer Entity, MLME) in configuration host the address EUI-48;
Step 3, MLME initiate to establish the order of network, include localized network address (Subnetwork in the data packet of the order Address, SNA), connection identifier (Connection Identifier, CID) etc. information, and find one in the process Upgrade to switching node Node:C from node;
The Interface status of step 4, configuration of IP V4 agreement;
Step 5, the Interface status for activating IPV4 agreement, check activation result, if the return value of successful activation IPV4 network interface It is 0x01;
Step 6 establishes IPV4 network connection, IP, subnet mask, the gateway address of IPV4 agreement is arranged, if MCU receives SM2400 When the returned data value of modules A is 0, then the IPV4 network of host side is successfully established.
3. a kind of remote audio line data communication package of PRIME standard according to claim 1, which is characterized in that from The networking of generator terminal, login process are to send dependent instruction using UART to SM2400 module B by MCU, force SM2400 module B is completed from the network connection of generator terminal, wherein from generator terminal networking login process the following steps are included:
Step 1 obtains the PRIME firmware protocols that SM2400 module B is used;
Step 2, the address EUI-48 that slave is configured in MLME;
Step 3 finds suitable switching node, initiates registration request;
Step 4, MLME initiate logging request to host according to information such as SNA, CID of switching node;
Step 5, the IPV4 Interface status for configuring slave;
Step 6, activation IPV4 Interface status, check activation result, if the return value of successful activation IPV4 network interface is 0x01;
Step 7 establishes IPV4 network connection, and confirmation network connection is as a result, if MCU receives the returned data value of SM2400 module B When being 0, then it is successfully established from the IPV4 network of generator terminal;
Step 8, the logging request for initiating network communication complete the login connection of IPV4 network, if MCU receives SM2400 module B Returned data value be 0x02 when, then logined successfully from the IPV4 network of generator terminal.
4. a kind of remote audio line data communication package of PRIME standard according to claim 1, which is characterized in that SM2400 modules A and SM2400 module B are connected to the both ends of the tone frequency channel wire of two 1 kms or more.
5. a kind of remote audio line data communication package of PRIME standard according to claim 1, which is characterized in that more The networking login mode of slave is the height according to task priority, successively carries out queuing login by queue serial number, specifically:
If distance of the slave apart from host is x, the physical location of slave is y, and IP address z obtains the expression side of slave position Method is (x, y, z);When being ranked up label, the numerical value of x, y and z are got over hour, and the networking login priority of slave is higher, i.e., most First networking logging request is initiated to host;If x, the numerical value of y and z is bigger, it is lower that the networking of slave logs in priority, it is more late to Host initiates networking logging request.
6. a kind of remote audio line data communication package of PRIME standard according to claim 1, which is characterized in that from Machine successfully log in number checking algorithm the following steps are included:
After step 1, each slave complete networking login, the data bit for defining " 0x01 " in the frame that communicates back is correlation data position, If the digit of correlation data position is By, communication frame length Le, the communication frame total length that all slaves return after successfully logging in is Lt, communication frame bits of offset are S;
Step 2 carries out traversal queries to Lt, is common mark with start bit " 0x3C " and stop bits " 0x3E ", Lt is divided Section processing;If every section is started with start bit, the data segment that stop bits stops is Pn, wherein which section n indicates;
Step 3, to every section of PnIn correlation data position carry out traversal queries, if finding a correlation data position, Quantitative factor a From adding one;
Step 4 obtains data segment number of segment N according to formula (1), and a data segment represents returning after a slave success networking logs in Communication frame is passed, so number of segment N is slave the number M, i.e. N=M for representing successfully networking login;
Step 5 obtains the slave number L that failed networking logs according to formula (2).Wherein, T is total slave number of demand.
T-M=L (2).
7. a kind of remote audio line data communication package of PRIME standard according to claim 1, which is characterized in that from The IP address of machine is started setting up from 0x02, and communication frame format, the data length returned after the success networking login of each slave Be it is fixed, i.e. the start bit of every segment data section and stop bits are seamless connections in Le, it is impossible to other data occur, if occurring Other data bit then must have slave logon error occur, then execute following steps:
The data segment of traversal queries erroneous logons slave passback is abandoned first, then observes the information received in host computer, it is finally right The slave that failed networking logs in sends networking log on command again, re-starts networking login.
CN201910144230.8A 2019-02-27 2019-02-27 A kind of remote audio line data communication package based on PRIME standard Pending CN109951212A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910144230.8A CN109951212A (en) 2019-02-27 2019-02-27 A kind of remote audio line data communication package based on PRIME standard

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910144230.8A CN109951212A (en) 2019-02-27 2019-02-27 A kind of remote audio line data communication package based on PRIME standard

Publications (1)

Publication Number Publication Date
CN109951212A true CN109951212A (en) 2019-06-28

Family

ID=67008064

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910144230.8A Pending CN109951212A (en) 2019-02-27 2019-02-27 A kind of remote audio line data communication package based on PRIME standard

Country Status (1)

Country Link
CN (1) CN109951212A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111063175A (en) * 2019-12-31 2020-04-24 中国广核电力股份有限公司 Detection system and method of wired alarm system
CN111148008A (en) * 2019-12-31 2020-05-12 中国广核电力股份有限公司 Detection system and method for cable broadcasting system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1464641A (en) * 2002-06-06 2003-12-31 雅迪发展有限公司 Power line transmission sound box system
JP2010509793A (en) * 2006-10-19 2010-03-25 パイオニア エレクトロニクス アジアセンター ピーティーイー エルティーディー Audio system
US20170094433A1 (en) * 2002-01-25 2017-03-30 Apple Inc. Wired, Wireless, Infrared and Powerline Audio Entertainment Systems
CN107204112A (en) * 2017-05-11 2017-09-26 熊安永 A kind of audio signal and control signal Transmission system and application method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170094433A1 (en) * 2002-01-25 2017-03-30 Apple Inc. Wired, Wireless, Infrared and Powerline Audio Entertainment Systems
CN1464641A (en) * 2002-06-06 2003-12-31 雅迪发展有限公司 Power line transmission sound box system
JP2010509793A (en) * 2006-10-19 2010-03-25 パイオニア エレクトロニクス アジアセンター ピーティーイー エルティーディー Audio system
CN107204112A (en) * 2017-05-11 2017-09-26 熊安永 A kind of audio signal and control signal Transmission system and application method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
U ALONSO, E MATANZA, J RODRIGUEZ-MORCILLO, C ALEXANDRES: "Performance Evaluation of AMR Simultaneous Polling Strategies in a PRIME", 《2015 INTERNATIONAL SYMPOSIUM ON POWER LINE COMMUNICATIONS AND ITS APPLICATIONS》 *
URIBE-PEREZ, NOELIA HERNANDEZ, LUIS: "Smart management of a distributed generation microgrid through PLC PRIME technology", 《2015 INTERNATIONAL SYMPOSIUM ON SMART ELECTRIC DISTRIBUTION SYSTEMS AND TECHNOLOGIES》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111063175A (en) * 2019-12-31 2020-04-24 中国广核电力股份有限公司 Detection system and method of wired alarm system
CN111148008A (en) * 2019-12-31 2020-05-12 中国广核电力股份有限公司 Detection system and method for cable broadcasting system

Similar Documents

Publication Publication Date Title
US20170244792A1 (en) Power-Line Carrier Terminal Control Apparatus, System, and Method
CN102355741B (en) Remote control system and method thereof, and central office access equipment
CN106161077A (en) Cut-in convergent device and certification register method
CN101217338A (en) Detection message transmitting method, network element device
WO2011140844A1 (en) Method for processing messages on m2m platform and m2m platform system
CN107820262B (en) Parameter configuration method, device and system
CN109951212A (en) A kind of remote audio line data communication package based on PRIME standard
CN111431787B (en) Tunnel establishment method and device and computer readable storage medium
CN105376334A (en) Load balancing method and device
CN110234173A (en) The method for realizing high-speed traffic using wifi probe request and response bag
CN102571970B (en) Node module for traffic Internet of things and communication method for traffic Internet of things
CN102546669B (en) Data transmission method and device
WO2012119372A1 (en) Message processing method, device and system
CN103685007A (en) Method for MAC address learning during packet forwarding of edge devices and edge device
CN104486217A (en) Cross network message transmitting method and equipment
CN106506306A (en) A kind of method and apparatus of data-message transmission
WO2023035358A1 (en) Photoelectric matching method and system
CN105847136A (en) Wireless sensor network communication method supporting multiple protocols and IPv6 gateway
CN106455127B (en) A kind of integrated base station and base station stacking system
CN101958839A (en) Method and system for establishing operation maintenance channel
CN210246969U (en) Private network access system
CN102238163B (en) IP (Internet Protocol) telecommunication network-oriented multi-protocol message transmitting method
CN109768905A (en) A kind of method, system, equipment and the storage medium of PPPoE message transmissions
CN106982424B (en) A kind of method and its system of the automatic discovery associate device based on cloud lock
JP4773239B2 (en) Fast database migration

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
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20190628

WD01 Invention patent application deemed withdrawn after publication