CN106603368A - One-secondary multi-primary communication method realized on basis of 485 bus - Google Patents

One-secondary multi-primary communication method realized on basis of 485 bus Download PDF

Info

Publication number
CN106603368A
CN106603368A CN201611241433.1A CN201611241433A CN106603368A CN 106603368 A CN106603368 A CN 106603368A CN 201611241433 A CN201611241433 A CN 201611241433A CN 106603368 A CN106603368 A CN 106603368A
Authority
CN
China
Prior art keywords
screen
charging pile
user
charging
request message
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
CN201611241433.1A
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.)
ZHEJIANG WANMA NEW ENERGY CO Ltd
Original Assignee
ZHEJIANG WANMA NEW 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 ZHEJIANG WANMA NEW ENERGY CO Ltd filed Critical ZHEJIANG WANMA NEW ENERGY CO Ltd
Priority to CN201611241433.1A priority Critical patent/CN106603368A/en
Publication of CN106603368A publication Critical patent/CN106603368A/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/403Bus networks with centralised control, e.g. polling

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Charge And Discharge Circuits For Batteries Or The Like (AREA)

Abstract

The invention discloses a one-secondary multi-primary communication method realized on the basis of a 485 bus. The method comprises steps that step 1, bus control rights are acquired by a screen, a main interface is displayed by the screen, and a user is waited for selecting a charging pile; step 2, after one certain charging pile is selected by the user through the screen, a request message is sent by the screen to the charging pile, if the request message is received by the charging pile, a jump instruction is returned by the charging pile to the screen, and the process jumps to a step 3, if the request message is not received by the charging pile, after the screen does not receive a jump instruction for the certain time segment, the charging pile is prompted by the screen of receiving no request message, and the process jumps to the step 1; and step 3, after the jump instruction is received by the screen, the screen jumps to display an interface of a present state of the charging pile selected by the user, moreover, the charging pile obtains authority, and charging starts. The method is advantaged in that an extra conversion module is not needed, one-secondary multi-primary communication can be realized only on the basis of the 485 bus, and multiple charging piles share one display screen.

Description

One is realized in a kind of 485 bus from many main communication means
Technical field
The present invention relates to electric automobile charging pile field, refers in particular to realize one in a kind of 485 bus from many main communications Method.
Background technology
At present, the charging pile of electric automobile has also welcome high-speed development period as " gas station " of electric automobile.It is each to charge Stake manufacturing enterprise input ample resources, makes every effort to charging pile more safe efficient.Take up an area space and cost to solve charging pile simultaneously Problem, a machine is double, and to fill the scheme filled an even machine also of common occurrence more.
Due to charging pile real time data processing is required it is higher, the method more than comparison for adopting at present be single touch screen with Multiple charging pile panels are connected by bus.One from the more common only CAN of multi-master bus pattern, because its built-in arbitration machine , there is no data collision in system.But CAN interface is relatively costly, many touch screens do not possess CAN interface.
In order to realize one master and multiple slaves communication pattern on serial ports or RS485 buses, turned using single-chip microcomputer more than charging pile producer Panel, or plug-in modular converter on the touchscreen are changed, the 485 of touch screen or rs 232 serial interface signal is switched to into CAN signal, is retransmited Give charging pile panel.Cost had both been increased so, exceptional space had been occupied again.
The content of the invention
The purpose of the present invention is to overcome the communication pattern of single touch screen and multiple charging piles in prior art complex, Defect that is relatively costly, taking exceptional space, there is provided one is realized in a kind of 485 bus from many main communication means.
The purpose of the present invention is achieved by following technical proposals:
One is realized in a kind of 485 bus from many main communication means, is comprised the following steps:
Step 1, screen obtain bus control right, then screen display main interface, wait user to select charging pile;
Step 2, after screen selects some charging pile, screen sends request message to charging pile to user, if charging Stake receives request message, then charging pile is instructed to screen return jump, jumps to step 3, if charging pile does not receive request report Text, then after screen does not receive jump instruction within the regular hour, screen prompt charging pile does not receive request message, jumps to step Rapid 1;
Any moment, only one of which charging pile obtain and authorize displayable data, so charging pile receives request message then table Show and do not clash, charging pile can provide charge function, charging pile does not receive request message and then represents and clashes, charging pile The charge function of the request cannot be provided.
Step 3, after screen receives jump instruction, screen redirects the interface of the charging pile current state for showing that user selects, Charging pile is authorized simultaneously, is started to charge up;
Step 4, judges whether more than the screen maximum display time, i.e., whether exceed the charging pile maximum charging interval, if More than the maximum display time, then screen regains mainline control power, and charging terminates, if not less than the maximum display time, shielding Curtain continues the interface of the charging pile current state for showing that user selects.
As a kind of preferred version, in step 4, screen is provided with return function button, if user press return function by Key, then screen regain mainline control power, charging terminates, if user does not press return function button, screen continues to show The interface of the charging pile current state that user selects.
As a kind of preferred version, in step 2, if charging pile does not receive request message, show data collision, system sets Put the free time that charging pile sends data, free time is the 1-2 seconds.
Assume free time be 1 second, master-slave equipment communication speed be 57600bps, the most long transmitting message of charging pile 100Byte, then
Message transfer time:
If touch screen occurs during this period clicks on request switching, the probability of message collisions is produced:
Thus, adjusting communication speed and interval time, message collisions probability is adjusted to into receptive phase.
The invention has the beneficial effects as follows, one is realized in 485 buses from many main communication means, without the need for extra conversion module, Pure 485 bus is capable of achieving one from leading more, and multiple charging piles share a display screen, while the program is in RS232 serial bus On can also realize same effect.
Description of the drawings
Fig. 1 is a kind of flow chart of the present invention;
Fig. 2 is that user's click screen of the present invention normally redirects sequential chart;
Fig. 3 is that user of the present invention clicks on screen generation data collision sequential chart.
Specific embodiment
With reference to the accompanying drawings and examples the present invention is further described.
Embodiment:One is realized in a kind of 485 bus from many main communication means, as shown in figure 1, comprising the following steps:
Step 1, screen obtain bus control right, then screen display main interface, wait user to select charging pile;
Step 2, after screen selects some charging pile, screen sends request message to charging pile to user, if charging Stake receives request message, then charging pile is instructed to screen return jump, jumps to step 3, if charging pile does not receive request report Text, then after screen does not receive jump instruction within the regular hour, screen prompt charging pile does not receive request message, jumps to step Rapid 1;
Step 3, after screen receives jump instruction, screen redirects the interface of the charging pile current state for showing that user selects, Charging pile is authorized simultaneously, is started to charge up;
Step 4, judges whether more than the screen maximum display time, i.e., whether exceed the charging pile maximum charging interval, if More than the maximum display time, then screen regains mainline control power, and charging terminates, if not less than the maximum display time, shielding Curtain continues the interface of the charging pile current state for showing that user selects;Screen is provided with return function button, if user presses returning Function button is returned, then screen regains mainline control power, and charging terminates, if user does not press return function button, screen Continue the interface of the charging pile current state that display user selects.
Any moment, only one of which charging pile are obtained during authorizing displayable data, charging pile to send data, are reserved 1s free times.
Master-slave equipment communication speed is assumed for 57600bps, most long transmitting message 100Byte of charging pile, then during message transmissions Between:
If touch screen occurs during this period clicks on request switching, the probability of message collisions is produced:
Thus, adjusting communication speed and interval time, message collisions probability is adjusted to into receptive phase.User clicks on screen Curtain makes, it is possible to which two kinds of situations, i.e. normal communication or data collision occur:
A) normal communication, as shown in figure 1, charging pile can receive request, sends jump instruction;
B) as shown in Fig. 2 two messages are clashed when abnormal, have calculated that the probability that this kind of situation occurs is 1.37%, due to operator can real-time judge screen be not carried out redirecting, screen can be again tapped on.
Charge control flow process inside charger, not by screen control.Carry out waiting, charge, tie according to predetermined flow process The detections such as calculation, stopping, warning and control work;The preset numbering of charger, it is corresponding with charging gun selection on liquid crystal display screen.Increase simultaneously Add up line monitor task.Realize that process false code (C language) is as follows:
Bool showflg=0;// a display flag bit is defined, decision originally fills whether stake sends message to bus
while(1)
{
Switch (identifier)
{
Case returns homepage:{
Jump instruction is sent, control screen is switched to homepage;
Showflg=0;
}break;
Case shows and authorizes:{
If (control stake sequence number==this stake numbering)
{
Showflg=1;// in this position, charging pile is authorized, and can send message to bus
}
}break;
Default:break;
}
};
(4) increase the duty cycle that data are uploaded
While(1)
{
If (Showflg==1) // only acquisition shows that the charging pile for authorizing just can be to transmission data, remaining charging pile Cannot send
{
Send data;// according to the different conditions of charger, send different data
If (shows time > 1s)
{
Jump instruction is sent, control screen is switched to homepage;
Showflg=0;
}
}
Time delay 1s;
}

Claims (3)

1. one is realized in a kind of 485 bus from many main communication means, be it is characterized in that, comprised the following steps:
Step 1, screen obtain bus control right, then screen display main interface, wait user to select charging pile;
Step 2, after screen selects some charging pile, screen sends request message to charging pile to user, if charging pile is received To request message, then charging pile is instructed to screen return jump, jumps to step 3, if charging pile does not receive request message, After screen does not receive jump instruction within the regular hour, screen prompt charging pile does not receive request message, jumps to step 1;
Step 3, after screen receives jump instruction, screen redirects the interface of the charging pile current state for showing that user selects, while Charging pile is authorized, and is started to charge up;
Step 4, judges whether more than the screen maximum display time, i.e., whether exceed the charging pile maximum charging interval, if exceeding The maximum display time, then screen regain mainline control power, charging terminates, if not less than the maximum display time, screen after The interface of the continuous charging pile current state for showing user's selection.
2. one is realized in a kind of 485 bus according to claim 1 from many main communication means, be it is characterized in that, it is described In step 4, screen is provided with return function button, if user presses return function button, screen regains mainline control Power, charging terminate, if user does not press return function button, screen continues the charging pile current state that display user selects Interface.
3. one is realized in a kind of 485 bus according to claim 1 and 2 from many main communication means, be it is characterized in that, in step In rapid 2, if charging pile does not receive request message, show data collision, system arranges the free time that charging pile sends data, Free time is the 1-2 seconds.
CN201611241433.1A 2016-12-28 2016-12-28 One-secondary multi-primary communication method realized on basis of 485 bus Pending CN106603368A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611241433.1A CN106603368A (en) 2016-12-28 2016-12-28 One-secondary multi-primary communication method realized on basis of 485 bus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611241433.1A CN106603368A (en) 2016-12-28 2016-12-28 One-secondary multi-primary communication method realized on basis of 485 bus

Publications (1)

Publication Number Publication Date
CN106603368A true CN106603368A (en) 2017-04-26

Family

ID=58603166

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611241433.1A Pending CN106603368A (en) 2016-12-28 2016-12-28 One-secondary multi-primary communication method realized on basis of 485 bus

Country Status (1)

Country Link
CN (1) CN106603368A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040252247A1 (en) * 2003-05-26 2004-12-16 Zbigniew Wabiszczewicz System for management of decoding devices and method for management of decoding devices
CN201877858U (en) * 2010-12-14 2011-06-22 山东电力研究院 Electric vehicle charging pile with multi-path control charging sockets
CN202094684U (en) * 2011-06-21 2011-12-28 珠海银通新动力科技有限公司 Charging station
CN102571514A (en) * 2011-12-06 2012-07-11 山东电力集团公司济宁供电公司 Intelligent power consumption cell system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040252247A1 (en) * 2003-05-26 2004-12-16 Zbigniew Wabiszczewicz System for management of decoding devices and method for management of decoding devices
CN201877858U (en) * 2010-12-14 2011-06-22 山东电力研究院 Electric vehicle charging pile with multi-path control charging sockets
CN202094684U (en) * 2011-06-21 2011-12-28 珠海银通新动力科技有限公司 Charging station
CN102571514A (en) * 2011-12-06 2012-07-11 山东电力集团公司济宁供电公司 Intelligent power consumption cell system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
程鸣亚,史先传,钱磊,高亮: "基于RS-485总线的触摸屏和多个STM32从站通信的研究与实现", 《化工自动化及仪表》 *

Similar Documents

Publication Publication Date Title
JP4878101B2 (en) Method and apparatus for generating instruction operating environment for man-machine interface
CN106931159B (en) A kind of mode switch control method of transfer gear, apparatus and system
CN101505386B (en) Implementing method for transferability of household electrical appliance user operation interface
US20150359032A1 (en) Method for remotely controlling a system for controlling maneuver(s) of a vehicle using a control unit
CN103634636B (en) A kind of application fast control method and system of Android intelligent television
CN108729113A (en) A kind of control method for washing machine and washing machine
CN113958700B (en) Gear control method, gear shifter, gear shifting device and computer storage medium for automobile
CN102938812A (en) Information pushing method, information pushing device and information pushing system based on mobile terminal unlocking
CN112578764A (en) Vehicle fault diagnosis method and system and vehicle
CA1070848A (en) Data communication system
CN106603368A (en) One-secondary multi-primary communication method realized on basis of 485 bus
CN106915257B (en) Automobile instrument and central control interaction system and method
CN106533851A (en) Control system based on mesh network technology
CN105959754A (en) Method, device and system for controlling intelligent TV set remotely via terminal
CN106656711B (en) A kind of predefined method of token bus time slot
CN108958203A (en) Applied to the control method of central control system, central control system and vehicle
CN106828100B (en) Automobile instrument and central control interaction system and method
CN105226810B (en) More ups system power supply synchronization system and methods
CN113572671B (en) Equipment control method and device and electronic equipment
CN203084550U (en) Electronic diagnosis equipment of AFS (adaptive front-lighting system) controller
CN208298000U (en) A kind of intelligence PLC machine tool console
CN103513756A (en) Method for controlling keyboard and electronic device
CN113741786B (en) Control method and system for soft switch of automobile touch screen
CN107179868A (en) In-vehicle multi-media system, the control method of in-vehicle multi-media system and vehicle
CN209627393U (en) A kind of human-computer interaction network controller and system

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170426