CN106911544A - Communication system and the means of communication - Google Patents

Communication system and the means of communication Download PDF

Info

Publication number
CN106911544A
CN106911544A CN201710041980.3A CN201710041980A CN106911544A CN 106911544 A CN106911544 A CN 106911544A CN 201710041980 A CN201710041980 A CN 201710041980A CN 106911544 A CN106911544 A CN 106911544A
Authority
CN
China
Prior art keywords
slave
token
main frame
address
list
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
CN201710041980.3A
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.)
Shenzhen OptimumNano Energy Co Ltd
Original Assignee
Shenzhen OptimumNano Energy 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 Shenzhen OptimumNano Energy Co Ltd filed Critical Shenzhen OptimumNano Energy Co Ltd
Priority to CN201710041980.3A priority Critical patent/CN106911544A/en
Publication of CN106911544A publication Critical patent/CN106911544A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L12/40006Architecture of a communication node
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/12Avoiding congestion; Recovering from congestion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/40Bus networks
    • H04L2012/40208Bus networks characterized by the use of a particular bus standard
    • H04L2012/40215Controller Area Network CAN

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Small-Scale Networks (AREA)

Abstract

A kind of communication system includes main frame, multiple slaves and CAN bus.The main frame is connected and is communicated by the CAN bus with the multiple slave.Each slave is on startup by the token list of the address registration of oneself to the main frame.The main frame according to providing token to the slave specified the address cycle of each slave in the token list.The slave for obtaining token sends data to the main frame, and the information for abandoning token is sent after the data is activation is finished to the main frame.After the main frame receives the information for abandoning token, token is provided to next slave according to the address of each slave in the token list in next cycle.Above-mentioned communication system is avoided that network congestion and prevents data from hitting frame.The present invention also provides a kind of means of communication.

Description

Communication system and the means of communication
【Technical field】
The present invention relates to communication technique field, more particularly to a kind of communication system and the means of communication.
【Background technology】
Current CAN (Controller Area Network, controller local area network) bus is widely used in automobile control System processed and environment temperature are severe, electromagnetic radiation is strong and vibrate big industrial environment.Substantial amounts of equipment can be by CAN phase Connect and communicated, but each equipment must receive at least one confirmation signal when data are sent, if when default Interior to be not received by confirmation signal, it will repeat to send data.When multiple equipment repeats to send data simultaneously, then occur Network congestion and mass data hit the phenomenon of frame.
In consideration of it, real be necessary to provide a kind of communication system and the means of communication to overcome disadvantages described above.
【The content of the invention】
It is an object of the invention to provide a kind of communication system for being avoided that network congestion and preventing data from hitting frame.
To achieve these goals, the present invention provides a kind of communication system, and the communication system includes main frame, multiple slaves And CAN bus, the main frame is connected with the multiple slave by the CAN bus and gone forward side by side Row communication, on startup by the token list of the address registration of oneself to the main frame, the main frame is according to institute for each slave Token is provided to the slave specified with stating the address cycle of each slave in token list, the slave for obtaining token sends data To the main frame, and the information for abandoning token is sent after the data is activation is finished to the main frame, the main frame is received After the information for abandoning token, in the case where next cycle is given according to the address granting token of each slave in the token list One slave.
Further, each slave sends log-on message to the main frame on startup, and each log-on message includes corresponding Slave address, the log-on message that the main frame will be received is registered in the token list, and sent out after succeeding in registration Send accreditation verification signal to corresponding slave, the slave for receiving the accreditation verification signal confirms to succeed in registration.
Further, the slave for being not received by accreditation verification signal sends log-on message to the main frame again.
Further, the main frame include timer, the main frame judged whether according to the timing of the timer to Up to the cycle for providing token, and when the cycle for providing token is reached, according to the address hair of each slave in the token list Token is put to the slave specified.
The purpose of the present invention is also to provide a kind of means of communication for being avoided that network congestion and preventing data from hitting frame.
To achieve these goals, the present invention provides a kind of means of communication, and the means of communication include:
Each slave is on startup by the token list of the address registration of oneself to main frame;
Judge whether the timing of timer reaches the cycle that the main frame provides token;
When the timing of the timer reaches the main frame provides the cycle of token, the main frame is arranged according to the token Token is provided to the slave specified in the address of each slave in table;
The slave for obtaining token sends data to the main frame, and token is abandoned in transmission after the data is activation is finished Information gives the main frame;
The main frame abandons the slave of the information of token after the information for abandoning token is received described in judgement transmission Whether it is last slave in the token list;And
When last slave during the slave of the information for abandoning token described in sending is the token list, the master Machine confirms once to be communicated with each slave.
Further, the means of communication also include:
Last slave in not being the token list when the slave of the information for abandoning token described in sending, performs " judging whether the timing of timer reaches the cycle that the main frame provides token ".
Further, " each slave is on startup by the token list of the address registration of oneself to main frame " includes:
Each slave sends log-on message to the main frame on startup, and each log-on message includes the ground of corresponding slave Location;
The log-on message that the main frame will be received is registered in the token list, and registration is sent after succeeding in registration Confirmation signal gives corresponding slave;
Each slave judges whether to receive the accreditation verification signal;And
The slave for receiving the accreditation verification signal confirms to succeed in registration.
Further, " each slave is on startup by the token list of the address registration of oneself to main frame " also includes:
The slave for being not received by the accreditation verification signal sends log-on message to the main frame again, and performs " institute The log-on message that main frame will receive is stated to be registered in the token list, and sent after succeeding in registration accreditation verification signal to Corresponding slave ".
Compared to prior art, the present invention is by each slave on startup by the address registration of oneself to the main frame In token list, and by the main frame according to provided in the token list address cycle of each slave token to refer to Fixed slave, also sends data to the main frame by obtaining the slave of token, and is sent after the data is activation is finished and put The information of token is abandoned to the main frame, so that after the main frame receives the information for abandoning token, in next cycle root Token is provided to next slave according to the address of each slave in the token list.So repeatedly, the main frame is according to Token is sent to corresponding slave by the address of each slave in each cycle successively in token list, so that each slave is in phase The ground cycle main frame should be sent the data to, so as to avoid the shape that the multiple slave sends data to the main frame simultaneously Condition occurs, and then efficiently avoid network congestion and prevent data to hit frame.
【Brief description of the drawings】
The theory diagram of the communication system that Fig. 1 is provided for embodiments of the invention.
The flow chart of the means of communication that Fig. 2 is provided for embodiments of the invention.
Fig. 3 is the sub-process figure of step S1 in Fig. 2.
【Specific embodiment】
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.It is based on Embodiment in the present invention, it is every other that ordinary skill personage is obtained under the premise of creative work is not made Embodiment, belongs to the scope of protection of the invention.
When an element was considered as with another element " being connected ", it can be directly to another element or May be simultaneously present centering elements.Unless otherwise defined, all of technologies and scientific terms used here by the article with belong to this hair The implication that the skilled worker of bright technical field is generally understood that is identical.The term for being used in the description of the invention herein It is intended merely to describe the purpose of specific embodiment, it is not intended that in the limitation present invention.
Refer to Fig. 1, the theory diagram of the communication system 100 that Fig. 1 is provided for embodiments of the invention.The communication system 100 include main frame 10, multiple slaves 20 and CAN (Controller Area Network, controller local area network) bus 30. The main frame 10 is connected and is communicated by the CAN 30 with the multiple slave 20.Each slave 20 is on startup By in the token list of the address registration of oneself to the main frame 10.The main frame 10 is according to each slave in the token list Token is provided to the slave 20 specified in 20 address cycle ground.The slave 20 for obtaining token sends data to the main frame 10, And the information for abandoning token is sent after the data is activation is finished to the main frame 10.The main frame 10 receives described abandoning After the information of token, next cycle according in the token list each slave 20 address provide token to it is next from Machine 20.So repeatedly, the main frame 10 according to the address of each slave 20 in the token list successively by token in each week Phase is sent to corresponding slave 20, so that each slave 20 sends the data to the main frame 10 in the correspondingly cycle, so as to keep away Exempt from the multiple slave 20 and sent the situation generation of data to the main frame 10 simultaneously, and then efficiently avoid network congestion And prevent data to hit frame.
In the present embodiment, each slave 20 sends log-on message to the main frame 10 on startup, each registration letter Breath includes the address of corresponding slave 20.The log-on message that the main frame 10 will be received is registered in the token list, and Accreditation verification signal is sent after succeeding in registration to corresponding slave 20, the slave 20 for receiving the accreditation verification signal confirms Succeed in registration.The slave 20 for being not received by accreditation verification signal sends log-on message to the main frame 10 again.When each from When machine 20 succeeds in registration, the address of each slave 20 is also successfully registered with the token list of the main frame 10.
In the present embodiment, the main frame 10 includes timer 12.Meter of the main frame 10 according to the timer 12 When judge whether to reach the cycle for sending token, and when the cycle for sending token is reached, according to every in the token list Token is provided to the slave 20 specified in the address of individual slave 20.The time length in the cycle can be carried out accordingly according to actual conditions Adjustment, for example, the cycle can be 10 milliseconds, 20 milliseconds etc..
Refer to Fig. 2, the flow chart of the means of communication that Fig. 2 is provided for embodiments of the invention.According to different demands, figure The execution sequence of the step in flow chart shown in 2 can change, and some steps can be split as several steps, and some steps can To omit.
Step S1, each slave 20 is on startup by the token list of the address registration of oneself to main frame 10.
Step S2, judges whether the timing of timer 12 reaches the cycle that the main frame 10 provides token.When the timing When the timing of device 12 reaches the cycle of the granting of main frame 10 token, step S3 is performed;When the timing of the timer 12 does not have When reaching the cycle of the granting token of the main frame 10, step S2 is performed.
Step S3, the main frame 10 according in the token list each slave 20 address provide token give specify from Machine 20.
Step S4, the slave 20 for obtaining token sends data to the main frame 10, and is sent out after the data is activation is finished The information for abandoning token veer away to the main frame 10.
Step S5, the main frame 10 judges to abandon token described in transmission after the information for abandoning token is received Whether the slave 20 of information is last slave 20 in the token list.When send described in abandon token information from When machine 20 is last slave 20 in the token list, step S6 is performed;When the information that token is abandoned described in transmission When slave 20 is not last slave 20 in the token list, step S2 is performed.
Step S6, the main frame 10 confirms once to be communicated with each slave 20.
Fig. 3 is referred to, Fig. 3 is the sub-process figure of step S1 in Fig. 2.According to different demands, in the flow chart shown in Fig. 3 The step of execution sequence can change, some steps can be split as several steps, and some steps can be omitted.
Step S11, each slave 20 sends log-on message to the main frame 10 on startup, and each log-on message includes phase The address of the slave 20 answered.
Step S12, the log-on message that the main frame 10 will be received is registered in the token list, and is being succeeded in registration Accreditation verification signal is sent afterwards to corresponding slave 20.
Step S13, each slave 20 judges whether to receive the accreditation verification signal.Receive the registration confirmation Number slave 20, perform step S14;The slave 20 of the accreditation verification signal is not received by, step S15 is performed.
Step S14, the slave 20 for receiving the accreditation verification signal confirms to succeed in registration.
Step S15, the slave 20 for being not received by the accreditation verification signal sends registration letter to the main frame 10 again Breath, and perform step S12.
The present invention by each slave 20 on startup by the token list of the address registration of oneself to the main frame 10, And by the main frame 10 according to provided in the token list address cycle of each slave 20 token give specify from Machine 20, also sends data to the main frame 10 by obtaining the slave 20 of token, and is sent after the data is activation is finished and put The information of token is abandoned to the main frame 10, so that after the main frame 10 receives the information for abandoning token, in next week Phase provides token to next slave 20 according to the address of each slave 20 in the token list.So repeatedly, the main frame Token is sent to corresponding slave 20 by 10 in each cycle successively according to the address of each slave 20 in the token list, with Each slave 20 is sent the data to the main frame 10 in the correspondingly cycle, so as to avoid the multiple slave 20 simultaneously to The situation that the main frame 10 sends data occurs, and then efficiently avoid network congestion and prevent data to hit frame.
The present invention is not restricted to described in specification and implementation method, therefore for the personage of familiar field Additional advantage and modification are easily achieved, therefore in the essence of the universal limited without departing substantially from claim and equivalency range In the case of god and scope, the present invention is not limited to specific details, representational equipment and shown here as the diagram with description Example.

Claims (8)

1. a kind of communication system, it is characterised in that:The communication system includes that main frame, multiple slaves and controller local area network are total Line, the main frame is connected and is communicated by the CAN bus with the multiple slave, and each slave exists By in the token list of the address registration of oneself to the main frame during startup, the main frame according in the token list each from Token is provided to the slave specified in the address cycle ground of machine, and the slave for obtaining token sends data to the main frame, and in institute State and sent after data is activation is finished the information for abandoning token to the main frame, the main frame receives the information for abandoning token Afterwards, token is provided to next slave according to the address of each slave in the token list in next cycle.
2. communication system as claimed in claim 1, it is characterised in that:Each slave sends log-on message to described on startup Main frame, each log-on message includes the address of corresponding slave, and the log-on message that the main frame will be received is registered to the order In board list, and accreditation verification signal is sent after succeeding in registration to corresponding slave, receive the accreditation verification signal Slave confirms to succeed in registration.
3. communication system as claimed in claim 1, it is characterised in that:Be not received by the slave of accreditation verification signal again to The main frame sends log-on message.
4. communication system as claimed in claim 1, it is characterised in that:The main frame includes timer, and the main frame is according to institute The timing of timer is stated to judge whether to reach the cycle for providing token, and when the cycle for providing token is reached, according to described Token is provided to the slave specified in the address of each slave in token list.
5. a kind of means of communication, it is characterised in that:The means of communication include:
Each slave is on startup by the token list of the address registration of oneself to main frame;
Judge whether the timing of timer reaches the cycle that the main frame provides token;
When the timing of the timer reaches the main frame provides the cycle of token, the main frame is according in the token list Token is provided to the slave specified in the address of each slave;
The slave for obtaining token sends data to the main frame, and the information for abandoning token is sent after the data is activation is finished To the main frame;
After the information for abandoning token is received, whether the slave of the information for judging to abandon token described in transmission for the main frame It is last slave in the token list;And
When last slave during the slave of the information for abandoning token described in sending is the token list, the main frame is true Recognize and once communicated with each slave.
6. the means of communication as claimed in claim 5, it is characterised in that:The means of communication also include:
Last slave in not being the token list when the slave of the information for abandoning token described in sending, performs and " judges Whether the timing of timer reaches the cycle that the main frame provides token ".
7. the means of communication as claimed in claim 5, it is characterised in that:" each slave is on startup by the address registration of oneself To in the token list of main frame " include:
Each slave sends log-on message to the main frame on startup, and each log-on message includes the address of corresponding slave;
The log-on message that the main frame will be received is registered in the token list, and accreditation verification is sent after succeeding in registration Signal gives corresponding slave;
Each slave judges whether to receive the accreditation verification signal;And
The slave for receiving the accreditation verification signal confirms to succeed in registration.
8. the means of communication as claimed in claim 7, it is characterised in that:" each slave is on startup by the address registration of oneself To in the token list of main frame " also include:
The slave for being not received by the accreditation verification signal sends log-on message to the main frame again, and performs the " master The log-on message that machine will be received is registered in the token list, and accreditation verification signal is sent after succeeding in registration to corresponding Slave ".
CN201710041980.3A 2017-01-20 2017-01-20 Communication system and the means of communication Pending CN106911544A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710041980.3A CN106911544A (en) 2017-01-20 2017-01-20 Communication system and the means of communication

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710041980.3A CN106911544A (en) 2017-01-20 2017-01-20 Communication system and the means of communication

Publications (1)

Publication Number Publication Date
CN106911544A true CN106911544A (en) 2017-06-30

Family

ID=59207168

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710041980.3A Pending CN106911544A (en) 2017-01-20 2017-01-20 Communication system and the means of communication

Country Status (1)

Country Link
CN (1) CN106911544A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111127867A (en) * 2019-10-21 2020-05-08 国网浙江临海市供电有限公司 RS485 communication adapter for electricity consumption information acquisition system and control method
CN111327511A (en) * 2018-12-14 2020-06-23 北京京东尚科信息技术有限公司 Instant messaging method, system, terminal equipment and storage medium
CN112666910A (en) * 2020-12-28 2021-04-16 浙江中控技术股份有限公司 Scheduling system
CN113127392A (en) * 2021-03-24 2021-07-16 深圳市新龙鹏科技有限公司 UART-based multi-machine communication method, system and computer readable storage medium

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111327511A (en) * 2018-12-14 2020-06-23 北京京东尚科信息技术有限公司 Instant messaging method, system, terminal equipment and storage medium
CN111327511B (en) * 2018-12-14 2022-04-12 北京京东尚科信息技术有限公司 Instant messaging method, system, terminal equipment and storage medium
CN111127867A (en) * 2019-10-21 2020-05-08 国网浙江临海市供电有限公司 RS485 communication adapter for electricity consumption information acquisition system and control method
CN112666910A (en) * 2020-12-28 2021-04-16 浙江中控技术股份有限公司 Scheduling system
CN113127392A (en) * 2021-03-24 2021-07-16 深圳市新龙鹏科技有限公司 UART-based multi-machine communication method, system and computer readable storage medium
CN113127392B (en) * 2021-03-24 2024-03-08 深圳市新龙鹏科技有限公司 UART-based multi-computer communication method, system and computer readable storage medium

Similar Documents

Publication Publication Date Title
CN106911544A (en) Communication system and the means of communication
EP2258098B1 (en) Credential generation method for communications devices and device management servers
CN102088668B (en) Group-based authentication method of machine type communication (MTC) devices
CN108282899A (en) Two step competitive random access methods of one kind and device
TW200840383A (en) Method and apparatus for handling random access procedure in a wireless communications system
CN106507348B (en) The method and apparatus of UE access core net EPC in a kind of LTE system
US9401905B1 (en) Transferring soft token authentication capabilities to a new device
CN103826318B (en) Macro base station and micro base station combined random access method and equipment
CN101931946A (en) Multi-access method of terminal in evolved packet system and system thereof
CN103491005A (en) Method for controlling transmission of message, access point device and relevant system
CN100426932C (en) Method for selecting core network operators
CN110472970B (en) Block chain-based block pre-generation method and system
EP2838307B1 (en) Method and device for re-establishing radio link
KR101098362B1 (en) Method for enhancing RRC procedure re-initiation efficiency in a wireless communications system and related apparatus
Yoon Distributed queuing with preamble grouping for massive IoT devices in LTE random access
CN110457119A (en) Asynchronous process callback method and device
CN103945394B (en) Wireless access point device, network system and network automatic configuration method thereof
CN104285424B (en) The user equipment accordingly set in the method and communication network of data is transmitted in the communication network towards packet
CN111327599A (en) Authentication process processing method and device
JP2017038145A (en) Communication system
WO2021099186A3 (en) Method for monitoring communication on a communication bus, electronic device for connection to a communication bus, and central monitoring device for connection to a communication bus
CN105376800A (en) Micro base station networking communication method, system and centralized control equipment
US9479926B2 (en) Method and system for obtaining IMEI of mobile station and base station controller
CN106533700B (en) Method and device for realizing interface function
CN105245540B (en) Offline WIFI hot spot authentication method and Verification System based on IOS terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20170630

WD01 Invention patent application deemed withdrawn after publication