CN109857688A - The data transmission method and system of I2C bus interface applied to Medical Devices - Google Patents
The data transmission method and system of I2C bus interface applied to Medical Devices Download PDFInfo
- Publication number
- CN109857688A CN109857688A CN201910054275.6A CN201910054275A CN109857688A CN 109857688 A CN109857688 A CN 109857688A CN 201910054275 A CN201910054275 A CN 201910054275A CN 109857688 A CN109857688 A CN 109857688A
- Authority
- CN
- China
- Prior art keywords
- mark
- command
- order
- data
- characteristic value
- 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.)
- Withdrawn
Links
Landscapes
- Small-Scale Networks (AREA)
Abstract
The present invention provides the data transmission methods and system of a kind of I2C bus interface applied to Medical Devices, which comprises S1, the main device for receiving setting I2C bus interface correspond to whole communications commands that any I2C is communicated from an I2C of device;Communications command is segmented by timing is received to be converted into order group and store by S2, parsing communications command;Each order group includes the characteristic value that at least four is arranged by communications command temporal order, and each characteristic value is characterized using 16 order of the bit data;The most-significant byte of characteristic value is command id, and least-significant byte is the corresponding order data of the command id;S3, reading order group form new timing waveform according to the corresponding command id of each characteristic value and are sent to current I2C from device.Main device of the invention can be thus achieved using an I2C interface and communicate with all from equipment, and the inadequate problem of GPIO pin is reduced.
Description
Technical field
The invention belongs to medical ultrasound diagnostic imaging fields more particularly to a kind of I2C bus applied to Medical Devices to connect
The data transmission method and system of mouth.
Background technique
Ultrasonic imaging becomes clinic because of many advantages such as its non-invasive, real-time, easy to operate, cheap
On one of the diagnostic tool that is most widely used.When ultrasonic device connection or detection, it is related to the forwarding of data;A kind of realization side
In formula, I2C (built-in integrated circuit) bus is used to connect each device to carry out information transmission.
As shown in Figure 1, I2C bus is that one kind for being developed by Philips company is simple, bidirectional two-line synchronous serial is total
Line, it only needs both threads SDA (serial data line) and SCL (serial time clock line) can be between the device being connected in bus
Transmit information.
Main device generates the device that clock is transmitted with opening for starting bus transmissioning data, any at this time to be addressed
Device to be regarded as advocating peace in bus from device from, hair and the relationship received be not constant, and depend on data at this time
Direction of transfer.If main device will be sent data to from device, main device is addressed first from device, then active transmission data
To from device, data transmission is finally terminated by main device;If main device will receive the data from device, sought first by main device
From device, then main device receives the data sent from device for location, finally terminates receive process by main device.In such case
Under, host is responsible for generating timer clock and terminates data transmission.
In actual items, it is sometimes desirable to which main device carries out data transmission with multiple from device, but from the I2C interface of device
Agreement is not necessarily consistent, that is, exist standard and off-gauge, this is determined due to each device production quotient.In this way,
Just needing to carry out certain operations carries out data transmission main device with from device.
Scheme one in the prior art, main device distribute different path and pin to the slave equipment of different I2C interfaces,
Each paths realize a kind of I2C interface agreement to carry out data transmission with from equipment.Because main device internal resource and
GPIO number of pins is certain, program one kind, if on the one hand may be used when more from the I2C interface protocol type between device
The situation that main device internal resource can be caused not enough occurs, and it is also not enough on the other hand can also to may cause GPIO number of pins
It happens.
Scheme two in the prior art judges to need to carry out data communication according to the address date that main device addressing issues
Slave device be standard I2C equipment or off-gauge I2C equipment, if the I2C equipment of the present address data criteria of right and wrong
When location, main device I2C interface is configured to non-standard I 2C interface and realizes data transmission, is otherwise configured to the I2C interface of standard
Realize data transmission;In this way, by an I2C interface both can with standard I2C equipment carry out data communication, can also with it is nonstandard
Quasi- I2C equipment carries out data communication, without additional GPIO pin.For scheme 2, a non-standard I 2C is corresponded to from equipment
It is realized in main device with a kind of code, if non-standard I 2C device category is relatively more, Multiple Code is needed in main device
Mechanism is realized, the same I2C interface output is finally being switched to;However main device internal resource is certain, in this way, may
It will lead to the not enough situation of resource to occur;Simultaneously as the frequent switching of main device, increases the complexity of code mechanism.
Summary of the invention
In order to solve the above technical problems, the purpose of the present invention is to provide a kind of I2C buses applied to Medical Devices to connect
The data transmission method and system of mouth.
One of in order to achieve the above-mentioned object of the invention, an embodiment of the present invention provides a kind of I2C applied to Medical Devices
The data transmission method of bus interface, which comprises S1, the main device for receiving setting I2C bus interface correspond to any
Whole communications commands that I2C is communicated from an I2C of device, and after finishing receiving, stop receiving new communications command;
Communications command is segmented by timing is received to be converted into order group and deposit by S2, the parsing communications command
Storage;Each order group includes the characteristic value that at least four is arranged by communications command temporal order, and each characteristic value uses 16
Order data is characterized;The most-significant byte of the characteristic value is command id, and least-significant byte is the corresponding order data of the command id;
The command id includes: triggering mark, reads mark, writes mark, one of response mark and end of identification;
S3, reading order group form new timing waveform according to the corresponding command id of each characteristic value and are sent to currently
I2C is from device;
After S4,16 current order of the bit data groups are sent completely, it is further continued for receiving next I2C logical from I2C of device
The corresponding communications command of letter, until I2C bus interface is completed to transmit all I2C from the data of device.
As the further improvement of an embodiment of the present invention, the method also includes:
Communications command timing is converted using FIFO memory;
FIFO is sequentially written in each characteristic value of the order group to store, and according to write sequence from FIFO according to
Sequence reading order group;
When the FIFO is empty, it is further continued for receiving next I2C communication life corresponding from I2C communication of device
It enables.
As the further improvement of an embodiment of the present invention, the step S3 is specifically included:
If the corresponding command id of characteristic value is to write mark, transfers this feature value and correspond to order data and be forwarded, if
The corresponding command id of characteristic value is non-write mark, then ignores the corresponding order data of this feature value.
As the further improvement of an embodiment of the present invention, triggering mark include: START mark and
RESTART mark;
Response mark such as includes: at the ACK mark to be answered, identifies without waiting for response ACK, sends response ACK mark
And do not have to send response ACK mark;
The order data includes: from one of device identification and transmission data;
It is described from device identification be from address of devices and from device operation identify, 8 from device identification it is high 7 indicate from
Address of devices, last 1 expression main device notice read from device/or write operation.
As the further improvement of an embodiment of the present invention, the method also includes:
According to the formation sequence of each characteristic value in each order group, make the corresponding command id of first characteristic value
START mark, the corresponding command id of Second Eigenvalue are to write mark, and corresponding order data is from device identification, finally
The corresponding command id of one characteristic value is end of identification.
Another in order to solve foregoing invention purpose, an embodiment of the present invention provides a kind of I2C applied to Medical Devices
The data transmission system of bus interface, the system comprises: receiving module, for receiving the main device of setting I2C bus interface
Corresponding to whole communications commands that any I2C is communicated from an I2C of device, and after finishing receiving, stop receiving new lead to
Letter order;
Memory module is parsed, the communications command is parsed, communications command is segmented by timing is received to be converted into life
Group is enabled to be stored;Each order group includes the characteristic value that at least four is arranged by communications command temporal order, each feature
Value is characterized using 16 order of the bit data;The most-significant byte of the characteristic value is command id, and least-significant byte is corresponding for the command id
Order data;The command id includes: triggering mark, reads mark, writes mark, response mark and end of identification wherein it
One;
Processing module is used for reading order group, forms new timing waveform according to the corresponding command id of each characteristic value
Current I2C is sent to from device;
The receiving module is also used to, and after 16 current order of the bit data groups are sent completely, is further continued for receiving next
Communications command I2C corresponding from device I2C communication, until I2C bus interface is completed to all I2C from the data of device
Transmission.
As the further improvement of an embodiment of the present invention, the parsing memory module is specifically used for:
Communications command timing is converted using FIFO memory;
FIFO is sequentially written in each characteristic value of the order group to store, and according to write sequence reading order
Group;
The receiving module is also used to when the FIFO is empty, is further continued for receiving next I2C logical from I2C of device
The corresponding communications command of letter.
As the further improvement of an embodiment of the present invention, the processing module is specifically used for
If the corresponding command id of characteristic value is to write mark, transfers this feature value and correspond to order data and be forwarded, if
The corresponding command id of characteristic value is non-write mark, then ignores the corresponding order data of this feature value.
As the further improvement of an embodiment of the present invention, triggering mark include: START mark and
RESTART mark;
Response mark such as includes: at the ACK mark to be answered, identifies without waiting for response ACK, sends response ACK mark
And do not have to send response ACK mark;
The order data includes: from one of device identification and transmission data;
It is described from device identification be from address of devices and from device operation identify, 8 from device identification it is high 7 indicate from
Address of devices, last 1 expression main device notice read from device/or write operation.
As the further improvement of an embodiment of the present invention, the parsing memory module is also used to:
According to the formation sequence of each characteristic value in each order group, make the corresponding command id of first characteristic value
START mark, the corresponding command id of Second Eigenvalue are to write mark, and corresponding order data is from device identification, finally
The corresponding command id of one characteristic value is end of identification.
Compared with prior art, the beneficial effects of the present invention are: the I2C bus interface applied to Medical Devices of the invention
Data transmission method and system, by converting order group for the original temporal received and reading, main device with
When multiple progress I2C interface communications from device, main device can be thus achieved using an I2C interface and communicate with all from equipment,
Reduce the inadequate problem of GPIO pin.
Detailed description of the invention
Fig. 1 is main device and the structural schematic diagram that is connect from device by I2C bus;
Fig. 2 is the stream of the data transmission method of the I2C bus interface applied to Medical Devices of an embodiment of the present invention
Journey schematic diagram;
Fig. 3 is that main device with carry out I2C interface communication from device writes timing diagram in an of the invention specific example;
Fig. 4 is the mould in an embodiment of the present invention applied to the data transmission system of the I2C bus interface of Medical Devices
Block schematic diagram.
Specific embodiment
Below with reference to specific embodiment shown in the drawings, the present invention will be described in detail.But these embodiments are simultaneously
The present invention is not limited, structure that those skilled in the art are made according to these embodiments, method or functionally
Transformation is included within the scope of protection of the present invention.
As shown in Fig. 2, providing a kind of data of I2C bus interface applied to Medical Devices in an embodiment of the present invention
Transmission method, which comprises
S1, the main device for receiving setting I2C bus interface correspond to the whole that any I2C is communicated from an I2C of device
Communications command, and after finishing receiving, stop receiving new communications command.
Communications command is segmented by timing is received to be converted into order group and deposit by S2, the parsing communications command
Storage;Each order group includes the characteristic value that at least four is arranged by communications command temporal order, and each characteristic value uses 16
Order data is characterized;The most-significant byte of the characteristic value is command id, and least-significant byte is the corresponding order data of the command id;
The command id includes: triggering mark, reads mark, writes mark, one of response mark and end of identification.
S3, reading order group form new timing waveform according to the corresponding command id of each characteristic value and are sent to currently
I2C is from device.
After S4,16 current order of the bit data groups are sent completely, it is further continued for receiving next I2C logical from I2C of device
The corresponding communications command of letter, until I2C bus interface is completed to transmit all I2C from the data of device.
For step S1, main device carries out I2C communication with from device with from device by SDA and two signals of SCL;In conjunction with
Shown in Fig. 3, what main device and one carried out I2C interface communication from device writes timing diagram, and the sequence occurred according to event is successively
Including starting event (START Condition), transmitting from address of devices (7 data), read write command (1 data), waiting
Response (ACK), transmission data (8 data), etc. (ACK) to be answered, terminate (STOP Condition) or repeat start
Timing such as (Repeated START Condition);Correspondingly, being received in main device logical from the whole of device corresponding to one
After letter order, that is, start to store the communications command, parse and send, and completes to correspond to one from the complete of device
After portion's instruction, it is further continued for being communicated with next from device.
In better embodiment of the present invention, communications command timing is converted using FIFO memory;By the every of the order group
One characteristic value is sequentially written FIFO and is stored, and according to write sequence from FIFO reading order group;Correspondingly, in the implementation
In mode, when the FIFO is empty, it is further continued for receiving next I2C communications command corresponding from I2C communication of device.
In better embodiment of the present invention, the triggering mark includes: START mark and RESTART mark;It is described to answer
Answering mark the ACK mark to be answered such as includes:, and is identified without waiting for response ACK, sends response ACK mark and answers without sending
Answer ACK mark;The order data includes: from one of device identification and transmission data;It is described from device identification be from
It address of devices and is identified from device operation, 8 from high 7 of device identification indicate from address of devices, last 1 expression main device
Notice read from device/or write operation.
Correspondingly, for step S2, the method also includes: according to the formation sequence of each characteristic value in each order group,
Make the corresponding command id START mark of first characteristic value, the corresponding command id of Second Eigenvalue is to write mark, right
The order data answered is from device identification, and the corresponding command id of the last one characteristic value is end of identification.
It should be noted that parsed step S2 to be converted into the process of order group to communications command, usually by
Main device independently parses, and certainly, in order to reduce the complexity of main device, which can also assist carrying out artificial by user
Parsing, does not do specifically repeat herein.In better embodiment of the present invention, for step S3, the method is specifically included: if feature
Being worth corresponding command id is to write mark, then transfers this feature value and correspond to order data and be forwarded, if the corresponding life of characteristic value
Order is identified as non-write mark, then ignores the corresponding order data of this feature value.
It is indicated preferably, identifying different command with 16 different systems, to distinguish each command id, the present invention
In one specific example, 01 indicates to write mark (W), and 02 indicates to read mark (R), and 03 indicates that START identifies (START
Condition), 04 RESTART mark (Repeated START Condition) is indicated, 05 indicates end of identification (STOP
Condition), the ACK mark to be answered such as 06 expression, 07 indicates to identify without waiting for response ACK, and 08 indicates transmission response ACK
Mark, 09 indicates not sending response ACK mark.
In the following specific examples of the present invention, specific introduction is done as from device using ADS7830 chip.
It is standard I2C device from device, address is " 1001010 " (binary system), by parsing in the specific example
Afterwards, the characteristic value in the order group of acquisition is arranged successively are as follows: " 0,300 0,194 0600 01AA 0,600 0,400 0,195 0600
0200 0,900 0500 " wherein,
0300 " 03 " is START mark, and expression is write beginning " 00 " and ignored
0194 " 01 " is to write mark, indicates write operation, and corresponding low eight " 94 " are from device identification, wherein " 94 "
Binary system " 10010100 ", high 7 " 1001010 " indicate that, from address of devices, minimum one " 0 " indicates main device notice from device
Part carries out write operation
0600 " 06 " is response mark, and ACK mark specially etc. to be answered, " 00 " is ignored
01AA " 01 " is to write mark, indicates that write operation, corresponding low eight " AA " are transmission data, that is, corresponds to address
The value of " AA " is written for the slave device of " 1001010 "
0400 " 04 " is RESTART mark, indicates resume operations, " 00 " is ignored
0195 " 01 " is to write mark, indicates write operation, and corresponding low eight " 95 " are from device identification, wherein " 95 "
Binary system " 10010101 ", high 7 " 1001010 " indicate that, from address of devices, minimum one " 0 " indicates main device notice from device
Part carries out read operation
0200 " 02 " is to read mark, indicates read operation, " 00 " is ignored
0900 " 09 " is response mark, does not send response ACK mark specially, " 00 " is ignored
0500 " 05 " is STOP end of identification, indicates to complete the slave equipment operation of the address, " 00 " is ignored
In another specific example of the present invention, it is non-standard I 2C device from device, is interactively communicated in the I2C of two chips, and
During writing data, waits to be answered and without waiting for response to be alternately present its address being " 1001010 " (binary system), warp
After crossing parsing, the characteristic value in the order group of acquisition is arranged successively are as follows: " 0,300 0,194 0600 01AA, 0700 01AB 0600
0700 01AD 0,600 0500 of 01AC " wherein,
0300 " 03 " is START mark, and expression is write beginning " 00 " and ignored
0194 " 01 " is to write mark, indicates write operation, and corresponding low eight " 94 " are from device identification, wherein " 94 "
Binary system " 10010100 ", high 7 " 1001010 " indicate that, from address of devices, minimum one " 0 " indicates main device notice from device
Part carries out write operation
0600 " 06 " is response mark, and ACK mark specially etc. to be answered, " 00 " is ignored
01AA " 01 " is to write mark, indicates that write operation, corresponding low eight " AA " are transmission data, that is, corresponds to address
The value of " AA " is written for the slave device of " 1001010 "
0700 " 07 " is second response mark, is specially identified without waiting for response ACK, " 00 " is ignored
01AB " 01 " is to write mark, indicates that write operation, corresponding low eight " AB " are transmission data, that is, corresponds to address
The value of " AB " is continued to write to for the slave device of " 1001010 "
It is identified for third response for second 0600 " 06 ", ACK specially etc. to be answered is identified, and " 00 " is ignored
01AC " 01 " is to write mark, indicates that write operation, corresponding low eight " AC " are transmission data, that is, corresponds to address
The value of " AC " is continued to write to for the slave device of " 1001010 "
Second 0700 " 07 " is the 4th response mark, is specially identified without waiting for response ACK, " 00 " is ignored
01AD " 01 " is to write mark, indicates that write operation, corresponding low eight " AD " are transmission data, that is, corresponds to address
The value of " AD " is continued to write to for the slave device of " 1001010 "
Third 0600 " 06 " is the 5th response mark, the ACK mark to be answered such as specially, and " 00 " is ignored
0500 " 05 " is STOP end of identification, indicates to complete the slave equipment operation of the address, " 00 " is ignored.
Through above-mentioned two example it is found that in entire communication process, main device is logical from the I2C interface of device without judging
Letter is any standard, it is only necessary to which main device is according to being order group from the communications command timing sequence conversion of device, then order group carried out
Parsing is read to translate into the transmission of corresponding timing and can complete main device and from the communication between device;In this way, reducing
GPIO pin required for device, reduce the complexity of program in machine code, while the device resource occupied needed for reducing,
Scheme is set to be suitable for communication of the various different I2C interfaces from device.
As shown in connection with fig. 4, an embodiment of the present invention provides a kind of data of I2C bus interface applied to Medical Devices
Transmission system, the system comprises: receiving module 100 parses memory module 200 and processing module 300.
The main device that receiving module 100 is used to receive setting I2C bus interface corresponds to any I2C from the primary of device
Whole communications commands of I2C communication, and after finishing receiving, stop receiving new communications command.
Parsing memory module 200 parses the communications command, and communications command is segmented by timing is received to be converted into
Order group is stored;Each order group includes the characteristic value that at least four is arranged by communications command temporal order, Mei Yite
Value indicative is characterized using 16 order of the bit data;The most-significant byte of the characteristic value is command id, and least-significant byte is the command id pair
The order data answered;The command id includes: triggering mark, reads mark, writes mark, response mark and end of identification are wherein
One of.
Processing module 300 is used for reading order group, and new timing wave is formed according to the corresponding command id of each characteristic value
Shape is sent to current I2C from device.
The receiving module 100 is also used to, and after 16 current order of the bit data groups are sent completely, is further continued for receiving next
Communications command a I2C corresponding from device I2C communication, until I2C bus interface is completed to all I2C from the number of device
According to transmission.
In better embodiment of the present invention, the parsing memory module 200 is specifically used for: logical using FIFO memory conversion
Believe command timing;FIFO is sequentially written in each characteristic value of the order group to store, and reads and orders according to write sequence
Enable group;The receiving module 100 is also used to when the FIFO is empty, is further continued for receiving next I2C logical from I2C of device
The corresponding communications command of letter.
In better embodiment of the present invention, the triggering mark includes: START mark and RESTART mark;It is described to answer
Answering mark the ACK mark to be answered such as includes:, and is identified without waiting for response ACK, sends response ACK mark and answers without sending
Answer ACK mark;The order data includes: from one of device identification and transmission data;It is described from device identification be from
It address of devices and is identified from device operation, 8 from high 7 of device identification indicate from address of devices, last 1 expression main device
Notice read from device/or write operation.
Preferably, it is described parsing memory module 200 be also used to: according in each order group each characteristic value formation sequence,
Make the corresponding command id START mark of first characteristic value, the corresponding command id of Second Eigenvalue is to write mark, right
The order data answered is from device identification, and the corresponding command id of the last one characteristic value is end of identification.
In better embodiment of the present invention, it is if the processing module 300 is specifically used for the corresponding command id of characteristic value
Mark is write, then transfers this feature value and corresponds to order data and be forwarded, if the corresponding command id of characteristic value is non-write mark,
Ignore the corresponding order data of this feature value.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description
Specific work process, can be with reference to the corresponding process in preceding method embodiment, details are not described herein.
In conclusion the data transmission method and system of the I2C bus interface applied to Medical Devices of the invention, pass through
Order group is converted by the original temporal received and is read, and carries out I2C interface communication from device with multiple in main device
When, it does not need to distinguish from whether device is normal component, main device can be thus achieved using an I2C interface to be led to all from equipment
Letter reduces the inadequate problem of GPIO pin;Further, when main device is with multiple progress I2C interface communications from device, reference
FIFO memory converts communications command timing, it can the scheme for being interpreted as being occupied a small amount of device inside resource with one is realized
The I2C interface of main device, to solve the problems, such as that internal resource is inadequate.
For convenience of description, it is divided into various modules when description apparatus above with function to describe respectively.Certainly, implementing this
The function of each module can be realized in the same or multiple software and or hardware when invention.
Device embodiments described above are only schematical, wherein the module as illustrated by the separation member
It may or may not be physically separated, the component shown as module may or may not be physics mould
Block, it can it is in one place, or may be distributed on multiple network modules.It can be selected according to the actual needs
In some or all of the modules realize the purpose of present embodiment scheme.Those of ordinary skill in the art are not paying creation
Property labour in the case where, it can understand and implement.
It should be appreciated that although this specification is described in terms of embodiments, but not each embodiment only includes one
A independent technical solution, this description of the specification is merely for the sake of clarity, and those skilled in the art should will say
As a whole, the technical solution in each embodiment may also be suitably combined to form those skilled in the art can for bright book
With the other embodiments of understanding.
The series of detailed descriptions listed above only for feasible embodiment of the invention specifically
Protection scope bright, that they are not intended to limit the invention, it is all without departing from equivalent implementations made by technical spirit of the present invention
Or change should all be included in the protection scope of the present invention.
Claims (10)
1. a kind of data transmission method of the I2C bus interface applied to Medical Devices, which is characterized in that
S1, the main device for receiving setting I2C bus interface correspond to whole communications that any I2C is communicated from an I2C of device
Order, and after finishing receiving, stop receiving new communications command;
Communications command is segmented by timing is received to be converted into order group and store by S2, the parsing communications command;Often
One order group includes the characteristic value that at least four is arranged by communications command temporal order, and each characteristic value uses 16 order of the bit
Data are characterized;The most-significant byte of the characteristic value is command id, and least-significant byte is the corresponding order data of the command id;It is described
Command id includes: triggering mark, reads mark, writes mark, one of response mark and end of identification;
S3, reading order group, according to the corresponding command id of each characteristic value formed new timing waveform be sent to current I2C from
Device;
After S4,16 current order of the bit data groups are sent completely, it is further continued for receiving next I2C from I2C communication institute of device
Corresponding communications command, until I2C bus interface is completed to transmit all I2C from the data of device.
2. the data transmission method of the I2C bus interface according to claim 1 applied to Medical Devices, feature exist
In, the method also includes:
Communications command timing is converted using FIFO memory;
FIFO is sequentially written in each characteristic value of the order group to store, and is sequentially read according to write sequence from FIFO
Take order group;
When the FIFO is empty, it is further continued for receiving next I2C communications command corresponding from I2C communication of device.
3. the data transmission method of the I2C bus interface according to claim 1 applied to Medical Devices, feature exist
In the step S3 is specifically included:
If the corresponding command id of characteristic value is to write mark, transfers this feature value and correspond to order data and be forwarded, if feature
Being worth corresponding command id is non-write mark, then ignores the corresponding order data of this feature value.
4. the data transmission method of the I2C bus interface according to claim 1 applied to Medical Devices, feature exist
In,
The triggering mark includes: START mark and RESTART mark;
Response mark such as includes: at the ACK mark to be answered, is identified without waiting for response ACK, send response ACK mark and
Without sending response ACK mark;
The order data includes: from one of device identification and transmission data;
Described from device identification is to identify from address of devices and from device operation, and 8 from high 7 of device identification indicate from device
Address, last 1 expression main device notice read from device/or write operation.
5. the data transmission method of the I2C bus interface according to claim 4 applied to Medical Devices, feature exist
In, the method also includes:
According to the formation sequence of each characteristic value in each order group, make the corresponding command id START mark of first characteristic value
Know, the corresponding command id of Second Eigenvalue is to write mark, and corresponding order data is from device identification, the last one feature
Being worth corresponding command id is end of identification.
6. a kind of data transmission system of the I2C bus interface applied to Medical Devices, which is characterized in that the system comprises:
Receiving module, the main device for receiving setting I2C bus interface correspond to any I2C and communicate from an I2C of device
Whole communications commands stop receiving new communications command and after finishing receiving;
Memory module is parsed, the communications command is parsed, communications command is segmented by timing is received to be converted into order group
It is stored;Each order group includes the characteristic value that at least four is arranged by communications command temporal order, and each characteristic value is adopted
It is characterized with 16 order of the bit data;The most-significant byte of the characteristic value is command id, and least-significant byte is the corresponding life of the command id
Enable data;The command id includes: triggering mark, reads mark, writes mark, one of response mark and end of identification;
Processing module is used for reading order group, forms new timing waveform according to the corresponding command id of each characteristic value and sends
To current I2C from device;
The receiving module is also used to, after 16 current order of the bit data groups are sent completely, be further continued for receiving next I2C from
The corresponding communications command of I2C communication of device, until I2C bus interface is completed to transmit all I2C from the data of device.
7. the data transmission system of the I2C bus interface according to claim 6 applied to Medical Devices, feature exist
In the parsing memory module is specifically used for:
Communications command timing is converted using FIFO memory;
FIFO is sequentially written in each characteristic value of the order group to store, and according to write sequence reading order group;
The receiving module is also used to when the FIFO is empty, is further continued for receiving next I2C from I2C communication institute of device
Corresponding communications command.
8. the data transmission system of the I2C bus interface according to claim 6 applied to Medical Devices, feature exist
In the processing module is specifically used for
If the corresponding command id of characteristic value is to write mark, transfers this feature value and correspond to order data and be forwarded, if feature
Being worth corresponding command id is non-write mark, then ignores the corresponding order data of this feature value.
9. the data transmission system of the I2C bus interface according to claim 6 applied to Medical Devices, feature exist
In,
The triggering mark includes: START mark and RESTART mark;
Response mark such as includes: at the ACK mark to be answered, is identified without waiting for response ACK, send response ACK mark and
Without sending response ACK mark;
The order data includes: from one of device identification and transmission data;
Described from device identification is to identify from address of devices and from device operation, and 8 from high 7 of device identification indicate from device
Address, last 1 expression main device notice read from device/or write operation.
10. the data transmission system of the I2C bus interface according to claim 9 applied to Medical Devices, feature exist
In the parsing memory module is also used to:
According to the formation sequence of each characteristic value in each order group, make the corresponding command id START mark of first characteristic value
Know, the corresponding command id of Second Eigenvalue is to write mark, and corresponding order data is from device identification, the last one feature
Being worth corresponding command id is end of identification.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910054275.6A CN109857688A (en) | 2019-01-21 | 2019-01-21 | The data transmission method and system of I2C bus interface applied to Medical Devices |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910054275.6A CN109857688A (en) | 2019-01-21 | 2019-01-21 | The data transmission method and system of I2C bus interface applied to Medical Devices |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109857688A true CN109857688A (en) | 2019-06-07 |
Family
ID=66895421
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910054275.6A Withdrawn CN109857688A (en) | 2019-01-21 | 2019-01-21 | The data transmission method and system of I2C bus interface applied to Medical Devices |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109857688A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110457254A (en) * | 2019-08-14 | 2019-11-15 | 飞依诺科技(苏州)有限公司 | Improve the method and system of ultrasonic device interface transmission utilization ratio |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20040094194A (en) * | 2003-05-02 | 2004-11-09 | 황보준식 | I2C communication protocol method providing various instruction codes |
CN1996275A (en) * | 2006-11-09 | 2007-07-11 | 中兴通讯股份有限公司 | Bulk memory accessing method for I2C controller in 10-site addressing mode |
CN101089838A (en) * | 2007-07-28 | 2007-12-19 | 中兴通讯股份有限公司 | Method for implementing 12C read-write sequence |
CN101404556A (en) * | 2008-10-24 | 2009-04-08 | 伊玛精密电子(苏州)有限公司 | One-wire bus communication method |
CN102023956A (en) * | 2009-09-23 | 2011-04-20 | 上海摩波彼克半导体有限公司 | Serial peripheral slave device interface structure in integrated circuit chip and data reading and writing method |
US20120005385A1 (en) * | 2010-06-30 | 2012-01-05 | Hon Hai Precision Industry Co., Ltd. | Communication circuit of inter-integrated circuit device |
CN108228520A (en) * | 2018-01-10 | 2018-06-29 | 郑州云海信息技术有限公司 | A kind of rapid transmission method of I2C controllers towards BMC |
-
2019
- 2019-01-21 CN CN201910054275.6A patent/CN109857688A/en not_active Withdrawn
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20040094194A (en) * | 2003-05-02 | 2004-11-09 | 황보준식 | I2C communication protocol method providing various instruction codes |
CN1996275A (en) * | 2006-11-09 | 2007-07-11 | 中兴通讯股份有限公司 | Bulk memory accessing method for I2C controller in 10-site addressing mode |
CN101089838A (en) * | 2007-07-28 | 2007-12-19 | 中兴通讯股份有限公司 | Method for implementing 12C read-write sequence |
CN101404556A (en) * | 2008-10-24 | 2009-04-08 | 伊玛精密电子(苏州)有限公司 | One-wire bus communication method |
CN102023956A (en) * | 2009-09-23 | 2011-04-20 | 上海摩波彼克半导体有限公司 | Serial peripheral slave device interface structure in integrated circuit chip and data reading and writing method |
US20120005385A1 (en) * | 2010-06-30 | 2012-01-05 | Hon Hai Precision Industry Co., Ltd. | Communication circuit of inter-integrated circuit device |
CN108228520A (en) * | 2018-01-10 | 2018-06-29 | 郑州云海信息技术有限公司 | A kind of rapid transmission method of I2C controllers towards BMC |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110457254A (en) * | 2019-08-14 | 2019-11-15 | 飞依诺科技(苏州)有限公司 | Improve the method and system of ultrasonic device interface transmission utilization ratio |
CN110457254B (en) * | 2019-08-14 | 2021-08-24 | 飞依诺科技(苏州)有限公司 | Method and system for improving transmission utilization rate of ultrasonic equipment interface |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8694710B2 (en) | Conversion of a two-wire bus into a single-wire bus | |
CN101399654B (en) | Serial communication method and apparatus | |
CN101911000B (en) | Control bus for connection of electronic devices | |
EP2793138B1 (en) | Method and system for single-line inter-integrated circuit (i2c) bus | |
CN109710548A (en) | A kind of DMA control data transmission method, system and equipment | |
US20100017654A1 (en) | Device-to-Device Communication Bus for Distributed Power Management | |
CN1719363A (en) | Hard ware extension method of programmable logic controller | |
CN112564882B (en) | Single-wire digital communication interface based on AHB bus | |
CN113626360B (en) | Low-speed MIPI observation type SOC chip and operation method thereof | |
CN106959935A (en) | A kind of method that compatible I2C communications communicate with IPMB | |
CN103903651B (en) | Double-line serial port build-in self-test circuit, and communication method thereof | |
CN105786639A (en) | I2C buss data transmission method and system | |
CN103500154A (en) | Serial bus interface chip, serial bus transmission system and method | |
CN113946533B (en) | Data storage device and serial port communication optimization method thereof | |
US7484028B2 (en) | Burst-capable bus bridges for coupling devices to interface buses | |
CN109857688A (en) | The data transmission method and system of I2C bus interface applied to Medical Devices | |
CA2336385A1 (en) | Improved inter-device serial bus protocol | |
US20070143506A1 (en) | Burst-capable interface buses for device-to-device communications | |
CN105354157A (en) | Method, device and system for configuring IIC (Inter-Integrated Circuit) device | |
CN111026691B (en) | OWI communication equipment based on APB bus | |
CN104346310A (en) | Data exchange circuit and method of high-performance I2C slave equipment | |
CN114124609B (en) | Communication device and communication method based on 1553B bus | |
CN115904844A (en) | UART simulation model for printing BOOT information and working method thereof | |
CN112506839B (en) | One-to-many SPI bus switching method and device | |
CN102868583A (en) | FlexRay bus joint with fault diagnosis function |
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 | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20190607 |
|
WW01 | Invention patent application withdrawn after publication |