Communication device and image forming apparatus

JP2024128529APending Publication Date: 2024-09-24RICOH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
JP2023037531
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-03-10
Publication Date
2024-09-24

AI Technical Summary

Benefits of technology

【0007】 本発明によれば、受信側の通信装置において、通信ケーブルの接続時に受信可能なスケルチに係わる閾値電圧を調整することで、特性バラツキに起因した誤検出を防ぐことができる。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024128529000001
    Figure 2024128529000001
Patent Text Reader

Abstract

To adjust a value to a squelch setting value that is receivable at the time of connection of a communication cable in a reception-side communication device, to prevent erroneous detection due to a variation in characteristics.SOLUTION: A communication device 16 comprises a signal receiving unit 16b, a squelch detection unit 16c, and a start pattern detection unit 16d. The communication device further comprises: a register unit 16e that stores a squelch setting value associated with a threshold voltage; a DC voltage selection unit 16f that selects two DC voltages from a plurality of DC voltages according to the squelch setting value output from the register unit 16e, and supplies the DC voltages to the squelch detection unit 16c as the threshold voltage; and a squelch setting control circuit 16g that, when the start pattern detection unit 16d detects a receivable state, changes the squelch setting value to be gradually increased or decreased, and sequentially sets the squelch setting value to the register unit 16e.SELECTED DRAWING: Figure 2
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a communication device and an image forming device. [Background technology]

[0002] Conventionally, a technology is known for communication devices that, when a communication error occurs in a differential signal due to a change in the environmental temperature on the sending side (e.g., a disconnection of a USB signal), automatically changes the emphasis level (signal level), stores the emphasis level that resulted in successful communication, and resets it to reduce the number of recovery processes and minimize the effort and time required to recover.

[0003] Conventionally, Patent Document 1 discloses a technology that automatically adjusts / sets the emphasis level on the transmitting side for the purpose of reducing the recovery processing performed when a communication error occurs, thereby minimizing the effort and time required for recovery even when a communication error occurs due to a change in the environmental temperature of the communication terminal itself during communication with another communication terminal. As described above, in Patent Document 1, the emphasis level of a signal is adjusted in the transmitting communication device.

[0004] However, in the case of a communication device on the receiving side, since there are variations in characteristics for each individual communication device, the threshold voltage related to the squelch (receiving sensitivity) is usually different. For this reason, for example, when manufacturing communication devices, if only a certain threshold voltage related to the squelch is set for all of a plurality of communication devices, there is a problem that the differential signal may be erroneously detected due to the variations in characteristics in the usage environment in which the individual communication devices are placed. Summary of the Invention [Problem to be solved by the invention]

[0005] One embodiment of the present invention has been made in consideration of the above, and its purpose is to prevent erroneous detection due to characteristic variations in a receiving communication device by adjusting the threshold voltage related to the squelch that can be received when a communication cable is connected. [Means for solving the problem]

[0006] In order to solve the above problem, the invention described in claim 1 is a communication device comprising: a signal receiving unit that receives a differential signal transmitted from another communication device via a communication cable and converts it into binary data; a squelch detection unit that detects the presence or absence of a signal by comparing the amplitude level of the differential signal with a threshold voltage to detect a non-squelch state and a squelch state; and a start pattern detection unit that, when the squelch detection unit detects the non-squelch state, sets the device to a receivable state when a predetermined start pattern can be detected from the binary data corresponding to the differential signal, and is characterized in that the communication device further comprises: a register unit that stores a squelch setting value associated with the threshold voltage; a DC voltage selection unit that selects two DC voltages from a plurality of DC voltages according to the squelch setting value output from the register unit and supplies them to the squelch detection unit as threshold voltages; and a squelch setting control unit that, when the start pattern detection unit detects the receivable state, controls the squelch setting value to be changed so as to rise or fall in stages and be set sequentially in the register unit. Effect of the Invention

[0007] According to the present invention, in a receiving communication device, by adjusting the threshold voltage related to a squelch that can be received when a communication cable is connected, it is possible to prevent erroneous detection caused by variations in characteristics. [Brief description of the drawings]

[0008] [Figure 1] 1 is a diagram illustrating a hardware configuration of an image forming apparatus according to an embodiment of the present invention. [Diagram 2] 1 is a block diagram showing a configuration in which communication devices according to a first embodiment of the present invention communicate with each other. [Diagram 3] 2 is a block diagram showing in detail the connection configuration between a DC voltage selection unit and a squelch detection unit which are part of the communication device according to the first embodiment of the present invention; FIG. [Figure 4] 5 is a flowchart showing a control flow of a receiving communication device which is a communication device according to the first embodiment of the present invention. [Diagram 5] 4 is a diagram showing an example of the contents of a table in which squelch setting values ​​are stored in the communication device according to the first embodiment of the present invention. [Figure 6] 4A to 4C are diagrams illustrating an example of waveforms showing an example of basic adjustment by the communication device according to the first embodiment of the present invention. [Figure 7] 4 is a diagram showing an example of the contents of a table in which squelch setting values ​​are stored in the communication device according to the first embodiment of the present invention. [Figure 8] 10 is another flowchart showing the control flow of the receiving communication device which is the communication device according to the second embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0009] Hereinafter, the present invention will be described in detail with reference to the embodiments shown in the drawings. The present invention has the following configuration in order to prevent erroneous detection caused by characteristic variations in a receiving communication device by adjusting a threshold voltage related to a squelch that can be received when a communication cable is connected. In other words, the communication device of the present invention is a communication device comprising: a signal receiving unit that receives a differential signal transmitted from another communication device via a communication cable and converts it into binary data; a squelch detection unit that detects the presence or absence of a signal by comparing the amplitude level of the differential signal with a threshold voltage to detect whether a signal is present or not, and detects whether a non-squelched state or a squelched state; and a start pattern detection unit that, when the squelch detection unit detects the non-squelched state, sets the communication device to a receivable state when a predetermined start pattern can be detected from the binary data corresponding to the differential signal, and is characterized in comprising: a register unit that stores a squelch setting value associated with the threshold voltage; a DC voltage selection unit that selects two DC voltages from a plurality of DC voltages according to the squelch setting value output from the register unit and supplies them as threshold voltages to the squelch detection unit; and a squelch setting control unit that, when a receivable state is detected by the start pattern detection unit, controls the squelch setting value to be changed so as to rise or fall in stages and be sequentially set in the register unit. With the above configuration, in the receiving communication device, the threshold voltage related to the squelch that can be received when the communication cable is connected can be adjusted, thereby making it possible to prevent erroneous detection due to variations in characteristics.

[0010] The features of the present invention described above will be described in detail with reference to the following drawings. However, unless otherwise specified, the components, types, combinations, shapes, relative arrangements, etc. described in the embodiments are merely illustrative examples and do not intend to limit the scope of the present invention. The above-mentioned features of the present invention will be described in detail below with reference to the drawings.

[0011] <Hardware configuration> FIG. 1 is a diagram showing the hardware configuration of an image forming apparatus according to an embodiment of the present invention. <Main unit hardware configuration> First, the hardware configuration of the main unit 10 will be described. As shown in FIG. 1, the main body 10 has a CPU (Central Processing Unit) 11, a ROM (Read Only Memory) 12, a RAM (Random Access Memory) 13, a storage unit 14, a network I / F (Interface) 15, a communication device 16, an engine unit 17, a mobile sensor 18, and a system bus 19, etc.

[0012] The CPU 11 uses the RAM 13 as a work area to execute programs stored in the ROM 12 or the storage unit 14, thereby controlling the overall operation of the main body 10. For example, the CPU 11 uses the engine unit 17 to realize various functions such as the copy function, scanner function, fax function, and printer function described above.

[0013] The ROM 12 is a non-volatile memory that stores, for example, a BIOS (Basic Input / Output System) executed when the main body 10 is started, various settings, etc. The RAM 13 is a volatile memory used as a work area for the CPU 11, etc. The storage unit 14 is a non-volatile storage device that stores, for example, an OS (Operating System), application programs, various data, etc., and is composed of, for example, an HDD (Hard Disk Drive), an SSD (Solid State Drive), etc.

[0014] The network I / F 15 is a network interface, such as a wireless LAN or a wired LAN, for connecting the main body 10 to a network N and communicating with an external device connected to the network N. The communication device 16 is a communication interface for communicating between the main body 10 and the operation unit 20 via a USB cable 30. The communication device 16 performs USB communication via USB ports P1 to P3, and is controlled by a CPU 16a provided inside.

[0015] The engine unit 17 is hardware that performs general-purpose information processing and processing other than communication in order to realize functions such as a copy function, a scanner function, a fax function, and a printer function. The engine unit 17 includes, for example, a scanner (image reading unit) that scans and reads an image of a document, a plotter (image forming unit) that prints on a sheet material such as paper, a fax unit that performs fax communication, etc. Furthermore, the engine unit 17 may include specific options such as a finisher that sorts printed sheet materials and an ADF (automatic document feeder) that automatically feeds documents.

[0016] The moving object sensor 18 is a sensor that detects a moving object such as a human body within a detection range around the image forming apparatus 1, and may be, for example, a pyroelectric sensor. Note that in this embodiment, the image forming apparatus 1 does not necessarily have to have the moving object sensor 18.

[0017] A system bus 19 is connected to each of the above components, and transmits address signals, data signals, various control signals, and the like.

[0018] <Hardware configuration of the operation unit> Next, a description will be given of a hardware configuration of the operation unit 20. As shown in Fig. 1, the operation unit 20 includes a CPU 21, a ROM 22, a RAM 23, a flash memory 24, a network I / F 25, an operation panel 26, a communication device 27, an external connection I / F 28, an RF tag reader 103, a camera 104, and a system bus 29.

[0019] The CPU 21 controls the overall operation of the operation unit 20 by executing programs stored in the ROM 22, the flash memory 24, or the like using the RAM 23 as a work area.

[0020] The ROM 22 is a non-volatile memory that stores, for example, a BIOS executed when the operation unit 20 is started up, various settings, etc. The RAM 23 is a volatile memory used as a work area, etc. for the CPU 21. The flash memory 24 is a non-volatile storage device that stores, for example, an OS, application programs, various data, etc.

[0021] The network I / F 25 is a network interface such as a wireless LAN or a wired LAN for connecting the operation unit 20 to the network N and communicating with an external device connected to the network N.

[0022] Operation panel 26 accepts various inputs according to user operations and displays various information. Operation panel 26 is configured, for example, by a liquid crystal display (LCD) equipped with a touch panel function, but is not limited to this. The operation panel 26 may be configured, for example, with an organic EL (Electro Luminescence) display device equipped with a touch panel function. Furthermore, the operation panel 26 may be provided with an operation unit such as hardware keys and a display unit such as a lamp in addition to or instead of the operation panel 26.

[0023] The communication device 27 is an interface for communicating between the operation unit 20 and the main body 10 via a USB cable 30, and is, for example, a USB communication device. The external connection I / F 28 is an interface such as a USB for connecting an external device. A system bus 29 is connected to each of the above components, and transmits address signals, data signals, various control signals, and the like.

[0024] First Embodiment FIG. 2 is a block diagram showing a configuration in which communication devices according to the first embodiment of the present invention communicate with each other. In FIG. 2, two communication devices are connected opposite each other via a USB cable 30, and for ease of explanation, one is communication device 27 that plays the role of the transmitting host device, and the other is communication device 16 that plays the role of the receiving device. <Transmitting communication device> The transmitting communication device 27 includes a control unit 27a and a signal transmitting unit 27b. The control unit 27a converts, for example, a predetermined start pattern into binary data and outputs it to the signal transmitting unit. The signal transmitting unit 27b converts the binary data into a differential signal, and transmits the differential signal to the communication device 16 via a USB cable (communication cable) 30 connected to the two terminals.

[0025] <Receiving communication device> The receiving communication device 16 includes a signal receiving section 16b, a squelch detecting section 16c, a start pattern detecting section 16d, a register section 16e, a DC voltage selecting section 16f, a squelch setting control section 16g, and an abnormality determining section 16i. The signal receiving unit 16b receives a differential signal transmitted from the communication device 27 via a USB cable (communication cable) 30 connected to two terminals, and converts the differential signal into binary data. The squelch detection unit 16c is connected to two terminals, and detects the presence or absence of a signal by comparing the amplitude level of the differential signal with a threshold voltage, thereby detecting a non-squelch state (signal present) and a squelch state (no signal present). In this embodiment, for the sake of simplicity, the squelch detection unit 16c is configured to be provided separately from the signal receiving unit 16b, but the squelch detection unit 16c may be configured to be incorporated inside the signal receiving unit 16b. When the squelch detection unit 16c detects a non-squelch state, the start pattern detection unit 16d transitions to a reception enabled state when a predetermined start pattern can be detected from binary data corresponding to the differential signal.

[0026] The register unit 16e stores squelch setting values ​​(data) associated with threshold voltages. The DC voltage selection unit 16f selects two DC voltages from the plurality of DC voltages according to the squelch setting value (data) output from the register unit 16e, and supplies them to the squelch detection unit 16c as threshold voltages. Note that the squelch setting value is a value (data) associated with the threshold voltage (analog voltage) supplied to the squelch detection unit 16c, and the plurality of threshold voltages are the high-level region voltage V SH The threshold voltages are lower than the lower voltage V SL 1. The voltage is in steps above 100V.

[0027] When the start pattern detection section 16d detects a receivable state, the squelch setting control section 16g controls the squelch setting value (data) to be changed so as to increase stepwise and to be sequentially set in the register section 16e. The abnormality determination unit 16i has a function of determining that a communication error has occurred when the signal does not fall within the range of the squelch setting value. That is, the abnormality determination unit 16i determines that a communication error has occurred when the start pattern detection unit 16d is not in a receivable state. Between the signal transmitting unit 27b and the signal receiving unit 16b, ie, in the PHY, physical methods related to network connection and data transmission, such as the data representation method on the transmission path and the interface shape, are specified.

[0028] The squelch setting control section 16g includes a table 16h that stores squelch setting values ​​(data). The squelch setting control section 16g changes the squelch setting value so as to increase stepwise, sequentially sets it in the register section 16e, and controls so that the squelch setting values ​​are sequentially stored in the table 16h.

[0029] When the start pattern detection unit 16d detects a receivable state, the squelch setting control unit 16g controls so as to associate a success flag with the squelch setting value (data) used at the time of the detection and store the same in the table 16h.

[0030] The squelch setting control section 16g reads out success flags associated with different squelch setting values ​​from the table 16h, and counts the number of success flags to obtain the success level number.

[0031] If the number of success stages is an odd number, the squelch setting control section 16g controls so as to set the receivable squelch setting value to the center value of the success stages.

[0032] If the number of success stages is an even number, the squelch setting control section 16g controls so as to set the receivable squelch setting value one stage closer to the maximum value.

[0033] The squelch setting control unit 16g controls the squelch setting value, which is changed so as to rise stepwise, to be set in the register unit 16e in sequence, and when the start pattern detection unit 16d detects at a certain stage that a receivable state has switched to an unreceivable state, controls the squelch setting value set in the register unit 16e to be switched to a value lower by one or two stages.

[0034] <DC voltage selection section> FIG. 3 is a block diagram showing in detail the connection configuration between a DC voltage selection unit and a squelch detection unit which are part of the communication device according to the first embodiment of the present invention. The register section 16e stores the squelch setting value set by the squelch setting control section 16g, and outputs the stored squelch setting value to a selector switch SL of the DC voltage selection section 16f. The DC voltage selection unit 16f selects two DC voltages from a plurality of DC voltages according to the squelch setting value output from the register unit 16e, and supplies the selected two DC voltages to two terminals.

[0035] The DC voltage selection unit 16f includes a selector switch SL and a voltage generation unit VG. As shown in FIG. 3, the USB communication method is a serial communication method in which a differential signal is transmitted using two signal lines, D+ and D-, included in a USB cable (communication cable) 30. As shown in FIG. 3, the D+ port and the D- port are connected to a signal receiving unit 16b and a squelch detecting unit 16c via terminals P1 and P2, respectively, from the signal path. The DC voltage selection unit 16f includes a voltage generation unit VG that divides voltage by a plurality of resistors R1 connected in series between a power supply VCC and a ground GND to generate various voltages, and a high-level threshold voltage V rH , lower threshold voltage V rL The setting of the selector switch SL is determined by the data (D H D L ) is determined by the squelch setting.

[0036] The DC voltage selection unit 16f selects two DC voltages from the plurality of DC voltages according to the squelch setting value output from the register unit 16e, and outputs the high-level threshold voltage V rH , lower threshold voltage V rL Supplied as. That is, in the squelch detection unit 16c, two threshold voltages for comparison with the amplitude levels of the differential signals input from the D+ port and the D- port are switched by the selector switch SL, so that two high threshold voltages V rH , lower threshold voltage V rL This is a configuration that adjusts the above.

[0037] <Control flow> FIG. 4 is a flowchart showing a control flow of the receiving communication device 16 which is a communication device according to the first embodiment of the present invention. The feature of the flowchart according to the first embodiment shown in Fig. 4 is that the squelch setting control section 16g controls the register section 16e to sequentially set the squelch setting value (data) so as to increase in stages when the start pattern detection section 16d detects a receivable state. The features of the flowchart will be described in detail below. In step S1, the squelch setting control unit 16g sets the minimum (Min) squelch setting value (D H D L ) (for example, “11”) is set in the register section 16e. Here, for example, data (D H D L When (11) is set as the data (D H D L ) (11) value, the selector switch SL is operated, and which voltage generated by the voltage generating unit VG is sent to the squelch detection unit 16c as the high threshold voltage V rH , lower threshold voltage V rL Select whether to output as

[0038] In step S5, communication by differential signals is performed between the communication device 27 and the communication device 16 via the USB cable (communication cable) 30. At this time, the communication device 27 alternately transmits to the communication device 16 a squelch state in which no signal is present and a non-squelch state packet signal having a predetermined start pattern in a time-division manner. In step S10, in the communication device 16, the squelch setting control unit 16g determines whether the start pattern detection unit 16d has successfully received a packet signal representing a predetermined start pattern transmitted from the communication device 27 via the signal receiving unit 16b. That is, if the start pattern detection unit 16d has successfully received a packet signal representing a predetermined start pattern transmitted from the communication device 27, the squelch setting control unit 16g proceeds to step S15, and if the communication device 16 has not successfully received the predetermined start pattern transmitted from the host device, the squelch setting control unit 16g proceeds to step S25.

[0039] If the answer is Yes in step S10, in step S15, the squelch setting control unit 16g controls the squelch setting value (data) used at the time of detection to be associated with a success flag and stored in the table 16h when the start pattern detection unit 16d detects a receivable state. Next, in step S20, the squelch setting control unit 16g sets the squelch setting value on the communication device 16 side, which is increased by one step from the current value, in the register unit 16e, and the process returns to step S5. For example, if the current squelch setting value is (11), when the process of step S20 is executed, the squelch setting value is changed to (22), which is increased by one step. In step S5, communication is performed between the communication device 27 and the communication device 16 via the USB cable (communication cable) 30 using differential signals.

[0040] On the other hand, if the result in step S10 is No, in step S25, the squelch setting control unit 16g stores a failure flag in the table 16h in association with the squelch setting value. Next, in step S30, the squelch setting control section 16g determines whether or not the squelch setting value on the communication device 16 side is the minimum value. If the squelch setting value on the communication device 16 side is at the minimum state, the squelch setting control section 16g proceeds to step S35, whereas if the squelch setting value on the communication device 16 side is not at the minimum value, the squelch setting control section 16g proceeds to step S40.

[0041] If the result of step S30 is Yes, in step S35, the squelch setting control unit 16g cannot set the squelch value to a value higher than the minimum value, so that the abnormality determination unit 16i determines that a communication abnormality has occurred and issues an abnormality notification. As the abnormality notification, the abnormality determination unit 16i may be configured to notify the user by illuminating the LED 1.

[0042] If the answer is No in step S30, in step S40, the squelch setting control unit 16g sequentially reads out success flags (e.g., "○" marks) associated with different squelch setting values ​​from the table 16h, and counts the number of success flags to obtain the success level number. In step S45, the squelch setting control section 16g adjusts the squelch setting value on the communication device 16 side, and sets it to a center value that enables connection. That is, when the number of success stages is an odd number, the squelch setting control unit 16g controls so as to set the receivable squelch setting value to the center value of the success stages. On the other hand, when the number of success stages is an even number, the squelch setting control section 16g controls so as to set the receivable squelch setting value one stage closer to the maximum value.

[0043] FIG. 5 is a diagram showing a first example of the contents of a table in which squelch setting values ​​are stored in the communication device according to the first embodiment of the present invention. Table 16h shown in FIG. 5 is made up of squelch setting values ​​and communication test step numbers in the horizontal direction. H D L ) and D H is the left side of the number, and D L is the right side of the numerical value, and for example, (11), (22), (33), (44), (55), and (66) are assigned. The communication test stage number has, for example, 1 to 7. As shown in Figure 5, the squelch setting value (D H D L When the minimum value (11) is reached, the number of communication test stages is set to 1, and the high threshold voltage V selected by the selector switch SL at this time is rH , lower threshold voltage V rL is supplied to the squelch detection unit 16c, and when the start pattern detection unit 16d can normally receive a packet signal representing a predetermined start pattern transmitted from the communication device 27, a success flag is set to the squelch setting value (D H D L ) and stored in table 16h. That is, as a result of the first communication test being performed using the minimum squelch setting value (11), a success flag "O" (OK) is stored in table 16h.

[0044] Next, a second communications test is performed using a value (22) that is one step higher than the first squelch setting value, and the result is stored as "O" (OK) in table 16h. Next, a third communication test is performed using a value (33) that is one step higher than the second squelch setting value, and the result is stored as "O" (OK) in table 16h. Next, a fourth communication test is performed using a value (44) that is one step higher than the third squelch setting value, and the result is stored as "x" (NG) in table 16h. The squelch setting control section 16g sequentially reads out success flags associated with different squelch setting values ​​from the table 16h, and counts the number of success flags to obtain the success level number. The number of test results that were "○" (OK) was three, that is, the number was odd, so it would be appropriate to use the second squelch setting value (22) as the center value.

[0045] <Waveform showing basic adjustment example> FIG. 6 is a diagram showing an example of a waveform illustrating an example of basic adjustment by the communication device according to the first embodiment of the present invention. A differential signal is transmitted using two signal lines, D+ and D-, included in the USB cable (communication cable) 30. At this time, the waveforms of the two signal lines represent the Eye opening. The squelch setting control unit 16g of the present embodiment 1 controls the threshold voltage to be switched sequentially from the inside to the outside of the eye opening. That is, the squelch setting control unit 16g controls the squelch setting value (data) to be changed so as to increase stepwise and to be sequentially set in the register unit 16e. The squelch detection unit 16c detects the presence or absence of the differential signal S depending on whether the amplitude level of the differential signal S exceeds a threshold voltage, and detects a non-squelch state (signal present) or a squelch state (signal absent).

[0046] <First Time> That is, the upper threshold voltage V associated with the first squelch setting value (11) rH , lower threshold voltage V rL is supplied to the squelch detection unit 16c. The lower region voltage V SL and the lower threshold voltage V rL The potential difference betweenL is positive, V SL -V rL = ΔV L >0 (1) When And the higher voltage V of the differential signal S SH and the upper threshold voltage V rH The potential difference between H is positive, V SH -V rH = ΔV H >0 (2) When As a result of the first communications test using the minimum squelch setting value (11), a success flag of ◯ (OK) is stored in table 16h.

[0047] <2nd time> The upper threshold voltage V associated with the second squelch setting (22), which is one step higher than the first squelch setting (11). rH , lower threshold voltage V rL is supplied to the squelch detection unit 16c. The lower region voltage V SL and the lower threshold voltage V rL The potential difference between L is positive, V SL -V rL = ΔV L >0 (3) When And the higher voltage V of the differential signal S SH and the upper threshold voltage V rH The potential difference between H is positive, V SH -V rH = ΔV H >0 (4) When As a result of the second communications test using the squelch setting value (22), a success flag "O" (OK) is stored in table 16h.

[0048] <Third Time> The upper threshold voltage V associated with the third squelch setting (33), which is one step above the second squelch setting (22). rH , lower threshold voltage V rL is supplied to the squelch detection unit 16c. The lower region voltage V SL and the lower threshold voltage V rL The potential difference between L is positive, V SL -V rL = ΔV L >0 (5) When And the higher voltage V of the differential signal S SH and the upper threshold voltage V rH The potential difference between H is positive, V SH -V rH = ΔV H >0 (6) When As a result of the third communications test using the squelch setting value (33), a success flag "O" (OK) is stored in table 16h.

[0049] <4th time> The upper threshold voltage V associated with the fourth squelch setting (44), which is one step above the third squelch setting (33). rH , lower threshold voltage V rL is supplied to the squelch detection unit 16c. The lower region voltage V SL and the lower threshold voltage V rL The potential difference between L is positive, V SL -V rL = ΔV L >0 (7) When it does not satisfy And the higher voltage V of the differential signal S SH and the upper threshold voltage V rH The potential difference between H is positive, V SH -V rH = ΔV H >0 (8) When it does not satisfy As a result of the fourth communications test using the squelch setting value (44), a failure flag "x" (NG) is stored in table 16h. The squelch setting control section 16g sequentially reads out success flags associated with different squelch setting values ​​from the table 16h, and counts the number of success flags to obtain the success level number. The number of test results that were "○" (OK) was three, that is, the number was odd, so it would be appropriate to use the second squelch setting value (22) as the center value.

[0050] FIG. 7 is a diagram showing a second example of the contents of a table in which squelch setting values ​​are stored in the communication device according to the first embodiment of the present invention. As shown in Figure 7, the squelch setting value (D H D L ) is the minimum value (11), the communication test stage number is set to "1", and the high threshold voltage V selected by the selector switch SL at this time is rH , lower threshold voltage V rL is supplied to the squelch detection unit 16c, and when the start pattern detection unit 16d can normally receive a packet signal representing a predetermined start pattern transmitted from the communication device 27, a success flag is set to the squelch setting value (D H D L ) and stored in table 16h. That is, as a result of the first communication test using the minimum squelch setting value (11), "O" (OK) is stored in table 16h.

[0051] Next, a second communications test is performed using a squelch setting value (22) that is one step higher than the first squelch setting value, and the result is that "O" (OK) is stored in table 16h as a success flag. Next, a third communications test is performed using a squelch setting value (33) that is one step higher than the second squelch setting value, and as a result, "O" (OK) is stored in table 16h as a success flag. Next, a fourth communication test is performed using a value (44) that is one step higher than the third squelch setting value, and as a result, "O" (OK) is stored in table 16h as a success flag. Next, a fifth communications test is performed using a squelch setting value (55) that is one step higher than the fourth squelch setting value, and as a result, "x" (NG) is stored in table 16h as a failure flag. The squelch setting control section 16g sequentially reads out success flags associated with different squelch setting values ​​from the table 16h, and counts the number of success flags to obtain the success level number. The number of test results that were "○" (OK) was four, which means that the number is an even number, so the center value cannot be determined. Therefore, it is appropriate to add a margin and use a value that is one step closer to the maximum value as the squelch setting value (33).

[0052] According to this embodiment 1, the DC voltage selection unit 16f selects two DC voltages from a plurality of DC voltages according to the squelch setting value output from the register unit 16e and supplies them as threshold voltages to the squelch detection unit 16c. When the start pattern detection unit 16d detects a receivable state, the squelch setting control unit 16g controls the squelch setting value to increase stepwise and be set sequentially in the register unit 16e. By adjusting the squelch setting value to a receivable value when the USB cable 30 is connected, it is possible to prevent erroneous detection due to variations in characteristics. This makes it possible to prevent erroneous detection of the squelch state and the non-squelch state caused by the characteristic variations among individual communication devices 16. Furthermore, since the occurrence of communication errors can be prevented, the recovery process can be reduced.

[0053] <Second embodiment> The block diagram showing the configuration of a communication device according to the second embodiment of the present invention is characterized in that it comprises the following components from among those shown in FIG. When the start pattern detection section 16d detects a receivable state, the squelch setting control section 16g controls the squelch setting value (data) to be changed so as to decrease stepwise and to be sequentially set in the register section 16e. The squelch setting control section 16g controls the squelch setting value to be changed so as to decrease stepwise and set in sequence in the register section 16e, and also controls the squelch setting values ​​to be stored in sequence in the table 16h. The squelch setting control unit 16g controls the squelch setting value, which has been changed so as to descend stepwise, to be set in the register unit 16e in sequence, and when the start pattern detection unit 16d detects at a certain stage that a receivable state has switched to an unreceivable state, controls the squelch setting value set in the register unit 16e to be switched to a value lower by one or two stages.

[0054] <Control flow> FIG. 8 is another flowchart showing the control flow of the receiving communication device 16 which is a communication device according to the second embodiment of the present invention. The feature of the flowchart according to the second embodiment shown in Fig. 8 is that the squelch setting control section 16g controls the register section 16e to sequentially set the squelch setting value (data) to a stepwise lower value when the start pattern detection section 16d detects a receivable state. The features of the flowchart will be described in detail below.

[0055] In the squelch setting control section 16g of the second embodiment, the threshold voltage is controlled to be switched sequentially from the outside to the inside of the eye opening. That is, the squelch setting control section 16g controls the squelch setting value (data) to be changed so as to decrease stepwise and to be sequentially set in the register section 16e.

[0056] In step S101, the squelch setting control unit 16g sets the maximum (Max) squelch setting value (D H D L ) (for example, “66”) is set in the register section 16e. Here, for example, data (D H D L When (66) is set as the data (D H D L The selector switch SL is operated according to the value (66) of the voltage generator VG, and the voltage generated by the voltage generator VG is supplied to the squelch detector 16c as the high threshold voltage V rH , lower threshold voltage V rL Select whether to output as

[0057] In step S105, communication by differential signals is performed between the communication device 27 and the communication device 16 via the USB cable (communication cable) 30. At this time, the communication device 27 alternately transmits to the communication device 16 a squelch state in which no signal is present and a non-squelch state packet signal having a predetermined start pattern in a time-division manner. In step S110, in the communication device 16, the squelch setting control unit 16g determines whether the start pattern detection unit 16d has successfully received a packet signal representing a predetermined start pattern transmitted from the communication device 27 via the signal receiving unit 16b. That is, if the start pattern detection unit 16d has successfully received a packet signal representing a predetermined start pattern transmitted from the communication device 27, the squelch setting control unit 16g proceeds to step S115, and on the other hand, if the communication device 16 has not successfully received the predetermined start pattern transmitted from the communication device 27, the squelch setting control unit 16g proceeds to step S120.

[0058] If the answer is Yes in step S110, in step S115, the squelch setting control unit 16g controls so that, when the start pattern detection unit 16d detects a receivable state, a success flag is associated with the squelch setting value (data) used at the time of the detection and stored in the table 16h. Next, the process proceeds to step S125. On the other hand, if the result in step S110 is No, in step S120, the squelch setting control unit 16g stores a failure flag in the table 16h in association with the squelch setting value. Next, the process proceeds to step S125. Next, in step S125, the squelch setting control section 16g sets in the register section 16e a squelch setting value on the communication device 16 side that is one step lower than the current value, and the process proceeds to step S130.

[0059] Next, in step S130, the squelch setting control section 16g determines whether or not the squelch setting value on the communication device 16 side is the minimum value. If the squelch setting value on the communication device 16 side is at the minimum state, the squelch setting control section 16g proceeds to step S135, whereas if the squelch setting value on the communication device 16 side is not at the minimum value, the squelch setting control section 16g returns to step S105. In step S105, communication is performed between the communication device 27 and the communication device 16 via the USB cable (communication cable) 30 using differential signals.

[0060] If the answer is Yes in step S130, in step S135, the squelch setting control unit 16g sequentially reads out success flags associated with different squelch setting values ​​from the table 16h, and counts the number of success flags to obtain the success level number. In step S140, the squelch setting control section 16g adjusts the squelch setting value on the communication device 16 side, and sets it to a center value that enables connection. That is, when the number of success stages is an odd number, the squelch setting control unit 16g controls so as to set the receivable squelch setting value to the center value of the success stages. On the other hand, when the number of success stages is an even number, the squelch setting control section 16g controls so as to set the receivable squelch setting value one stage closer to the maximum value.

[0061] According to the second embodiment, the DC voltage selection unit 16f selects two DC voltages from a plurality of DC voltages according to the squelch setting value output from the register unit 16e and supplies them as threshold voltages to the squelch detection unit 16c. When the start pattern detection unit 16d detects a receivable state, the squelch setting control unit 16g controls the squelch setting value to be gradually decreased and sequentially set in the register unit 16e. By adjusting the squelch setting value to a receivable value when the USB cable 30 is connected, it is possible to prevent erroneous detection due to variations in characteristics. This makes it possible to prevent erroneous detection of the squelch state and the non-squelch state caused by the characteristic variations among individual communication devices 16. Furthermore, since the occurrence of communication errors can be prevented, the recovery process can be reduced.

[0062] <Summary of the functions and effects of the embodiment> <First aspect> The communication device of this embodiment is equipped with a signal receiving unit 16b that receives a differential signal transmitted from another communication device via a USB cable and converts it into binary data, a squelch detection unit 16c that detects the presence or absence of a signal by comparing the amplitude level of the differential signal with a threshold voltage to detect whether a signal is present or not, and detects whether a non-squelched state or a squelched state, and a start pattern detection unit 16d that, when the squelch detection unit 16c detects the non-squelched state, sets the communication device to a receivable state when a predetermined start pattern can be detected from the binary data corresponding to the differential signal, and is characterized in that the communication device is equipped with a register unit 16e that stores a squelch setting value associated with the threshold voltage, a DC voltage selection unit 16f that selects two DC voltages from a plurality of DC voltages according to the squelch setting value output from the register unit 16e and supplies them to the squelch detection unit 16c as threshold voltages, and a squelch setting control unit 16g that, when a receivable state is detected by the start pattern detection unit 16d, controls the squelch setting value to be changed so as to rise or fall in stages and be sequentially set in the register unit 16e. According to this embodiment, the DC voltage selection unit 16f selects two DC voltages from a plurality of DC voltages according to the squelch setting value output from the register unit 16e and supplies them as threshold voltages to the squelch detection unit 16c. When the start pattern detection unit 16d detects a receivable state, the squelch setting control unit 16g controls the squelch setting value to be changed so as to rise or fall in stages and be sequentially set in the register unit 16e. By adjusting the squelch setting value to a receivable value when the USB cable 30 is connected, it is possible to prevent erroneous detection due to variations in characteristics. This makes it possible to prevent erroneous detection of the squelch state and non-squelch state due to variations in characteristics between individual communication devices 16.

[0063] <Second aspect> The squelch setting control unit 16g of this embodiment is provided with a table 16h that stores the squelch setting values, and the squelch setting control unit 16g is characterized in that it changes the squelch setting value so as to rise or fall in a stepwise manner, sequentially sets the squelch setting value in the register unit 16e, and controls so as to sequentially store the squelch setting values ​​in the table 16h. According to this embodiment, the squelch setting control unit 16g changes the squelch setting value so as to increase or decrease in a stepwise manner and sequentially sets it in the register unit 16e, and also controls the squelch setting values ​​to be stored sequentially in the table 16h, thereby making it possible to store the squelch setting values ​​sequentially in the table 16h.

[0064] <Third aspect> The squelch setting control unit 16g of this embodiment is characterized in that, when a receivable state is detected by the start pattern detection unit 16d, it controls so that a success flag is associated with the squelch setting value used at the time of the detection and stored in the table 16h. According to this embodiment, when a receiving state is detected by the start pattern detection unit 16d, the squelch setting control unit 16g can perform control so as to associate a success flag with the squelch setting value used at the time of the detection and store it in the table 16h.

[0065] <Fourth aspect> The squelch setting control section 16g of this embodiment is characterized by performing control to read out success flags associated with different squelch setting values ​​from the table 16h, and count the number of success flags to obtain the success level number. According to this embodiment, the squelch setting control section 16g can perform control to read out success flags associated with different squelch setting values ​​from the table 16h, and count the number of success flags to obtain the success level number.

[0066] <Fifth aspect> The squelch setting control section 16g of this embodiment is characterized in that, when the number of success stages is an odd number, it performs control so as to set the receivable squelch setting value to the center value of the success stages. According to this embodiment, when the number of success stages is an odd number, the squelch setting control section 16g can perform control so as to set the receivable squelch setting value to the center value of the success stages. This makes it possible to prevent erroneous detection in the squelch detection section, suppress the occurrence of communication errors, and further reduce recovery processing, thereby providing a communication environment enabling stable communication.

[0067] <Sixth aspect> The squelch setting control section 16g of this embodiment is characterized in that, when the number of success stages is an even number, it controls so that the receivable squelch setting value is set one stage closer to the maximum value. According to this embodiment, when the number of success stages is an even number, the squelch setting control unit 16g can perform control so as to set the receivable squelch setting value one stage closer to the maximum value. This makes it possible to prevent erroneous detection due to the effects of noise, etc. in the squelch detection section, suppress the occurrence of communication errors, and further reduce recovery processing, thereby providing a communication environment enabling stable communication.

[0068] <Seventh aspect> The squelch setting control unit 16g of this embodiment is characterized in that it controls the squelch setting value, which is changed so as to rise or fall in a stepwise manner, to be set in the register unit 16e in sequence, and when the start pattern detection unit 16d detects at a certain stage that a receivable state has switched to an unreceivable state, it controls the squelch setting value set in the register unit 16e to be switched to a value lower by one or two stages. According to this embodiment, the squelch setting control unit 16g controls the squelch setting value, which is changed so as to rise or fall in a stepwise manner, to be set in the register unit 16e in sequence, and when the start pattern detection unit 16d detects at a certain stage that a receivable state has switched to an unreceivable state, the squelch setting value set in the register unit 16e can be controlled to be switched to a value lower by one or two stages. This makes it possible to prevent erroneous detection of the squelch state and non-squelch state due to variations in characteristics between individual communication devices 16.

[0069] <Eighth aspect> The image forming apparatus of this aspect is characterized by including the communication device 16 according to any one of the first to seventh aspects. According to this aspect, the image forming apparatus 1 is provided with the communication device 16 described in any one of the first to seventh aspects, and when the USB cable 30 is connected to the communication device 16 provided in the image forming apparatus 1, the squelch setting value is adjusted to a receivable value, thereby making it possible to prevent erroneous detection due to variations in characteristics. This makes it possible to prevent erroneous detection of the squelch state and the non-squelch state caused by variations in characteristics between individual communication devices 16 provided in the image forming apparatus. [Explanation of symbols]

[0070] 1...image forming apparatus, 16...communication device, 16a...CPU, 16b...signal receiving unit, 16c...squelch detection unit, 16d...start pattern detection unit, 16e...register unit, 16f...DC voltage selection unit, 16g...squelch setting control unit, 16h...table, 16i...abnormality determination unit, 27...communication device, 27a...control unit, 27b...signal transmission unit, 30...USB cable (communication cable) [Prior art documents] [Patent documents]

[0071] [Patent Document 1] Patent Publication No. 2022-69881

Claims

1. a signal receiving unit that receives a differential signal transmitted from another communication device via a communication cable and converts the differential signal into binary data; a squelch detection unit that detects the presence or absence of a signal by comparing an amplitude level of the differential signal with a threshold voltage, and detects a non-squelch state and a squelch state; a start pattern detection unit that, when the squelch detection unit detects a non-squelch state, transitions to a reception-enabled state when a predetermined start pattern can be detected from the binary data corresponding to the differential signal, a register section for storing a squelch setting value associated with the threshold voltage; a DC voltage selection unit that selects two DC voltages from a plurality of DC voltages according to the squelch setting value output from the register unit, and supplies the selected two DC voltages to the squelch detection unit as threshold voltages; and a squelch setting control unit that controls the squelch setting value to be changed so as to increase or decrease in stages and to be sequentially set in the register unit when a receivable state is detected by the start pattern detection unit.

2. The squelch setting control unit includes a table for storing squelch setting values, The communication device according to claim 1, characterized in that the squelch setting control section controls the squelch setting value to be changed so as to increase or decrease in a stepwise manner and sequentially set in the register section, and controls the squelch setting value to be stored in the table sequentially.

3. The communication device according to claim 2, characterized in that the squelch setting control unit controls so that, when a receiving state is detected by the start pattern detection unit, a success flag is associated with the squelch setting value used at the time of the detection and stored in the table.

4. 4. The communication device according to claim 3, wherein the squelch setting control unit reads out success flags associated with different squelch setting values ​​from the table, and counts the number of success flags to obtain a success level number.

5. 5. The communication device according to claim 4, wherein the squelch setting control section controls so that, when the number of success stages is an odd number, a receivable squelch setting value is set to a center value of the success stages.

6. 5. The communication device according to claim 4, wherein the squelch setting control section controls to set the receivable squelch setting value one step closer to a maximum value when the number of success stages is an even number.

7. The communication device according to claim 1, characterized in that the squelch setting control unit controls the squelch setting value changed to increase or decrease in stages to be set in the register unit sequentially, and when the start pattern detection unit detects at a certain stage that a receivable state has switched to an unreceivable state, the squelch setting value set in the register unit is controlled to be switched to a value lower by one or two stages.

8. An image forming apparatus comprising the communication device according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Differential signal receiver

    JP2010045737A

  • Serial communication circuit, serial communication control method, and semiconductor integrated circuit device

    JP2012165190A

  • Reception circuit and communication system

    JP2016143977A

  • Communication device, image formation device, and control method of communication device

    JP2022069881A