The invention discloses an optical-
fiber sensor, a preparation method and a measuring
system. The optical-
fiber sensor comprises a D-shaped
photonic crystal optical fiber, wherein the cross section of the D-shaped
photonic crystal optical fiber is D-shaped, so that the D-shaped
photonic crystal optical fiber has a plane on which a nano
metal sensing layer is adhered. The optical-
fiber sensor disclosed by the invention adopts the D-shaped photonic
crystal optical fiber, the D-shaped photonic
crystal optical fiber can be a hollow photonic
crystal optical fiber, a central hole is filled with a solution for controlling the
effective refractive index and dispersivity of transmitting light, and
resonance points of surface
plasma resonance is changed by controlling the
wave vector length of a core mold, so that the movement of
resonance wavelength caused by change of external environment is expanded, the sensitivity of the sensor is improved, and high-accuracy
refractive index measurement is realized; the optical-
fiber sensor, the preparation method and the measuring
system can be used for researching the high-sensitivity biochemical reaction analysis.