1. A communication device for achieving packet synchronization with respect to data input from an external device, the communication device comprising:
a first detecting unit configured to detect a check code by obtaining a desired check result by performing a check for each time a unit data amount of data is input, wherein the check is based on a predetermined amount of first input data being set as the check code and input data preceding the first input data being set as check target data;
a first header analysis unit configured to estimate that a front position of the check target data at the time when said first detecting unit detects the check code corresponds to a front position of a header of a first packet, and to read a packet length of said first packet from the header of the first packet;
a first determination unit configured to determine whether a length of the check target data at the time when said first detecting unit detects the check code matches the packet length of the first packet read by said first header analysis unit; and
a second header analysis unit configured to estimate that a front position of input data succeeding the check code detected by the first detecting unit corresponds to a front position of a header of a second packet succeeding said first packet, and to read a packet length of said second packet from the header of the second packet.
2. The communication device according to claim 1, further comprising:
a measuring unit configured to measure an input data length starting from the front position of the header of said second packet, every time the unit data amount of the data is input;
a second detecting unit configured to detect the check code by generating a predetermined amount of the check code corresponding to process target data every time the unit data amount of the data is input, the process target data corresponding to the input data starting from the front position of the header of said second packet, the check code being detected when the generated check code matches said predetermined amount of the input data succeeding the process target data; and
a second determination unit configured to determine whether a length of said process target data at the time when said second detecting unit detects the check code matches the input data length measured by said measuring unit.
3. The communication device according to claim 2, wherein
after said first determination unit determines that the length of the check target data matches the packet length of the first packet, said second header analysis unit sequentially reads packet lengths of packets succeeding the first packet to achieve synchronization of the packets succeeding the first packet.
4. The communication device according to claim 3, wherein
when said second determination unit determines that the length of the process target data does not match the input data length, said first detecting unit is controlled not to detect the check code.
5. The communication device according to claim 2, further comprising:
a double buffer configuration by which input of the data and output of said second packet are performed in parallel along a time axis.
6. The communication device according to claim 1, wherein
said first packet and said second packet are IP (Internet Protocol) packets, and
said first header analysis unit and said second header analysis unit respectively read the packet lengths of the first packet and the second packet from headers of the IP packets, according to version information located at a predetermined position in the headers of the IP packets.
7. A packet synchronization method for achieving packet synchronization with respect to data input from an external device, the packet synchronization method comprising:
a step of detecting a check code by obtaining a desired check result by performing a check for each time a unit data amount of data is input, wherein the check is based on a predetermined amount of first input data being set as the check code and input data preceding the first input data being set as check target data;
a step of estimating that a front position of the check target data at the time when said check code is detected corresponds to a front position of a header of a first packet, and of reading a packet length of said first packet from the header of the first packet;
a step of determining whether a length of the check target data at the time when said check code is detected matches said packet length of the first packet that has been read; and
a step of estimating that a front position of input data succeeding said check code that has been detected corresponds to a front position of a header of a second packet succeeding said first packet, and of reading a packet length of said second packet from the header of the second packet.
8. The packet synchronization method according to claim 7, further comprising:
a step of measuring an input data length starting from the front position of the header of said second packet, every time the unit data amount of the data is input;
a step of detecting the check code by generating a predetermined amount of the check code corresponding to process target data every time the unit data amount of the data is input, the process target data corresponding to the input data starting from the front position of the header of said second packet, the check code being detected when the generated check code matches said predetermined amount of the input data succeeding the process target data; and
a step of determining whether a length of said process target data at the time when the check code is detected matches said input data length that has been measured.
9. A communication system comprising:
a first communication device; and
a second communication device that achieves packet synchronization with respect to data input from the first communication device, wherein
the first communication device attaches check codes to packets before outputting the data to the second communication device, and
the second communication device includes
a first detecting unit configured to detect a check code by obtaining a desired check result by performing a check for each time a unit data amount of data is input, wherein the check is based on a predetermined amount of first input data being set as the check code and input data preceding the first input data being set as check target data;
a first header analysis unit configured to estimate that a front position of the check target data at the time when said first detecting unit detects the check code corresponds to a front position of a header of a first packet, and to read a packet length of said first packet from the header of the first packet;
a first determination unit configured to determine whether a length of the check target data at the time when said first detecting unit detects the check code matches the packet length of the first packet read by said first header analysis unit; and
a second header analysis unit configured to estimate that a front position of input data succeeding the check code detected by the first detecting unit corresponds to a front position of a header of a second packet succeeding said first packet, and to read a packet length of said second packet from the header of the second packet.
10. The communication system according to claim 9, wherein
the second communication device further includes
a measuring unit configured to measure an input data length starting from the front position of the header of said second packet, every time the unit data amount of the data is input;
a second detecting unit configured to detect the check code by generating a predetermined amount of the check code corresponding to process target data every time the unit data amount of the data is input, the process target data corresponding to the input data starting from the front position of the header of said second packet, the check code being detected when the generated check code matches said predetermined amount of the input data succeeding the process target data; and
a second determination unit configured to determine whether a length of said process target data at the time when said second detecting unit detects the check code matches the input data length measured by said measuring unit.
The claims below are in addition to those above.
All refrences to claim(s) which appear below refer to the numbering after this setence.
1. A medical instrument system using a diathermic snare and an endoscope in combination with each other, the endoscope including a substantially cylindrical cap section mounted on a distal end of an elongated inserting section which is to be inserted into a body cavity,
wherein the cap section has a flange-shaped projection that projects inward from the inner circumference surface of the distal end;
wherein the diathermic snare comprises:
a flexible sheath;
an operation wire inserted into the flexible sheath to be movable forwards and backwards: and
a snare wire coupled to the distal end of the operation wire; and
wherein, when the endoscope and the diathermic snare is used in combination with each other, a loop section which expands to one of a substantially circular or elliptical loop when the snare wire is projected from the sheath is formed, the loop section expanding along the inner circumference of the cap section,
the medical instrument system comprising a distal-end projection which projects in the direction that intersects a plane of the loop at the distal end of the loop section and is fitted on an inner wall of the cap section when the loop section expands along the inner circumference of the cap section.
2. The medical instrument system according to claim 1, wherein the cap section has a main body that is made of transparent materials.
3. The medical instrument system according to claim 1, wherein the flange-shaped projection projects toward an inner surface of the cap section in proximity to a leading edge of the cap section.
4. The medical instrument system according to claim 1, wherein:
the cap section has a fixing section at the proximal end thereof, the fixing section being fixed to a distal end of the endoscope; and
the medical instrument system further comprises a soft tube having an open distal end and an open proximal end, the soft tube being arranged alongside the inserting section of the endoscope when the fixing section is fixed to the distal end of the endoscope, and the open distal end communicating with an inside of the cap section.
5. The medical instrument system according to claim 1, wherein the bending distal-end projection of the loop section bends at a bend angle which is almost perpendicular to the plane formed by the loop section.
6. The medical instrument system according to claim 1, wherein the bending distal-end projection of the loop section bends at an acute bend angle corresponding to an acute angle to the plane formed by the loop section.
7. The medical instrument system according to claim 1, wherein:
the cap section has an inclined plane corresponding to a plane of the distal end of the cap section which is inclined to the axial direction of the sheath; and
a bending portion of the loop section bends in the axial direction of the sheath.
8. The medical instrument system according to claim 7, wherein the plane formed by the loop section has an inclination angle that is set such that the plane is almost parallel to the inclined plane of the cap section.
9. The medical instrument system according to claim 7, wherein:
the inclined plane of the cap section inclines at an acute angle in the axial direction of the sheath; and
the bending portion of the loop section bends at a bend angle that is equal to an inclination angle of the inclined plane.
10. The medical instrument system according to claim 1, wherein the loop section has a diameter that is equal to an inside diameter of the cap section.
11. The medical instrument system according to claim 1, wherein the loop section rotates around an axis of the sheath.
12. The diathermic snare according to claim 1, wherein the distal-end projection is bendable at a substantially right angle with respect to the plane formed by the loop section.
13. The diathermic snare according to claim 1, wherein the distal-end projection is bendable at an acute angle with respect to the plane formed by the loop section.
14. A method of assembling a medical instrument system using a diathermic snare and an endoscope in combination with each other, the method comprising:
a diathermic snare inserting step of mounting a cylindrical cap section on a distal end of an inserting section of the endoscope, and projecting a distal end of a sheath of the diathermic snare forward from the cap section;
a loop section projecting step of projecting the loop section from the sheath while the distal end of the sheath is projected from the cap section;
a loop section direction adjusting step of rotating the loop section around an axis of the sheath when necessary and adjusting a direction of the loop section;
a retracting step of retracting the loop section into the cap section;
a cap section pressing step of pressing a leading edge of the cap section against an object; and
a loop section setting step of pushing the sheath to bring the loop section into tight contact with the engagement projection and expanding the loop section circularly along the engagement projection such that a distal end bent section of the loop section bent in a direction that intersects a plane formed by the loop section is disposed at an intersection of the engagement projection and an inner wall of the cylindrical cap section.
15. A diathermic snare used in combination with an endoscope, the endoscope including an inserting section which is inserted into a body cavity and which has a distal end and a proximal end, and a cylindrical cap section mounted on the distal end of the inserting section, the cap section having a distal end, a proximal end and an engagement projection having a bending portion that bends inward at the distal end of the cap section,
wherein the diathermic snare comprises:
an elongated flexible sheath having a distal end and a proximal end;
an operating wire inserted into the sheath so as to move forward and backward and having a distal end and a proximal end;
a snare wire coupled to the distal end of the operating wire and having a loop section which expands like a loop;
an operating section coupled to the proximal end of the sheath and including a guide member extending in an axial direction of the sheath and a slider which moves forward and backward in the axial direction of the sheath along the guide member and which is coupled to the proximal end of the operating wire; the loop section of the snare wire projecting from the distal end of the sheath, the snare wire expanding like a loop, and the loop section expanding along an inner circumference of the engagement projection when the slider moves toward along the guide member; and the loop section being stored in the sheath when the slider moves backward along the guide member; and
a bending portion provided at the distal end of the loop section, the bending portion ending in a direction that intersects a plane formed by the loop section and conforming to a corner of the bending portion of the engagement projection when the loop section expands along the inner circumference of the projection;
wherein the cap section has an inclined plane corresponding to a plane of the distal end of the cap section which is inclined to the axial direction of the sheath and the bending portion of the loop section bends in the axial direction of the sheath.
16. The medical instrument system according to claim 15, wherein the plane formed by the loop section has an inclination angle that is set such that the plane is almost parallel to the inclined plane of the cap section.
17. The medical instrument system according to claim 15, wherein:
the inclined plane of the cap section inclines at an acute angle in the axial direction of the sheath; and
the bending portion of the loop section bends at a bend angle that is equal to an inclination angle of the inclined plane.