CN105704206B - The implementation method of ethernet communication is carried out with LED display control card - Google Patents

The implementation method of ethernet communication is carried out with LED display control card Download PDF

Info

Publication number
CN105704206B
CN105704206B CN201511025802.9A CN201511025802A CN105704206B CN 105704206 B CN105704206 B CN 105704206B CN 201511025802 A CN201511025802 A CN 201511025802A CN 105704206 B CN105704206 B CN 105704206B
Authority
CN
China
Prior art keywords
led display
display control
control card
host computer
udp broadcast
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.)
Active
Application number
CN201511025802.9A
Other languages
Chinese (zh)
Other versions
CN105704206A (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.)
Xi'an Nova Nebula Technology Co., Ltd.
Original Assignee
Xian Novastar Electronic Technology 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 Xian Novastar Electronic Technology Co Ltd filed Critical Xian Novastar Electronic Technology Co Ltd
Priority to CN201511025802.9A priority Critical patent/CN105704206B/en
Publication of CN105704206A publication Critical patent/CN105704206A/en
Application granted granted Critical
Publication of CN105704206B publication Critical patent/CN105704206B/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/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
    • 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/44Star or tree networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L65/00Network arrangements, protocols or services for supporting real-time applications in data packet communication
    • H04L65/60Network streaming of media packets
    • H04L65/61Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio
    • H04L65/611Network streaming of media packets for supporting one-way streaming services, e.g. Internet radio for multicast or broadcast

Abstract

The present invention relates to a kind of implementation methods that ethernet communication is carried out with LED display control card, comprising steps of (a) host computer is in the LED display control card in same local area network with the host computer by udp broadcast search, to obtain the IP address and unique identification of the LED display control card in the local area network;(b) can host computer establish TCP/IP communication using the IP address of system PING command determination target LED display control card according to the IP address of the LED display control card got and connect;And (c) host computer is communicated with target LED display control card optionally through ICP/IP protocol or udp broadcast form according to judging result.Therefore, the problem of IP address is set is needed when the present invention can solve user's operation LED display control card, and solves the problems, such as that LED display control card and host computer are in same local area network but are unable to normal communication when IP address different segment.

Description

The implementation method of ethernet communication is carried out with LED display control card
Technical field
The present invention relates to Ethernet communication technology fields, in particular to a kind of to carry out ether Netcom with LED display control card The implementation method of letter.
Background technique
In LED display control system, control card is typically connect with host computer (such as PC machine) by cable.It is controlling When fabrication is communicated with host computer by cable foundation, host computer needs to obtain the IP address of control card first, and judges whether it is Same network segment need to set the IP address of control card to when not being same network segment to be in same network segment with the IP address of host computer. Later, when carrying out data communication, host computer is established ICP/IP protocol with control card and is connect, and passes through ICP/IP protocol and control card It is communicated.
Therefore, it is necessary to solve the problems, such as to need to be arranged when user's operation control card IP address, and solve control card with The problem of host computer is in same local area network but is unable to normal communication when IP address different segment.
Summary of the invention
In view of this, the present invention proposes a kind of implementation method for carrying out ethernet communication with LED display control card.
Specifically, the embodiment of the present invention proposes a kind of implementation method that ethernet communication is carried out with LED display control card, packet Include step: (a) host computer is in the LED display control card in same local area network by udp broadcast search with the host computer, with Obtain the IP address and unique identification of the LED display control card in the local area network;(b) host computer is aobvious according to the LED got Show that can the IP address of control card establish TCP/IP using the IP address of system PING command determination target LED display control card and lead to Letter connection;And (c) host computer according to judging result and target LED display control card optionally through ICP/IP protocol or Udp broadcast form is communicated.
In one embodiment of the invention, the unique identification in step (a) is No. SN of LED display control card.
In one embodiment of the invention, step (c) includes: if it is judged that for that can establish TCP/IP communication company It connects, upper computer selecting is communicated with target LED display control card by ICP/IP protocol;And if it is judged that for cannot TCP/IP communication connection is established, is communicated between upper computer selecting and target LED display control card by udp broadcast form.
In one embodiment of the invention, in step (c), when host computer and target LED display control card pass through UDP When the forms of broadcasting are communicated, host computer encapsulates the unique identification of target LED display control card to the packet of udp broadcast data packet In head, target LED display control card parses packet header after receiving the udp broadcast data packet to obtain the unique identification in packet header simultaneously Judge whether the unique identification obtained matches with itself unique identification being locally stored, mismatch then abandons the udp broadcast number According to packet, matching then handles the data in the udp broadcast data packet and replys data to host computer with udp broadcast packet form.
In one embodiment of the invention, LED display control card is the asynchronous control in mono-/bis-color LED display screen system Fabrication.
In addition, a kind of and LED display control card that another embodiment of the present invention proposes carries out the realization side of ethernet communication Method, comprising steps of (i) host computer is searched for by udp broadcast and the host computer is in the LED display control in same local area network Card, to obtain the IP address and unique identification of the LED display control card in the local area network;(ii) when the LED got is shown The local IP address of the IP address of control card and the host computer belongs to same network segment, and host computer passes through with LED display control card ICP/IP protocol is communicated;And (iii) when the IP address of the LED display control card got and the machine of the host computer IP address is not belonging to same network segment, and host computer is communicated with LED display control card by udp broadcast form.
In one embodiment of the invention, when host computer is communicated with LED display control card by udp broadcast form When, host computer encapsulates the unique identification of target LED display control card into the packet header of udp broadcast data packet, and target LED is shown Parsing packet header is after control card receives the udp broadcast data packet to obtain the unique identification in packet header and judge the unique mark obtained Know and whether matched with itself unique identification being locally stored, mismatch then abandons the udp broadcast data packet, and matching then handles institute It states the data in udp broadcast data packet and data is replied to host computer with udp broadcast packet form.
In one embodiment of the invention, step (i) includes: that host computer sends udp broadcast in local area network will search Suo Zhiling is sent to the LED display control card in local area network, and LED display control card receives after search instruction in the form of udp broadcast The udp broadcast data packet including IP address and unique identification is replied, host computer receives the udp broadcast of LED display control card reply Packet content is parsed after data packet and is shown to software.
From the foregoing, it will be observed that the embodiment of the present invention can simplify user's operation, with being not provided with the IP of LED display control card The parameters such as location, default gateway, using udp broadcast+TCP/IP mixed communication mechanism, to can be improved with plate power efficiency;Furthermore mixed In hop communication mechanism, due to preferentially communicating using ICP/IP protocol, udp broadcast is used when that ICP/IP protocol cannot be used to communicate Form communication, thus network communication stability can be enhanced.
Through the following detailed description with reference to the accompanying drawings, other aspects of the invention and feature become obvious.But it should know Road, which is only the purpose design explained, not as the restriction of the scope of the present invention.It should also be noted that unless another It points out outside, it is not necessary to which scale attached drawing, they only try hard to conceptually illustrate structure and process described herein.
Detailed description of the invention
Below in conjunction with attached drawing, specific embodiments of the present invention will be described in detail.
Fig. 1 is the LED display control card and host computer connected mode schematic diagram of the embodiment of the present invention.
Fig. 2 is the schematic diagram that LED display control card in local area network is searched for by UDP of the embodiment of the present invention.
Fig. 3 is that the LED display control card of the embodiment of the present invention and the UDP+TCP/IP mixed communication mode of host computer are illustrated Figure.
Fig. 4 is the implementation method process schematic of the UDP+TCP/IP mixed communication mechanism of the embodiment of the present invention.
Specific embodiment
In order to make the foregoing objectives, features and advantages of the present invention clearer and more comprehensible, with reference to the accompanying drawing to the present invention Specific embodiment be described in detail.
The embodiment of the present invention is when realizing that LED display control card is communicated with host computer by cable, to improve communication efficiency, Enhance communication stability and user experience, proposes the UDP+TCP/IP mixed communication mode in a kind of local area network.
It, can also be with as shown in Figure 1, host computer such as PC machine can be directly connected with LED display control card by cable It is connected by router or interchanger with LED display control card;Namely pass through between LED display control card and host computer Ethernet is communicated.Ethernet communication mechanism in the present embodiment between LED display control card and host computer is summarized as follows:
As shown in Fig. 2, host computer passes through UDP (User Datagram Protocol, User Datagram Protocol) extensively first It broadcasts search and obtains LED display control card all in local area network;Then, as shown in figure 3, host computer is sent out to LED display control card When sending data, can TCP/IP (Transmission be established according to the judgement of the IP address of the LED display control card searched Control Protocol/Internet Protocol, transmission control protocol/IP(Internet Protocol)) communication connection, if can establish TCP/IP communication connection, then send data to LED display control card by ICP/IP protocol, if TCP/IP communication cannot be established Connection, then send data to LED display control card using udp broadcast form, guarantee that the LED display control card searched can be just Normal open letter.
Wherein, can judgement establish the process of TCP/IP communication connection are as follows: host computer is according to the IP of LED display control card Location, calling system PING order (System.Net.NetworkInformation.PingReply) judge LED display control card IP address whether be able to use ICP/IP protocol communication.
Furthermore udp broadcast form is used to complete the process of point-to-point communication are as follows: host computer is searched for by udp broadcast can be with Get LED display control card IP address and unique identification such as No. SN, using udp protocol send data when, according to Packet header+data+packet tail format is packaged into data packet and is dealt into local area network in the form broadcasted, and LED display control card is received It to udp broadcast data packet, is verified to judge whether No. SN match, mismatch then abandons the udp broadcast data packet, and matching is then It handles the data of udp broadcast data packet and replys data to host computer to broadcast packet form;Host computer receive reply then send after Continuous data packet completes UDP communication in this way.
Wherein, principle udp broadcast data packet verified are as follows: by parse packet header, obtain No. SN judge whether with LED display control card be locally stored itself No. SN it is consistent, correct (namely indicating SN matching) is returned if consistent, is otherwise returned Return mistake (namely indicating that SN is mismatched).
To be more clearly understood that the present embodiment, below in conjunction with Fig. 4 to the realization side of UDP+TCP/IP Hybrid communication model Method is described in detail as follows:
(a) UDP is searched for: upper computer software is sent search instruction to by sending udp broadcast data packet in a local network LED display control card, LED display control card receive after search instruction equally with udp broadcast packet form send back complex data (such as Comprising screen parameter according to such as No. SN and ethernet module information such as IP address), upper computer software receives LED display control card Data content is parsed after the udp broadcast packet of reply, is shown to software, search is completed.
(b) communication mode selects: IP address of the upper computer software according to the LED display control card got, calling system PING order (System.Net.NetworkInformation.PingReply) judges that the IP address of LED display control card is No to be able to use ICP/IP protocol communication, host computer preferentially selects to be communicated using ICP/IP protocol, however since LED is shown Control card be by UDP communication search come up, so there are the IP address of LED display control card and the IP address of host computer not The case where belonging to same network segment, ICP/IP protocol cannot be completed to communicate at this time, and upper computer software is then selected through udp broadcast form Communication interaction is carried out with LED display control card.
In conclusion the embodiment of the present invention can simplify user's operation, with being not provided with the IP of LED display control card The parameters such as location, default gateway, using udp broadcast+TCP/IP mixed communication mechanism, to can be improved with plate power efficiency;Furthermore mixed In hop communication mechanism, due to preferentially communicating using ICP/IP protocol, udp broadcast is used when that ICP/IP protocol cannot be used to communicate Form communication, thus network communication stability can be enhanced.
In addition, it is noted that the LED display control card in previous embodiment is, for example, mono-/bis-color LED display system Asynchronous control-card in system, but the present invention is not limited thereto.Furthermore, it is to be understood that in other embodiments of the present invention, Whether whether the IP address of LED display control card that host computer can also directly be got by judgement belong to the IP address of the machine In same network segment come determine the communication mode between LED display control card be ICP/IP protocol communication mode or udp broadcast Mode.
The above described is only a preferred embodiment of the present invention, be not intended to limit the present invention in any form, though So the present invention has been disclosed as a preferred embodiment, and however, it is not intended to limit the invention, any technology people for being familiar with this profession Member, without departing from the scope of the present invention, when the technology contents using the disclosure above make a little change or modification It is right according to the technical essence of the invention for the equivalent embodiment of equivalent variations, but without departing from the technical solutions of the present invention Any simple modification, equivalent change and modification made by above embodiments, all of which are still within the scope of the technical scheme of the invention.

Claims (9)

1. a kind of implementation method for carrying out ethernet communication with LED display control card, which is characterized in that comprising steps of
(a) host computer is in the LED display control card in same local area network with the host computer by udp broadcast search, to obtain Take and show the IP address and unique identification of the LED display control card in the local area network;
(b) host computer is shown according to the IP address of the LED display control card got using system PING command determination target LED Can the IP address of control card establish TCP/IP communication connection;And
(c) host computer is according to judging result and target LED display control card optionally through ICP/IP protocol or udp broadcast shape Formula is communicated;
Wherein, step (c) includes: if it is judged that for that can establish TCP/IP communication connection, upper computer selecting and target LED Display control card is communicated by ICP/IP protocol;And if it is judged that for cannot establish TCP/IP communication connection, on Position machine selection is communicated between target LED display control card by udp broadcast form.
2. the implementation method of ethernet communication is carried out with LED display control card as described in claim 1, which is characterized in that step Suddenly the unique identification in (a) is No. SN of LED display control card.
3. the implementation method of ethernet communication is carried out with LED display control card as described in claim 1, which is characterized in that In step (c), when host computer is communicated with target LED display control card by udp broadcast form, host computer is by target The unique identification of LED display control card is encapsulated into the packet header of udp broadcast data packet, and target LED display control card receives described Packet header is parsed after udp broadcast data packet to obtain unique identification in packet header and judge the unique identification obtained and be locally stored Whether itself unique identification matches, and mismatch then abandons the udp broadcast data packet, and matching then handles the udp broadcast data Data in packet simultaneously reply data to host computer with udp broadcast packet form.
4. the implementation method of ethernet communication is carried out with LED display control card as described in claim 1, which is characterized in that LED Display control card is the asynchronous control-card in mono-/bis-color LED display screen system.
5. a kind of implementation method for carrying out ethernet communication with LED display control card, which is characterized in that comprising steps of
(i) host computer is in the LED display control card in same local area network with the host computer by udp broadcast search, to obtain Take and show the IP address and unique identification of the LED display control card in the local area network;
(ii) when the IP address of the LED display control card got and the local IP address of the host computer belong to same network segment, Host computer is communicated with LED display control card by ICP/IP protocol;And
(iii) when the IP address of the LED display control card got and the local IP address of the host computer are not belonging to same net Section, host computer are communicated with LED display control card by udp broadcast form.
6. the implementation method of ethernet communication is carried out with LED display control card as claimed in claim 5, which is characterized in that when When host computer is communicated with LED display control card by udp broadcast form, host computer by target LED display control card only Into the packet header of udp broadcast data packet, target LED display control card solves after receiving the udp broadcast data packet for one mark encapsulation Analysis packet header is to obtain the unique identification in packet header and judge whether are the unique identification obtained and itself unique identification for being locally stored Matching, mismatch then abandon the udp broadcast data packet, and matching handles the data in the udp broadcast data packet and then with UDP It broadcasts packet form and replys data to host computer.
7. the implementation method of ethernet communication is carried out with LED display control card as claimed in claim 5, which is characterized in that LED Display control card is the asynchronous control-card in mono-/bis-color LED display screen system.
8. the implementation method of ethernet communication is carried out with LED display control card as claimed in claim 5, which is characterized in that step Suddenly the unique identification in (i) is No. SN of LED display control card.
9. the implementation method of ethernet communication is carried out with LED display control card as claimed in claim 5, which is characterized in that step Suddenly (i) includes: that host computer sends udp broadcast in local area network to send search instruction to the LED display control in local area network Card, LED display control card reply the udp broadcast including IP address and unique identification after receiving search instruction in the form of udp broadcast Data packet, host computer parse packet content after receiving the udp broadcast data packet that LED display control card is replied and are shown to soft Part.
CN201511025802.9A 2015-12-31 2015-12-31 The implementation method of ethernet communication is carried out with LED display control card Active CN105704206B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201511025802.9A CN105704206B (en) 2015-12-31 2015-12-31 The implementation method of ethernet communication is carried out with LED display control card

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201511025802.9A CN105704206B (en) 2015-12-31 2015-12-31 The implementation method of ethernet communication is carried out with LED display control card

Publications (2)

Publication Number Publication Date
CN105704206A CN105704206A (en) 2016-06-22
CN105704206B true CN105704206B (en) 2019-01-18

Family

ID=56226781

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201511025802.9A Active CN105704206B (en) 2015-12-31 2015-12-31 The implementation method of ethernet communication is carried out with LED display control card

Country Status (1)

Country Link
CN (1) CN105704206B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106506720B (en) * 2016-11-16 2020-02-14 西安诺瓦星云科技股份有限公司 Automatic network IP address allocation method
CN107092459A (en) * 2017-05-31 2017-08-25 西安诺瓦电子科技有限公司 Exchange method and interactive device and display screen control system
CN107222845A (en) * 2017-05-31 2017-09-29 西安诺瓦电子科技有限公司 The broadcast control method and Broadcast Control device of display screen control card
CN108512947A (en) * 2018-03-21 2018-09-07 英业达科技有限公司 DHCP dynamic allocation methods, system and access terminal
CN108183978B (en) * 2018-03-29 2021-01-22 北京环境特性研究所 Communication equipment IP address configuration method and communication equipment
CN113129810B (en) * 2020-01-15 2022-06-17 西安诺瓦星云科技股份有限公司 Interface matching detection method and system
CN112799732A (en) * 2020-12-30 2021-05-14 深圳市捷顺科技实业股份有限公司 Display screen display method based on plug-in and related device
CN113395264A (en) * 2021-05-26 2021-09-14 深圳市元征未来汽车技术有限公司 Communication connection method, apparatus, server and medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104639875A (en) * 2013-11-06 2015-05-20 北京航天长峰科技工业集团有限公司 Video matrix control method by using MOXA controller
CN105072207A (en) * 2015-06-30 2015-11-18 深圳市灰度科技有限公司 LED asynchronous full-color control card and method for automatic identification with control computer
CN105099844A (en) * 2015-07-23 2015-11-25 西安诺瓦电子科技有限公司 Media release method, media data acquisition method and media release system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104639875A (en) * 2013-11-06 2015-05-20 北京航天长峰科技工业集团有限公司 Video matrix control method by using MOXA controller
CN105072207A (en) * 2015-06-30 2015-11-18 深圳市灰度科技有限公司 LED asynchronous full-color control card and method for automatic identification with control computer
CN105099844A (en) * 2015-07-23 2015-11-25 西安诺瓦电子科技有限公司 Media release method, media data acquisition method and media release system

Also Published As

Publication number Publication date
CN105704206A (en) 2016-06-22

Similar Documents

Publication Publication Date Title
CN105704206B (en) The implementation method of ethernet communication is carried out with LED display control card
CN101848235B (en) Real-time multimedia data P2P transmission scheme for supporting NAT traversal
CN105765946B (en) Support the method and system of the service chaining in data network
CN102148773B (en) Method and system for converting IPv6 (Internet Protocol Version 6) protocol and IPv4 (Internet Protocol Version 4) protocol
CN104010049B (en) Ethernet ip message encapsulating method and Network Isolation and DHCP implementation methods based on SDN
CN108234235A (en) For the method for data monitoring, the network equipment and computer readable storage medium
CN107925629B (en) Method and device for sending data message in IPv6 network
CN107172051A (en) A kind of method that internet of things equipment finds and managed
CN105072038B (en) A kind of data message forwarding method and device
US20150222711A1 (en) Method, Device and Terminal for Implementing Internet of Things Application
CN101521615B (en) Communication method for different networks and internetwork for smart machine
CN113328915B (en) Associated network measuring method based on SRv6
CN108322443A (en) Equipment interactive communication method, apparatus, storage medium and computer equipment
CN110198229A (en) Network collocating method and device, storage medium and electronic device
CN109151772A (en) It is a kind of that network method and network distribution device are matched based on graphical identifier
CN106550241A (en) Video traffic identifying system and virtualization dispositions method
CN108923974A (en) A kind of Internet of Things assets fingerprint identification method and system
CN109981819A (en) MDNS message processing method, device and group network system
CN102263700B (en) Method, device and system for sending and receiving messages
US20160212045A1 (en) Method and system for using extension headers to support protocol stack migration
CN107454141A (en) Solve the method and computer-readable recording medium of port collision
CN110166518A (en) Transmission method, device, storage medium and the electronic device of session information
JP2004229265A5 (en)
CN106330397A (en) Method and device for implementing data interaction on ZigBee and Modbus RTU protocols
CN107528929A (en) The processing method and processing device of arp entry

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 710075 DEF101, Zero One Square, Xi'an Software Park, No. 72 Zhangbajie Science and Technology Second Road, Xi'an High-tech Zone, Shaanxi Province

Patentee after: Xi'an Nova Nebula Technology Co., Ltd.

Address before: 710075 Qinfengge D District 201, Xi'an Software Park, 68 Science and Technology Second Road, Xi'an High-tech Zone, Shaanxi Province

Patentee before: Xian Novastar Electronic Technology Co., Ltd.