CN108200149A - Locomotive image arbitration device - Google Patents

Locomotive image arbitration device Download PDF

Info

Publication number
CN108200149A
CN108200149A CN201711470895.5A CN201711470895A CN108200149A CN 108200149 A CN108200149 A CN 108200149A CN 201711470895 A CN201711470895 A CN 201711470895A CN 108200149 A CN108200149 A CN 108200149A
Authority
CN
China
Prior art keywords
request
image
module
locomotive
priority
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
CN201711470895.5A
Other languages
Chinese (zh)
Other versions
CN108200149B (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.)
Shenhua Group Corp Ltd
Shenshuo Railway Branch of China Shenhua Energy Co Ltd
Original Assignee
Shenhua Group Corp Ltd
Shenshuo Railway Branch of China Shenhua 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 Shenhua Group Corp Ltd, Shenshuo Railway Branch of China Shenhua Energy Co Ltd filed Critical Shenhua Group Corp Ltd
Priority to CN201711470895.5A priority Critical patent/CN108200149B/en
Publication of CN108200149A publication Critical patent/CN108200149A/en
Application granted granted Critical
Publication of CN108200149B publication Critical patent/CN108200149B/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
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/61Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources taking into account QoS or priority requirements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N7/00Television systems
    • H04N7/18Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast
    • H04N7/181Closed-circuit television [CCTV] systems, i.e. systems in which the video signal is not broadcast for receiving images from a plurality of remote sources

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Multimedia (AREA)
  • Bus Control (AREA)
  • Image Processing (AREA)

Abstract

The embodiment of the present invention provides a kind of locomotive image arbitration device, belongs to polling dispatching field.The locomotive image is acquired by locomotive image acquisition device, which includes:Generation unit and processing unit, wherein, for the generation unit for receiving image transmitting request and priority request, digit and the digit of the priority request that wherein described image transmission is asked are the number of the locomotive image acquisition device;And the processing unit is used to be arbitrated the sequence to determine transmission locomotive image at least once according to described image transmission request and the priority request.The present invention can be with equity dispatching locomotive image, it is ensured that the execution efficiency of locomotive image detecting system has scalability.

Description

Locomotive image arbitration device
Technical field
The present invention relates to polling dispatching, more particularly to a kind of locomotive image arbitration device.
Background technology
Locomotive image detecting system is that railway security transports vital technology, general locomotive image detecting system In, the multiple cameras of generally use carry out Image Acquisition to locomotive critical component.
Since locomotive image information is larger, if locomotive image arbitration device design is unreasonable, multiple cameras are collected EEF bogie image can not be transmitted to rear end control centre in time.In generally using conventional methods, majority uses finite state machine It realizes, when Image Acquisition number of cameras occurs to increase or reduce, needs modification system and verified and tested, it is expansible Property it is poor, it is greatly inconvenient to come to the number of cameras expansion bands of locomotive image detecting system.
Invention content
The purpose of the embodiment of the present invention is to provide a kind of locomotive image arbitration device, which can be public Flat yard engine image, it is ensured that the execution efficiency of locomotive image detecting system has scalability.
To achieve these goals, the embodiment of the present invention provides a kind of locomotive image arbitration device, the locomotive image by Locomotive image acquisition device acquires, which includes:Generation unit and processing unit, wherein, the generation unit is schemed for generating As transmission request and priority request, the wherein digit of described image transmission request and the digit of the priority request is described The number of locomotive image acquisition device;And the processing unit is used for according to described image transmission request and the priority request The sequence to determine transmission locomotive image is arbitrated at least once.
Preferably, the processing unit includes request processing module, is used for:By described image transmission request and described preferential Grade request carries out and operation.
Preferably, the processing unit further includes request replication module, is used for:According to the output of the request processing module As a result the output result that request or the request processing module are transmitted to described image carries out cascade duplication.
Preferably, the generation unit is additionally operable to generation priority arbitration request Y;The processing unit further includes response duplication Module is used for:After the difference of the output result of the request replication module and priority arbitration request Y is negated, asked with described The output result of replication module is asked to carry out and operate.
Preferably, the digit of described image transmission request is X, and the processing unit further includes responder module, is used for:By institute The 2X-Y for stating the output result of response replication module is carried out or is operated to X position and X-Y to X position.
Preferably, the generation unit is additionally operable to generation system reset request;The processing unit further includes priority tune Mould preparation block, is used for:When system reset request is effective, output is 0;It is 0 in the output result of the request processing module When, the output result of the responder module is negated using the priority request as arbitration next time;In the request processing module Output result when not being 0, by priority arbitration request and the output result of the responder module carry out with operation using as The priority request of arbitration next time.
Preferably, the processing unit further includes response output module, is used for:It is defeated when system reset request is effective Go out is 0;When being asked without the system reset, exported when the output result deposit of the responder module is arbitrated to next time.
Through the above technical solutions, using locomotive image arbitration device provided by the invention, the locomotive image is by locomotive Image acquisition device acquires, which includes:Generation unit and processing unit, wherein, the generation unit passes for receiving image The digit of defeated request and priority request, wherein described image transmission request and the digit of the priority request are the locomotive The number of image acquisition device;And the processing unit is used to be carried out according to described image transmission request and the priority request The sequence to determine transmission locomotive image is arbitrated at least once.The locomotive image arbitration device can be according to priority request to figure Each locomotive image that the needs shown as table transmission request transmit is arbitrated, and determines the transmission sequence of each locomotive image, due to certainly It is dynamic to be arbitrated, it can be with equity dispatching locomotive image, it is ensured that the execution efficiency of locomotive image detecting system, since image transmitting please The digit asked can change, therefore this image arbitration device is adaptable to the machine of various quantity according to the number of locomotive image acquisition device Vehicle image acquisition device has scalability.
The other feature and advantage of the embodiment of the present invention will be described in detail in subsequent specific embodiment part.
Description of the drawings
Attached drawing is that the embodiment of the present invention is further understood for providing, and a part for constitution instruction, under The specific embodiment in face is used to explain the embodiment of the present invention, but do not form the limitation to the embodiment of the present invention together.Attached In figure:
Fig. 1 is the structure diagram for the locomotive image arbitration device that one embodiment of the invention provides;
Fig. 2 is the schematic diagram for the request processing module that one embodiment of the invention provides;
Fig. 3 is the schematic diagram of request replication module that one embodiment of the invention provides;
Fig. 4 is the schematic diagram for the response replication module that one embodiment of the invention provides;
Fig. 5 is the schematic diagram for the responder module that one embodiment of the invention provides;
Fig. 6 is the schematic diagram of priority adjustment module that one embodiment of the invention provides;
Fig. 7 is the schematic diagram for the response output module that one embodiment of the invention provides.
Reference sign
1 generation unit, 2 processing unit.
Specific embodiment
The specific embodiment of the embodiment of the present invention is described in detail below in conjunction with attached drawing.It should be understood that this Locate described specific embodiment and be merely to illustrate and explain the present invention embodiment, be not intended to restrict the invention embodiment.
Fig. 1 is the structure diagram for the locomotive image arbitration device that one embodiment of the invention provides.It is as shown in Figure 1, described Locomotive image is acquired by locomotive image acquisition device, which includes:Generation unit 1 and processing unit 2, wherein, the generation is single Member 1 is for generating image transmitting request and priority request, and wherein the digit of described image transmission request and the priority please The digit asked is the number of the locomotive image acquisition device;And the processing unit 2 is used to be transmitted according to described image and ask The sequence to determine transmission locomotive image is arbitrated at least once with the priority request.
Locomotive image acquisition device has number, after multiple locomotive image acquisition devices shoot locomotive image, generation unit 1 The image transmitting request in_req with the digit identical with the quantity of locomotive image acquisition device can be generated, wherein with 1 and 0 table No locomotive image is shown with, and multiple 1 and 0 are arranged according to number.Also, it is initial in each arbitration, it is passed in generation image Priority request grant_mask_pro, priority request grant_mask_pro when initial are generated while defeated request in_req It can fix.After primary arbitration is performed, it can determine whether to first have to the locomotive image of transmission, and generate new priority simultaneously and ask Seek grant_mask_pro, locomotive image arbitration device of the invention can according to new priority request grant_mask_pro and Image transmitting request in_req is arbitrated next time.After repeatedly arbitrate, it may be determined that the biography of all locomotive images Defeated sequence.
Image transmitting request in_req and priority request grant_mask_pro is carried out by each module of processing unit 2 After processing, arbitration result out_ack is exported.The digit of image transmitting request in_req and the priority request grant_ The digit of mask_pro is the number of the locomotive image acquisition device.Such as locomotive image acquisition device has 8, then image transmitting please It can be, for example, 8 ' b1001_0110 to seek in_req, that is, represents that the 0th, the 3rd, the 5th and the 6th locomotive picture signal is 1, priority request grant_mask_pro can be, for example, 8 ' b1111_1111 after system reset.Processing unit 2 includes request Processing module, request replication module, response replication module, responder module, priority adjustment module and response output module, respectively The function of module will be explained below.
Fig. 2 is the schematic diagram for the request processing module that one embodiment of the invention provides.As shown in Fig. 2, the processing unit 2 Including request processing module, it is used for:Described image is transmitted into the request in_req and priority request grant_mask_pro It carries out and operates.
Determining described image transmission request in_req and priority request grant_mask_pro progress and operation Result when being 0, output result req_mask_cmpr is 1;Determining described image transmission request in_req and the priority When request grant_mask_pro is carried out and the result of operation is not 0, it is 0 to export result req_mask_cmpr.
In_req is asked as 8 ' b1001_0110 using image transmitting, priority request grant_mask_pro is 8 ' b1111_ It for 1111, carries out with being 8 ' b1001_0110 after operation, therefore request processing module output result req_mask_cmpr is 0.
Fig. 3 is the schematic diagram of request replication module that one embodiment of the invention provides.As shown in Figure 3, it is preferable that the place Reason unit 2 further includes request replication module, is used for:According to req_mask_cmpr pairs of the output result of the request processing module The output result req_mask_cmpr of described image transmission request in_req or described request processing modules carries out cascade duplication.
When the output result req_mask_cmpr of request processing module is 0, output result is transmitted for two described images Ask the cascade of in_req;When the output result req_mask_cmpr of request processing module is 1, output result is two institutes State the cascade of the output result req_mask_cmpr of request processing module.Connect the citing of text, request processing module output result Req_mask_cmpr is 0, therefore it is 8 ' b1001_0110,8 ' b1001_ to ask the output result dual_req of replication module 0110。
Fig. 4 is the schematic diagram for the response replication module that one embodiment of the invention provides.As shown in figure 4, the generation unit 1 Generation priority arbitration request req_pro is additionally operable to, is worth for Y;The processing unit 2 further includes response replication module, is used for:By institute State output result dual_req and the priority arbitration request req_pro of request replication module difference negate after, asked with described The output result dual_req of replication module is asked to carry out and operate.
The citing of text is connected, when the numerical value Y of priority arbitration request req_pro is 1, asks the output result of replication module The result that the difference of dual_req and priority arbitration request req_pro negates is 8 ' b1001_0110,8 ' b1001_0101, then with asking The output result dual_req of replication module is asked to carry out and operate, exports result dual_grant as 8 ' b0000_0000,8 ' b0000_0010。
Fig. 5 is the schematic diagram for the responder module that one embodiment of the invention provides.As shown in figure 5, described image transmission request Digit for X, the processing unit 2 further includes responder module, is used for:By the output result dual_ of the response replication module The 2X-Y of grant is carried out to X position and X-Y to the 0th or operation.
Connect the citing of text, the output result dual_grant i.e. 8 ' b0000_0000 of response replication module, 8 ' b0000_ 0010, including 0-15, the 15th to the 8th 0000_0010 and the 7th to the 0th 0000_0000 is carried out or grasped Make, output result nxt_grant is 8 ' b0000_0010.
Fig. 6 is the schematic diagram of priority adjustment module that one embodiment of the invention provides.As shown in fig. 6, the generation is single Member 1 is additionally operable to generation system reset request;The processing unit 2 further includes priority adjustment module, is used for:It is answered in the system Output is 0 when position request rst is effective;When the output result req_mask_cmpr of the request processing module is 0, by described in The output result dual_grant of responder module is negated using the priority request grant_mask_pro as arbitration next time;Institute When to state the output result req_mask_cmpr of request processing module be not 0, by the priority arbitration ask req_pro with it is described The output result dual_grant of responder module is carried out with operation using the priority request grant_mask_ as arbitration next time pro。
The citing of text is connected, the output result req_mask_cmpr of request processing module is 0, by the responder module The output i.e. 8 ' b0000_0010 of result dual_grant are negated, and obtain the output result grant_mask_ of priority adjustment module Pro is 8 ' b1111_1101.
Fig. 7 is the schematic diagram for the response output module that one embodiment of the invention provides.As shown in fig. 7, the processing unit 2 Response output module is further included, is used for:When system reset request is effective, output is 0;It is asked without the system reset When, it is exported when the output result deposit of the responder module is arbitrated to next time.
The citing of text is connected, nxt_grant deposits one are clapped and are exported, is i.e. out_ack is 8 ' b0000_0010.
When image transmitting request in_req is other numerical value, can refer to that table 1 checks each module outputs and inputs result.
Each module outputs and inputs result during the transmission request of 1 different images of table
When image transmitting request is all invalid, i.e. in_req is 0, and req_pro is asked according to priority arbitration in arbitration next time Restart to arbitrate since Y that image transmitting is asked, i.e., the highest priority of Y.
In arbitration next time be this do not dispatched first it is 1 when image transmitting request in_req is not all 0 Position.
When image transmitting request, all significance bits of in_req are all modulated in this scheduling spends, i.e. in_req institutes promising 1 Position be all scheduled in this scheduling, next time arbitration according to priority arbitration ask req_pro restart from image pass Y of defeated request in_req start to arbitrate, i.e., the highest priority of Y.
Through the above technical solutions, using locomotive image arbitration device provided by the invention, the locomotive image arbitration device Each locomotive image that the needs represented according to priority request image transmitting request transmit is arbitrated, and determines each locomotive image Transmission sequence, can be with equity dispatching locomotive image, it is ensured that locomotive image detecting system performs effect due to being arbitrated automatically Rate, since the digit of image transmitting request can change according to the number of locomotive image acquisition device, this image arbitration device can It is adapted to the locomotive image acquisition device of various quantity, there is scalability.
The optional embodiment of the embodiment of the present invention is described in detail above in association with attached drawing, still, the embodiment of the present invention is simultaneously The detail being not limited in the above embodiment, can be to of the invention real in the range of the technology design of the embodiment of the present invention The technical solution for applying example carries out a variety of simple variants, these simple variants belong to the protection domain of the embodiment of the present invention.
It is further to note that specific technical features described in the above specific embodiments, in not lance In the case of shield, it can be combined by any suitable means.In order to avoid unnecessary repetition, the embodiment of the present invention pair Various combinations of possible ways no longer separately illustrate.
It will be appreciated by those skilled in the art that all or part of the steps of the method in the foregoing embodiments are can to pass through Program is completed to instruct relevant hardware, which is stored in a storage medium, is used including some instructions so that single Piece machine, chip or processor (processor) perform all or part of step of each embodiment the method for the application.It is and preceding The storage medium stated includes:USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory The various media that can store program code such as (RAM, Random Access Memory), magnetic disc or CD.
In addition, arbitrary combination can also be carried out between a variety of different embodiments of the embodiment of the present invention, as long as it is not The thought of the embodiment of the present invention is violated, should equally be considered as disclosure of that of the embodiment of the present invention.

Claims (7)

1. a kind of locomotive image arbitration device, which is characterized in that the locomotive image is acquired by locomotive image acquisition device, the device Including:
Generation unit and processing unit, wherein,
The generation unit for generate image transmitting request and priority request, wherein described image transmission request digit and The digit of the priority request is the number of the locomotive image acquisition device;And
The processing unit is used to arbitrated at least once with true according to described image transmission request and the priority request Surely the sequence of locomotive image is transmitted.
2. locomotive image arbitration device according to claim 1, which is characterized in that the processing unit is handled including request Module is used for:
Described image is transmitted into request and the priority request carries out and operation.
3. locomotive image arbitration device according to claim 2, which is characterized in that it is multiple that the processing unit further includes request Molding block, is used for:
Request or the output of the request processing module transmit described image according to the output result of the request processing module As a result cascade duplication is carried out.
4. locomotive image arbitration device according to claim 3, which is characterized in that
The generation unit is additionally operable to generation priority arbitration request Y;
The processing unit further includes response replication module, is used for:
After the difference of the output result of the request replication module and priority arbitration request Y is negated, replicated with the request The output result of module carries out and operation.
5. locomotive image arbitration device according to claim 4, which is characterized in that described image transmits the digit asked and is X, the processing unit further include responder module, are used for:
The 2X-Y of the output result of the response replication module to X position and X-Y to the 0th is carried out or operated.
6. locomotive image arbitration device according to claim 5, which is characterized in that
The generation unit is additionally operable to generation system reset request;
The processing unit further includes priority adjustment module, is used for:
When system reset request is effective, output is 0;
When the output result of the request processing module is 0, the output result of the responder module is negated using as next time The priority request of arbitration;
When the output result of the request processing module is not 0, the priority arbitration is asked defeated with the responder module Go out result to carry out with operation using the priority request as arbitration next time.
7. locomotive image arbitration device according to claim 6, which is characterized in that it is defeated that the processing unit further includes response Go out module, be used for:
When system reset request is effective, output is 0;
When being asked without the system reset, exported when the output result deposit of the responder module is arbitrated to next time.
CN201711470895.5A 2017-12-29 2017-12-29 Locomotive image arbitration device Active CN108200149B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711470895.5A CN108200149B (en) 2017-12-29 2017-12-29 Locomotive image arbitration device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711470895.5A CN108200149B (en) 2017-12-29 2017-12-29 Locomotive image arbitration device

Publications (2)

Publication Number Publication Date
CN108200149A true CN108200149A (en) 2018-06-22
CN108200149B CN108200149B (en) 2021-01-05

Family

ID=62586184

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711470895.5A Active CN108200149B (en) 2017-12-29 2017-12-29 Locomotive image arbitration device

Country Status (1)

Country Link
CN (1) CN108200149B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1901708A (en) * 2006-06-26 2007-01-24 华为技术有限公司 Device, method and chip and cell phone for realizing image data collection
US20080235423A1 (en) * 2007-03-22 2008-09-25 Arm Limited Data processing apparatus and method for arbitrating between messages routed over a communication channel
CN101594535A (en) * 2008-05-28 2009-12-02 株式会社日立制作所 Image processing apparatus
CN106844250A (en) * 2017-02-14 2017-06-13 山东师范大学 The bus arbiter and referee method of a kind of mixed scheduling

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1901708A (en) * 2006-06-26 2007-01-24 华为技术有限公司 Device, method and chip and cell phone for realizing image data collection
US20080235423A1 (en) * 2007-03-22 2008-09-25 Arm Limited Data processing apparatus and method for arbitrating between messages routed over a communication channel
CN101594535A (en) * 2008-05-28 2009-12-02 株式会社日立制作所 Image processing apparatus
CN106844250A (en) * 2017-02-14 2017-06-13 山东师范大学 The bus arbiter and referee method of a kind of mixed scheduling

Also Published As

Publication number Publication date
CN108200149B (en) 2021-01-05

Similar Documents

Publication Publication Date Title
TW201805858A (en) Method for performing neural network computation and apparatus
CN1658180A (en) Bus system and method thereof
RU2013146508A (en) METHOD AND DEVICE FOR PROVIDING FLOWS BASED ON IDENTIFIER THROUGH A PCI Express BUS
WO2014173364A1 (en) Shared resource access method and device
JP2006523902A5 (en)
CN105353987A (en) File processing method and device
JP2006293927A (en) Direct memory access controller and system lsi including direct memory access controller
US7707347B2 (en) Data path master/slave data processing device apparatus
CN108200149A (en) Locomotive image arbitration device
CN110377539B (en) Data transmission method, device and medium based on high-speed signal switching chip
TWI750386B (en) Bus system
CN113626399B (en) Data synchronization method, device, server and storage medium
CN102279801A (en) Memory sharing system and method
KR20090118610A (en) Bus arbiter capable of grouping transactions, bus device and system including the same
CN106934187A (en) A kind of adjustment method and system for improving chip FPGA prototype verification efficiency
JP2010118020A (en) Request order control system, request order control method, and request order control program
JP5146284B2 (en) Data transfer apparatus and data transfer method
CN109241362A (en) Block generation method, device, equipment and storage medium
JP4472402B2 (en) Bus equipment
CN109739279A (en) Temprature control method, device, electronic equipment and storage medium
JPS6160162A (en) Bus arbitration system
CN115269210A (en) Joint calculation method and system
CN117370088A (en) Performance test method and system for artificial intelligent accelerator card of domestic heterogeneous platform
CN111813537A (en) Operation method, device and related product
JPS6048566A (en) Memory bus access 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
GR01 Patent grant
GR01 Patent grant