CN110399326A - A kind of data conversion equipment - Google Patents

A kind of data conversion equipment Download PDF

Info

Publication number
CN110399326A
CN110399326A CN201910712460.XA CN201910712460A CN110399326A CN 110399326 A CN110399326 A CN 110399326A CN 201910712460 A CN201910712460 A CN 201910712460A CN 110399326 A CN110399326 A CN 110399326A
Authority
CN
China
Prior art keywords
data
interface
pin
communications module
type
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
CN201910712460.XA
Other languages
Chinese (zh)
Other versions
CN110399326B (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.)
SHENYANG NE-CARES Co Ltd
Original Assignee
SHENYANG NE-CARES 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 SHENYANG NE-CARES Co Ltd filed Critical SHENYANG NE-CARES Co Ltd
Priority to CN201910712460.XA priority Critical patent/CN110399326B/en
Publication of CN110399326A publication Critical patent/CN110399326A/en
Application granted granted Critical
Publication of CN110399326B publication Critical patent/CN110399326B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • G06F13/4286Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus using a handshaking protocol, e.g. RS232C link
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0002Serial port, e.g. RS232C

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer And Data Communications (AREA)

Abstract

Data conversion equipment described herein, including RJ45 interface, the communications module of the first kind, the communications module of Second Type, microcontroller and output interface.Wherein, RJ45 interface is used to receive the data of the first kind, or, receive the data of Second Type, first part's pin of RJ45 interface is used to connect the communications module of the first kind, second part pin is used to connect the communications module of Second Type, data conversion equipment can connect different types of communications module, and receive different types of data, for the luggage platform scale for generating data by different communication protocol, so that enabling host computer to read weighing numerical value automatically from a variety of luggage platform scales in the case where existing host computer is not transformed.

Description

A kind of data conversion equipment
Technical field
This application involves electronic information field more particularly to a kind of data conversion equipments.
Background technique
Domestic airport operator is when receiving passenger's checked baggage at present, the typing trip in departure system by manual mode Objective checked baggage weight, therefore operating efficiency is low and error-prone.
One of mode to solve the above problems are as follows: when check-in personnel receive checked baggage by departure system, so that on Position machine (such as machine departure system) can read automatically and insert the weighing numerical value of luggage platform scale.
But domestic each airdrome luggage platform scale brand and model are numerous, the data output of the luggage platform scale of different brands or model Interface disunity, and data output format disunity, such case make that departure system must be transformed, could make from The weighing numerical value that port system reads luggage platform scale automatically is suitable for a variety of luggage platform scales.And be transformed the excessively cumbersome of departure system and Cost is excessively high.
Summary of the invention
This application provides a kind of data conversion equipments, it is therefore intended that solves how the case where existing host computer is not transformed Under, enable host computer to read the problem of weighing numerical value automatically from a variety of luggage platform scales.
To achieve the goals above, this application provides following technical schemes:
This application discloses a kind of data conversion equipments, comprising:
RJ45 interface, the communications module of the first kind, the communications module of Second Type, microcontroller and output interface;
The RJ45 interface is used to receive the data of the first kind, alternatively, receiving the data of Second Type;
First part's pin of the RJ45 interface connects the communications module of the first kind, the connection of second part pin The communications module of the Second Type;
The communications module of the first kind is connected with the microcontroller respectively with the communications module of the Second Type;
The microcontroller is connected with the output interface;
The data of the first kind for being sent to by the RJ45 interface using the communications module of the first kind The microcontroller, alternatively, being sent to the data of the Second Type using the communications module of the Second Type described micro- Controller;The microcontroller is used to the information in the data received being sent to host computer by the output interface.
Optionally, the communications module of the first kind includes: the communications module using RS232 communication protocol;
The communications module of the Second Type includes: the communications module using RS485 communication protocol.
Optionally, first part's pin includes:
RS232 data-out pin, RS232 data output pins and data ground pin.
Optionally, the second part pin includes:
RS485 data-out pin and RS485 data output pins.
Optionally, the output interface includes: USB interface.
Optionally, the output interface includes connecting the interface formed with RS232 communications module by serial interface.
Optionally, the RJ45 interface by voltage sense pin, data pin, RS232 data-out pin and The connection of the communication interface of RS232 data output pins and the first kind, receives the number of the communication interface from the first kind According to the data for the first kind;
The communication interface of the first kind includes the communication interface using RS232 communication protocol.
Optionally, the power supply for the communication interface that the voltage sense pin of the RJ45 interface connects the first kind is drawn Foot, the data of the RJ45 interface pin connect the first kind communication interface data ground pin, it is described The RS232 data-out pin of RJ45 interface connects the RS232 data output pins of the communication interface of the first kind, The RS232 data output pins of the RJ45 interface connect the RS232 data input of the communication interface of the first kind Pin.
Optionally, the communication interface of the first kind includes: RJ45 interface.
Optionally, by data pin, RS485 data first transmit pin and RS485 data the to the RJ45 interface The communication interface of two transmission pins and Second Type connects, and it is described for receiving the data of the communication interface from the Second Type Second Type data;
The communication interface of the Second Type includes: the communication interface using RS485 communication protocol.
Optionally, the data of the RJ45 interface pin connect the data in the communication interface of the Second Type The RS485 data first transmission pin of ground pin, the RJ45 interface connects in the communication interface of the Second Type RS485 data first transmit pin, and the RS485 data second transmission pin of the RJ45 interface connects the Second Type Communication interface in RS485 data second transmit pin.
Optionally, the communication interface of the Second Type includes: DB9 male connector.
Optionally, the communication interface of the Second Type includes: RJ12 interface.
Optionally, further includes: the voltage sense pin of the voltage sense pin of the RJ45 interface and the RJ12 interface Connection.
Data conversion equipment described herein, including RJ45 interface, the communications module of the first kind, Second Type it is logical Believe mould group, microcontroller and output interface.Wherein, the data of the data of the RJ45 interface first kind and Second Type, The communications module of first part's pin connection first kind of RJ45 interface, second part pin connect the communication mould of Second Type Group, it is seen then that data conversion equipment can connect different types of communications module, and can receive different types of data.And The communications module of the first kind is connected with microcontroller respectively with the communications module of Second Type, and RJ45 interface uses the first kind Communications module the data of the first kind are sent to microcontroller, alternatively, using the communications module of Second Type by the second class The data of type are sent to microcontroller, and microcontroller is for the information in the data received to be sent to by output interface Position machine.As it can be seen that data conversion equipment described herein makes for the luggage platform scale for generating data by different communication protocol It obtains in the case where existing host computer is not transformed, host computer is enabled to read weighing numerical value automatically from a variety of luggage platform scales.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of application for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is the structural schematic diagram of data conversion equipment disclosed in the embodiment of the present application;
Fig. 2 be RJ45 interface disclosed in the embodiment of the present application in data conversion equipment and RS232 communications module and The connection schematic diagram of RS485 communications module;
Fig. 3 is the connection schematic diagram of data conversion equipment disclosed in the embodiment of the present application and luggage platform scale and host computer.
Specific embodiment
The embodiment of the present application discloses a kind of data conversion equipment, it is therefore intended that, as luggage platform scale and host computer (such as from Port system) before data transmit intermediary, suitable for different types of luggage platform scale weighing numerical value acquisition and transmission.
Below in conjunction with the attached drawing in the embodiment of the present application, technical solutions in the embodiments of the present application carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of embodiments of the present application, instead of all the embodiments.It is based on Embodiment in the application, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall in the protection scope of this application.
Fig. 1 is a kind of structure of data conversion equipment disclosed in the embodiment of the present application, comprising: RJ45 interface, the first kind Communications module, the communications module of Second Type, microcontroller and output interface.
Wherein, the pin arrangements of RJ45 interface are schematically as follows shown, including pin 1-8, the function of each pin are as follows:
1: reserved pin;
2:+5V voltage sense pin;
3: data grounding pin (commonly referred to as GND);
4:RS485 data first transmit pin (commonly referred to as RS485 data A);
5:RS485 data second transmit pin (commonly referred to as RS485 data B);
6:RS232 data-out pin (commonly referred to as Tx);
7:RS232 data output pins (commonly referred to as Rx);
8: reserved pin.
The cabling and positional relationship of the above pin, may refer to the prior art, which is not described herein again.
On RJ45 interface provided in this embodiment other than above-mentioned pin, there is also two LED lights, wherein one A LED light is used to indicate voltage sense pin, i.e., in the presence of+5V voltage, the LED light is bright, another LED indication Lamp is used to indicate data transmission, i.e., there are when data transmission, the LED light is bright by either RS232 or RS485.Specifically, Be used to indicate voltage sense pin LED light can with the LED light of glow green, be used to indicate there are data transmission LED Indicator light can be the LED light of jaundice coloured light.Certainly, in practice, it is used to indicate the LED indication of voltage sense pin The color of lamp issued light can also be other colors, be used to indicate the face of the LED light issued light transmitted there are data Color can also be other colors, and the color that the present embodiment does not shine to the two LED lights specifically limits, as long as the two LED light can distinguish instructed voltage detection pin and designation date is transmitted.
For the above pin, in the present embodiment, the communications module of the first kind is specially RS232 communications module, the second class The communications module of type is specially RS485 communications module.
Fig. 2 is the connection schematic diagram of RJ45 interface and RS232 communications module and RS485 communications module, wherein RJ45 connects The pin 3,6 and 7 of mouth is connected with RS232 communications module respectively.Specifically, the pin 3 of RJ45 interface be data pin with The data of RS232 communications module pin be connected.The pin 6 of RJ45 interface i.e. RS232 data-out pin communicates mould with RS232 The RS232 data output pins of group are connected.The pin 7 of RJ45 interface is RS232 data output pins and RS232 communications module RS232 data-out pin is connected.
The pin 4 and 5 of RJ45 interface is connected with RS485 communications module respectively.The pin 4 of RJ45 interface is RS485 data First transmission pin transmits pin with the RS485 data first of RS485 communications module and is connected.The pin 4 of RJ45 interface is RS485 Data second transmit pin and are connected with the RS485 data second of RS485 communications module transmission pin.
Above-mentioned RJ45 interface connect a kind of only implementation with pin specific in RS232 communications module, in practice, It can also be other connection types, as long as can guarantee to communicate between RJ45 interface and RS232 communications module, the present embodiment is not Concrete implementation mode is limited.
Similarly, above-mentioned RJ45 interface connect a kind of only implementation with pin specific in RS485 communications module, in reality It can also be other connection types, as long as can guarantee to communicate between RJ45 interface and RS485 communications module, this reality in border Example is applied not limit concrete implementation mode.
RS232 communications module and RS485 communications module pass through serial ports respectively and are connected with microcontroller.Microcontroller with it is defeated Outgoing interface is connected.
Specifically, in the present embodiment, microcontroller includes No. 0 serial ports, No. 1 serial ports, No. 2 serial ports and No. 3 serial ports.Its In, No. 0 serial ports with RS485 communications module for being connected, and for No. 1 serial ports for being connected with RS232 communications module, No. 2 serial ports are USB Serial ports mould group, for being connected with host computer, No. 3 serial ports are a spare communication interface, are used for DB9RS232 interface (by DB9 The interface that female mouth is connected and composed with RS232 communications module) it connect.It should be noted that No. 3 serial ports are during use, need Power supply is provided for data conversion equipment, specifically, power supply can be DC DC power supply.
Specifically, output interface, specifically, can be usbtype-B interface, can be used in the present embodiment with USB interface It is communicated with host computer, is also used to power for data conversion equipment, ttl chip and microcontroller are turned by USB inside the USB interface It is connected.The interface that output interface can also connect and compose for RS232 communications module with serial ports, specifically, serial interface can be Mother's DB9 mouth.Wherein, RS232 communications module is connect with microcontroller, and mother's DB9 mouth is connect with host computer, is realized between host computer Communication.Wherein, DC power supply is used to power for data conversion equipment provided by the present application.Due to output interface provided in this embodiment There are two ways, can be with RS232 communications module and serial ports group in the case where host computer does not support USB interface to be communicated At interface, realize the communication between microcontroller and host computer.
Fig. 3 is the connection schematic diagram of data conversion equipment shown in Fig. 2 and luggage platform scale and host computer, comprising: luggage Platform scale display instrument, data distributor, data conversion equipment, luggage platform scale passenger's display screen, and departure from port PC.
Wherein, the input terminal of luggage platform scale display instrument and data distributor connects, two output ends of data distributor It is connected respectively with luggage platform scale passenger display screen, data conversion equipment, data conversion equipment is connected with departure from port PC.
In practice, for using different communication protocol luggage platform scale, luggage platform scale display instrument, data distributor, Used interface is different between line between luggage platform scale passenger's display screen, and departure from port PC.Individually below to using METTLER Be illustrated for the luggage platform scale of these three agreements of TOLED, Atrax, MODbus (abbreviation METTLER TOLED luggage platform scale, Atrax luggage platform scale, MODbus luggage platform scale).
For METTLER TOLED luggage platform scale, the input terminal of data distributor and two output ends are all RJ45 interface, Be by the data that two output ends of data distributor export it is identical, one is transferred to the progress of luggage platform scale passenger's display screen It has been shown that, one is transferred to data conversion equipment provided by the present application, wherein the interface that data conversion equipment uses connects for RJ45 Mouthful.
For Atrax luggage platform scale, the input terminal of data distributor and two output ends all use RJ12 interface, pass through number According to distributor two output ends export data be it is identical, one is transferred to luggage platform scale passenger's display screen and shows, One is transferred to data conversion equipment provided by the present application, wherein the interface that data conversion equipment uses is RJ45 interface.
For MODbus luggage platform scale, the input terminal of data distributor is all used using DB9 male connector, two output ends DB9 female, be by the data that two output ends of data distributor export it is identical, one to be transferred to luggage platform scale passenger aobvious Display screen is shown that is transferred to a data conversion equipment provided by the present application, wherein data conversion equipment use interface be RJ45 interface.
It should be noted that the data distributor in Fig. 3 is for simultaneously to luggage platform scale passenger display screen and data conversion Equipment sends data, and for data conversion equipment provided by the present application, data distributor is not required, it can by luggage pound Scale display instrument is directly connect with data conversion equipment.
The communication interface of different types of luggage platform scale, used communication protocol is different, specifically, luggage platform scale is made The communication interface of communication protocol can be with the communication interface of the first kind or the communication interface of Second Type, specifically, first The communication interface of type can be the communication interface using RS232 communication protocol, specifically, can be RJ45 interface.Second class The communication interface of type can be the communication interface using RS485 communication protocol, specifically, can be RJ12 interface or DB9 male connector. For example, communication interface of the METTLER TOLED luggage platform scale using RS232 communication protocol, Atrax luggage platform scale and What MODbus luggage platform scale used is all the communication interface of RS485 communication protocol.
In the present embodiment, by the RJ45 interface of data conversion equipment from the data of the communication interface of the first kind The referred to as data of the first kind claim the RJ45 interface of data conversion equipment from the data of the communication interface of Second Type For the data of Second Type.RJ45 interface is for receiving pin used in the data of the first kind and the data of Second Type It is different.
In the case where luggage platform scale is the communication interface using RS232 communication protocol, RJ45 interface uses voltage detecting Pin, data ground pin, RS232 data-out pin and RS232 data output pins, are connected with the interface of luggage platform scale, Specifically, between the interface and RJ45 interface of luggage platform scale can by dedicated data line, by these pins of RJ45 interface with The interface of luggage platform scale connects.
Further, data conversion equipment and row will be described in detail by taking METTLER TOLEDO luggage platform scale as an example below The function of connection relationship and data conversion equipment the transmission luggage weighing data of Lee's platform scale.
In general, METTLER TOLEDO luggage platform scale (including IND205 series and L700 series) is connect using RS232 communication Mouthful, communication data line uses 24AWG double shielded twisted pair line.Assuming that the interface of luggage platform scale and the RJ45 interface of data conversion equipment Concrete form be RJ45 connector, then the connection relationship of the RJ45 interface of the interface of luggage platform scale and data conversion equipment Are as follows:
The RJ45 interface of the RJ45 interface data conversion equipment of luggage platform scale
2-+5V power supply --- --- --- --- --- -2-+5V voltage detecting
3-GND data --- --- --- --- -3-GND data
6-TX instrumented data exports the input of --- --- -6-RX RS232 data
7-RX instrumented data inputs the output of --- --- -7-TX RS232 data
That is: the pin 2:+5V energization pins of the interface (using the communication interface of RS232 communication protocol) of luggage platform scale, It is connected with the pin 2:+5V voltage sense pin of RJ45 interface.The pin 3 of the interface of luggage platform scale: data ground pin, with RJ45 The pin 3 of interface: data pin be connected.The pin 6 of the interface of luggage platform scale: instrumented data output pin (i.e. RS232 data Output pin), it is connected with the pin 6:RS232 data-out pin of RJ45 interface.The pin 7 of the interface of luggage platform scale: instrument Data-out pin (i.e. RS232 data-out pin) is connected with the pin 7:RS232 data output pins of RJ45 interface.
Further, the pin 6 of the RJ45 interface of data conversion equipment, can be with the second display screen of luggage platform scale (i.e. Luggage platform scale passenger's display screen, for watching the display screen of luggage weighing data, rather than the main display of luggage platform scale for passenger Screen), it is connected in parallel on the pin 6 of the interface of luggage platform scale.This mode of connection will not the direct wiring of mainboard to luggage platform scale, thus It ensure that the precision that will not reduce luggage platform scale.
Data conversion equipment by the luggage of luggage platform scale weigh data transfer to host computer (such as departure system) specific mistake Journey are as follows:
In the weighing of luggage platform scale, the pin 2 of the interface of luggage platform scale is powered on, and the RJ45 interface of data conversion equipment draws Foot 2 detects high level, what the pin 6 that the pin 6 of the RJ45 interface of data conversion equipment receives the interface of luggage platform scale exported Luggage weighing data.Luggage weighing data is sent to RS232 communications module, RS232 communication by the RJ45 interface of data conversion equipment Luggage weighing data is sent to microcontroller by mould group, and microcontroller stores data in caching, and is known according to data head tail tag 0x0D, the luggage in data intercept are weighed numerical value.Then, microcontroller logarithm carries out transcoding, and the numerical value after transcoding is led to Third communication mould group (serial ports) is crossed, using AEA consensus standard (the compatible standard of departure system), is sent to departure system.
Table 1 is the example of numerical value transcoding rule, and transcoded data technology can be found in the prior art, and which is not described herein again.
Table 1
The connection relationship of data conversion equipment and luggage platform scale will be described in detail by taking ATRAX luggage platform scale as an example below, with And the function of data conversion equipment transmission luggage weighing data.
The serial luggage platform scale in 950, the 960 of ATRAX is connect using RS485 communication mode using the RJ45 of data conversion equipment 2,3,4,5 pins of mouth realize data communication and potentiometric detection, shield data line using 6 cores, the RJ45 of data conversion equipment connects The concrete form of mouth can be for using RJ45 connector, the interface at luggage platform scale end can be RJ12 6P6C crystal head, then luggage The connection relationship of the RJ45 interface of the interface and data conversion equipment of platform scale are as follows:
The RJ45 interface of the RJ12 interface data conversion equipment of luggage platform scale
2-+5V voltage detecting --- --- -2-+5V voltage detecting
3-GND data ground --- --- 3-GND data
4-RX RS485 data A---4-RX RS485 data A
5-TX RS485 data B---5-TX RS485 data B
That is: the pin 2 of luggage platform scale RJ12 interface: voltage sense pin, with drawing for the RJ45 interface of data conversion equipment Foot 2: voltage sense pin is connected.The pin 3 of luggage platform scale RJ12 interface: data ground pin, the RJ45 with data conversion equipment The pin 3 of interface: data pin be connected.Pin 4:RS485 data A pin (the i.e. RS485 data of luggage platform scale RJ12 interface First transmission pin), pin 4:RS485 data A pin (the i.e. RS485 data first with the RJ45 interface of data conversion equipment Transmit pin) it is connected.The pin 5:RS485 data B pin of luggage platform scale RJ12 interface (i.e. draw by the transmission of RS485 data second Foot), pin 5:RS485 data B pin (i.e. RS485 data second transmit pin) phase with the RJ45 interface of data conversion equipment Even.
Data conversion equipment by the luggage of luggage platform scale weigh data transfer to host computer (such as departure system) specific mistake Journey are as follows:
In the weighing of luggage platform scale, the pin 2 of the RJ12 interface of luggage platform scale is powered on, the RJ45 interface of data conversion equipment Pin 2 detect high level, the pin 4 that the pin 4 of the RJ45 interface of data conversion equipment receives the interface of luggage platform scale is defeated Luggage weighing data out.Luggage weighing data is sent to RS485 communications module, RS485 by the RJ45 interface of data conversion equipment Luggage weighing data is sent to microcontroller by communications module, and microcontroller stores data in caching, and end to end according to data 0x3E and 0x41 or 0x0D and 0x0A is identified, the luggage weighing numerical value in data intercept.Then, microcontroller is logical by third Believe mould group (serial ports), using AEA consensus standard (the compatible standard of departure system), is sent to departure system.
Below will be by taking modbus interface luggage platform scale as an example, the connection that data conversion equipment and luggage platform scale is described in detail is closed The function of system and data conversion equipment transmission luggage weighing data.
Modbus interface luggage platform scale uses DB9-RJ45 industrial siding.The concrete form of the RJ45 interface of data conversion equipment It can be for using RJ45 connector, the interface at luggage platform scale end can be DB9 male connector, then the interface and data conversion of luggage platform scale The connection relationship of the RJ45 interface of equipment are as follows:
The RJ45 interface of the DB9 male connector data conversion equipment of luggage platform scale
1-RS458 data A-------------4-RX RS485 data A
2-RS485 data B-------------5-TX RS485 data B
5-RS485 data ground GND----------3-GND data
That is: the pin 5 of luggage platform scale DB9 male connector: data ground pin, the pin 3 with the RJ45 interface of data conversion equipment: Data pin be connected.The pin 1:RS485 data A pin of luggage platform scale DB9 male connector (i.e. draw by the transmission of RS485 data first Foot), pin 4:RS485 data A pin (i.e. RS485 data first transmit pin) phase with the RJ45 interface of data conversion equipment Even.The pin 2:RS485 data B pin (i.e. RS485 data second transmit pin) of luggage platform scale DB9 male connector, with data conversion The pin 5:RS485 data B pin (i.e. RS485 data second transmit pin) of the RJ45 interface of equipment is connected.
Data conversion equipment by the luggage of luggage platform scale weigh data transfer to host computer (such as departure system) specific mistake Journey are as follows:
After the weighing of luggage platform scale, the DB9 male connector of luggage platform scale informs that data turn by pin 1 and using modbus agreement Storage unit where exchange device luggage weighing numerical value, the pin 4 of the RJ45 interface of data conversion equipment use modbus agreement Luggage weighing numerical value is read from storage unit, and luggage weighing numerical value is sent to RS485 communications module, RS485 communications module will Luggage weighing numerical value is sent to microcontroller, and microcontroller stores data in caching, and passes through third communication mould group (serial ports), Using AEA consensus standard (the compatible standard of departure system), it is sent to departure system.
In the present embodiment, data conversion equipment further include: power supply indicator, status indicator lamp, answer lamp, reset are pressed Button, voice prompting equipment and voice prompting facility switching.Wherein, power supply indicator, status indicator lamp and answer lamp difference It is connected with microcontroller.Reset button is connected by reset circuit with microcontroller, voice prompting equipment respectively with voice prompting Facility switching is connected with microcontroller, and voice prompting facility switching is also connected with power ground.
Wherein, power supply indicator is used to indicate whether equipment is powered, specifically, power supply indicator can be white led lamps, For example, the white led lamps are bright, and in data conversion equipment no power, the white led lamps are not when data conversion equipment is powered It is bright.
Status indicator lamp is used to indicate whether data conversion equipment works normally.Specifically, status indicator lamp can be red Green bi-colour light, in data conversion equipment normal operating conditions, green light is bright, when in an abnormal state in data conversion equipment, Red colored lamp is bright.
Whether answer lamp is used to indicate host computer to data conversion equipment request data.Specifically, answer lamp can be purple Color LED light when each host computer is to device request data, triggers answer lamp flashing.
Reset button for microcontroller reset for restarting.
Voice prompting equipment is used in the case where voice prompting facility switching is in the open state, in data conversion equipment Starting or host computer issue prompting sound in the case where data conversion equipment request data.Specifically, voice prompting equipment can Think that buzzer, voice prompting device switch can be buzzer switch, the prompting sound of sending is specially buzzer.
From the foregoing, it will be seen that data conversion equipment can be used in the case where the interface of known luggage platform scale RJ45 interface in pin with the Interface Matching of luggage platform scale, connect luggage platform scale, upon connection, data conversion equipment then may be used To be automatically performed the acquisition of the weighing numerical value of luggage platform scale, convert and be uploaded to the process of host computer.
Because the scale that data conversion equipment can provide AEA standard for departure system claims numerical value, effectively reduce from The development cost and later maintenance cost of port system.
Data conversion equipment carries out data acquisition and code parsing by hardware mode, so will not influence the property of host computer Energy.
Also, data conversion equipment need to be only connected between luggage platform scale and departure system, therefore, goes into operation and implements letter It is single and at low cost.
If function described in the embodiment of the present application method is realized in the form of SFU software functional unit and as independent production Product when selling or using, can store in a storage medium readable by a compute device.Based on this understanding, the application is real The part for applying a part that contributes to existing technology or the technical solution can be embodied in the form of software products, The software product is stored in a storage medium, including some instructions are used so that a calculating equipment (can be personal meter Calculation machine, server, mobile computing device or network equipment etc.) execute each embodiment the method for the application whole or portion Step by step.And storage medium above-mentioned include: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), with Machine accesses various Jie that can store program code such as memory (RAM, Random Access Memory), magnetic or disk Matter.
Each embodiment in this specification is described in a progressive manner, the highlights of each of the examples are with it is other The difference of embodiment, same or similar part may refer to each other between each embodiment.
The foregoing description of the disclosed embodiments makes professional and technical personnel in the field can be realized or use the application. Various modifications to these embodiments will be readily apparent to those skilled in the art, as defined herein General Principle can be realized in other embodiments without departing from the spirit or scope of the application.Therefore, the application It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one The widest scope of cause.

Claims (14)

1. a kind of data conversion equipment characterized by comprising
RJ45 interface, the communications module of the first kind, the communications module of Second Type, microcontroller and output interface;
The RJ45 interface is used to receive the data of the first kind, alternatively, receiving the data of Second Type;
First part's pin of the RJ45 interface connects the communications module of the first kind, described in the connection of second part pin The communications module of Second Type;
The communications module of the first kind is connected with the microcontroller respectively with the communications module of the Second Type;
The microcontroller is connected with the output interface;
The RJ45 interface is used to be sent to the data of the first kind using the communications module of the first kind described Microcontroller, alternatively, the data of the Second Type are sent to the microcontroller by the communications module using the Second Type Device;The microcontroller is used to the information in the data received being sent to host computer by the output interface.
2. equipment according to claim 1, which is characterized in that the communications module of the first kind includes: using RS232 The communications module of communication protocol;
The communications module of the Second Type includes: the communications module using RS485 communication protocol.
3. equipment according to claim 2, which is characterized in that first part's pin includes:
RS232 data-out pin, RS232 data output pins and data ground pin.
4. equipment according to claim 2, which is characterized in that the second part pin includes:
RS485 data-out pin and RS485 data output pins.
5. equipment according to claim 1, which is characterized in that the output interface includes: USB interface.
6. equipment according to claim 1, which is characterized in that the output interface includes being led to by serial interface and RS232 Believe the interface of mould group connection composition.
7. equipment according to claim 1-3, which is characterized in that the RJ45 interface is drawn by voltage detecting Foot, data the communication interface of pin, RS232 data-out pin and RS232 data output pins and the first kind connect, The data for receiving the communication interface from the first kind are the data of the first kind;
The communication interface of the first kind includes the communication interface using RS232 communication protocol.
8. equipment according to claim 7, which is characterized in that the voltage sense pin of RJ45 interface connection described the The energization pins of the communication interface of one type, the data of the RJ45 interface pin connect the communication of the first kind The data of interface pin, the communication that the RS232 data-out pin of the RJ45 interface connects the first kind connect The RS232 data output pins of mouth, the RS232 data output pins of the RJ45 interface connect the logical of the first kind Believe the RS232 data-out pin of interface.
9. equipment according to claim 8, which is characterized in that the communication interface of the first kind includes: RJ45 interface.
10. equipment according to claim 1,2 or 4, which is characterized in that the RJ45 interface by data pin, RS485 data first transmit pin and RS485 data second transmit pin and the communication interface of Second Type connects, and reception comes from The data of the communication interface of the Second Type are the Second Type data;
The communication interface of the Second Type includes: the communication interface using RS485 communication protocol.
11. equipment according to claim 10, which is characterized in that the data of the RJ45 interface pin connect institute The RS485 data first transmission pin of with stating the data in the communication interface of Second Type pin, the RJ45 interface connects It connects in the communication interface of the Second Type RS485 data first and transmits pin, the RS485 data of the RJ45 interface the Two transmission pins connect RS485 data second in the communication interface of the Second Type and transmit pin.
12. equipment according to claim 11, which is characterized in that the communication interface of the Second Type includes:
DB9 male connector.
13. equipment according to claim 11, which is characterized in that the communication interface of the Second Type includes:
RJ12 interface.
14. equipment according to claim 13, which is characterized in that further include:
The voltage sense pin of the RJ45 interface is connect with the voltage sense pin of the RJ12 interface.
CN201910712460.XA 2019-08-02 2019-08-02 Data conversion equipment Active CN110399326B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910712460.XA CN110399326B (en) 2019-08-02 2019-08-02 Data conversion equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910712460.XA CN110399326B (en) 2019-08-02 2019-08-02 Data conversion equipment

Publications (2)

Publication Number Publication Date
CN110399326A true CN110399326A (en) 2019-11-01
CN110399326B CN110399326B (en) 2021-03-05

Family

ID=68327398

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910712460.XA Active CN110399326B (en) 2019-08-02 2019-08-02 Data conversion equipment

Country Status (1)

Country Link
CN (1) CN110399326B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6175771B1 (en) * 1997-03-03 2001-01-16 Light & Sound Design Ltd. Lighting communication architecture
US7358449B2 (en) * 2006-03-10 2008-04-15 Hannon Todd J Apparatus and method for measuring luggage weight
CN201303348Y (en) * 2008-10-29 2009-09-02 中国海洋大学 Universal multi-serial bus converter
CN201345083Y (en) * 2008-12-05 2009-11-11 深圳市凯弦电气自动化有限公司 Integrative communication interface
CN101673107A (en) * 2008-09-09 2010-03-17 上海轻工业研究所有限公司 Multi-path serial communication converter and distributed control system applied by same
CN102023959A (en) * 2010-12-12 2011-04-20 浦瑞斯仪表(上海)有限公司 Communication conversion bridge set based on USB-HID (universal serial bus-human input device) protocol
CN102306134A (en) * 2011-08-15 2012-01-04 福州科迪电子技术有限公司 Method and device for converting serial data of electronic scale into computer universal serial bus (USB) data
CN205003654U (en) * 2015-08-19 2016-01-27 深圳市励研科技有限公司 General asynchronous control system
CN206178799U (en) * 2016-08-24 2017-05-17 北京安控科技股份有限公司 RS485 and RS232 communication adaptive hardware circuit
CN207588888U (en) * 2017-07-31 2018-07-06 深圳市菲菱科思通信技术股份有限公司 A kind of test device and mainboard
CN109885514A (en) * 2019-01-30 2019-06-14 博众精工科技股份有限公司 A kind of RS232 communication communicates self-identifying multiplex interface with RS485

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6175771B1 (en) * 1997-03-03 2001-01-16 Light & Sound Design Ltd. Lighting communication architecture
US7358449B2 (en) * 2006-03-10 2008-04-15 Hannon Todd J Apparatus and method for measuring luggage weight
CN101673107A (en) * 2008-09-09 2010-03-17 上海轻工业研究所有限公司 Multi-path serial communication converter and distributed control system applied by same
CN201303348Y (en) * 2008-10-29 2009-09-02 中国海洋大学 Universal multi-serial bus converter
CN201345083Y (en) * 2008-12-05 2009-11-11 深圳市凯弦电气自动化有限公司 Integrative communication interface
CN102023959A (en) * 2010-12-12 2011-04-20 浦瑞斯仪表(上海)有限公司 Communication conversion bridge set based on USB-HID (universal serial bus-human input device) protocol
CN102306134A (en) * 2011-08-15 2012-01-04 福州科迪电子技术有限公司 Method and device for converting serial data of electronic scale into computer universal serial bus (USB) data
CN205003654U (en) * 2015-08-19 2016-01-27 深圳市励研科技有限公司 General asynchronous control system
CN206178799U (en) * 2016-08-24 2017-05-17 北京安控科技股份有限公司 RS485 and RS232 communication adaptive hardware circuit
CN207588888U (en) * 2017-07-31 2018-07-06 深圳市菲菱科思通信技术股份有限公司 A kind of test device and mainboard
CN109885514A (en) * 2019-01-30 2019-06-14 博众精工科技股份有限公司 A kind of RS232 communication communicates self-identifying multiplex interface with RS485

Also Published As

Publication number Publication date
CN110399326B (en) 2021-03-05

Similar Documents

Publication Publication Date Title
CN103248420B (en) Methods, systems and devices for detecting and identifying fiber connection
CN105119849B (en) A kind of exchange board structure and the data managing method applied to exchange board structure
CN108829567A (en) Support the monolithic NVMe hard disk backboard of dual lighting and the ignition method of hard disk backboard
CN104838636A (en) Ethernet over USB interfaces with full-duplex differential pairs
CN109558371A (en) Serial connection between Management Controller and microcontroller
CN105182210B (en) A kind of general-purpose interface and its implementation of computation chip test device
CN103490904B (en) Ethernet electrical interface rough set theory device, control method and device
CN109558158B (en) Device and method for updating FPGA and DSP programs based on network
CN106528469A (en) Mainboard
CN102355378B (en) Carrier channel testing system
CN108957164A (en) A kind of test device and test method of buckle
Ran et al. The design of communication convertor based on CAN bus
CN101367384A (en) Energy consumption recording instrument for WorldFIP interface type motorcycle
CN107239372A (en) Electronic device and detection method thereof
CN106844277A (en) A kind of server and its information transferring method
CN110399326A (en) A kind of data conversion equipment
CN203720314U (en) Apparatus for integrated testing of circuit board functions
CN108255768A (en) A kind of link bridge circuit, communication system and method based on I3C
CN115237697A (en) Universal cipher machine test platform
CN206863724U (en) The network drive of printer
CN106502911A (en) Multiple terminals access device
CN202404483U (en) Embedded network server equipment
Cisco NPE-G1 Overview and Specifications
CN204188189U (en) A kind of flexible embedded equipment under test simulator
CN209692763U (en) A kind of OC command communication board based on PXI bus

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