A two-wheeler lock, in particular a frame lock, wherein the lock is preferably at least partly drivable in a motorized manner, comprises a sensor for detecting different positions of an element of the lock movable along a defined movement path. The movable element here has a permanent magnet and the sensor is configured as a magnetic sensor. This magnetic sensor is furthermore configured for a three-dimensional magnetic detection to detect positions or movements of the movable element deviating from the defined movement path and/or to detect manipulation attempts by means of external magnets.

CROSS-REFERENCES TO RELATED APPLICATIONS

This application claims the benefit and priority of German Patent Application Serial No. 102018121245.3 filed Aug. 30, 2018, the entire disclosure of which is incorporated herein by reference.

FIELD

The present invention relates to a two-wheeler lock, in particular to a frame lock for a two-wheeler.

The two-wheeler lock has at least one element that is movable along a defined movement path. Such a lock can in particular comprise a lock body, a hoop that is movable, and is in particular supported or at least guided, between an open position and a closed position, and a latch that is movably supported at the lock body between a locked position in which in its closed position it blocks the hoop against a departure from the closed position and an unlocked position in which it releases the hoop.

In its closed position, the hoop, for example, serves to secure a two-wheeler by means of the lock, e.g. to connect it to another object or to block a movement of the two-wheeler, for instance in the manner of a spoke lock that prevents the rotation of a wheel. The latch, in contrast, typically does not cooperate with objects outside the lock, but rather with the hoop and serves to block or release the hoop, in particular in the closed position, depending on whether the lock is locked or unlocked.

Such a two-wheeler lock can be configured as semi-automatic or fully automatic to improve comfort, with it being at least partly drivable by a motor. This means that at least individual elements of the lock can be moved in a motorized manner by one or more drive motors of the lock. However, every movable element of the lock does not have to be drivable in a motorized manner. As a rule, such a lock can at least be unlocked in a motorized manner, i.e. the latch is displaceable in a motorized manner from the locked position into the unlocked position to release the hoop for a departure from its closed position. The latch can, however, additionally or alternatively, also be displaceable in a motorized manner in the opposite direction. Provision can additionally be made that the hoop can (also) be moved in a motorized manner.

To be able to reliably move the element of the lock that is drivable in a motorized manner, it is expedient to be able to detect information on the respective current position of the element. It can also be desired with a lock that is not drivable in a motorized manner to detect the respective current state of the lock with reference to the position of one or more movable elements of the lock. For this purpose, for example, a sensor can be provided that is configured to detect different positions of at least one element of the lock movable along a defined movement path. The sensor can in particular be used to detect the latch position. If the latch can only adopt certain positions such as the locked position when the hoop is in a specific position, e.g. in the closed position, the position of the hoop can also be indirectly detectable by means of the sensor detecting the latch position.

The sensor can, for example, be configured as a magnetic sensor that cooperates with a permanent magnet provided at the movable element. The defined movement path of the movable element is then defined by the movement path of the permanent magnet through which it runs on a regular movement of the element along its movement path. A simple magnetic switch can generally be used as a sensor that switches in dependence on the spacing between the permanent magnet and the sensor so that it is possible to differentiate between the presence and the absence of a certain position of the movable element with reference to the switch state.

SUMMARY

It is an object of the invention to provide a two-wheeler lock that is in particular at least partly drivable in a motorized manner and that has an improved security against manipulation attempts.

The object is satisfied by a two-wheeler lock having the features of claim1, by a method of detecting manipulation attempts having the features of claim9, and by a use in accordance with claim12. Advantageous embodiments of the invention result from the dependent claims, from the Figures, and from the present description.

In the two-wheeler lock in accordance with the invention, the sensor of the lock configured as a magnetic sensor is configured for a three-dimensional magnetic detection to detect positions of the movable element differing from the defined movement path and/or manipulation attempts carried out by means of external magnets. The fact that the sensor is configured for a three-dimensional magnetic detection means, for example, that it is possible to determine the position of a permanent magnet in space, specifically in three dimensions, by means of the sensor and/or that not only the strength of the magnetic field can be determined by means of the sensor, but also its spatial orientation, for instance as a three-dimensional vector. To this extent, such a magnetic 3D sensor provides more differentiated information than a simple magnetic switch, but also more than a magnetic sensor that can only detect the spacing of a permanent magnet from the sensor or only the absolute amount of the strength of a magnetic field. Due to the more exhaustive information that a sensor configured for a three-dimensional magnetic detection provides, more than only two states (presence or absence of a specific position) of the movable element can also be distinguished by means of a single such sensor and spatial movement progressions can also advantageously be reproduced.

These advantages of magnetic sensors that are configured for a three-dimensional magnetic detection are, however, not only useful for a particularly reliable detection of the position of the detected movable element, but also contribute to the improvement of the security of the lock against manipulation attempts, in particular against attempts to open the locked lock in an unauthorized and irregular manner. For an irregular actuation of the lock can, for example, have the result that an element movable along a defined movement path departs from its movement path and thus adopts positions that cannot be associated with the movement path. The irregular actuation can then be determined with reference to such a deviation that remains unrecognized on a use of a conventional magnetic switch or magnetic sensor, but can be detected by means of a sensor configured for a three-dimensional magnetic detection.

However, even if the movable element whose position is detected does not completely depart from the movement path, a manipulation attempt may be present that can be determined by means of a 3D magnetic sensor. For example, mechanical actions on the lock such as a break-open attempt can result in vibrations that can be superposed on the movement of the movable element along its movement path. The movement can e.g. then have unusual vibration components transversely to the direction of movement along the movement path. Or the manipulation attempt has the result that the time progression changes according to which the movement path is run through. For example, a break-open attempt can have the consequence that the movable element does not as usual continuously run through the movement path, but the movement progression, in particular a speed progression of the movement, has decelerations, accelerations, modulations or interruptions that would not be expected with a regular actuation, or at least not at those positions at which they occur.

In addition to the determination of such movements or positions of the movable element differing from the expectation, a 3D magnetic sensor can advantageously also, additionally or alternatively, be used to detect manipulation attempts directly with respect to a detected magnetic field without reference to the position of the movable element. For on certain manipulation attempts, magnets are led up to the lock from the outside to move elements of the lock by means of such external magnets, to switch magnetic switches, to interfere with electronics of the lock and/or to trigger control commands, in particular to ultimately open the lock in an unauthorized manner. The magnetic field caused by an external magnet can, however, be recognized by means of the sensor configured for a three-dimensional magnetic detection as a deviation from the magnetic fields that are typically present on a regular actuation of the lock that indicates a manipulation attempt. For unlike with magnetic switches that can only distinguish between two states and with one-dimensional magnetic sensors that only detect a single value, e.g. only a spacing or only the strength of the magnetic field, the three-dimensional detection makes it possible to reliably distinguish the magnetic field of an external magnet from the magnetic field of the permanent magnet provided at the movable element.

The movable element whose position along its defined regular movement path is detected by means of the sensor can in particular be one of the following elements of a respective lock: a hoop movable between an open position and a closed position; a latch movable between a locked position and an unlocked position to latch the hoop in the closed position; a transmission element for the drive-effective coupling of the latch or of the hoop to a drive motor of the lock; or a coupling element movement-coupled to the latch, to the hoop, or to the transmission element. The transmission element can, for example, be an eccentric mechanism that is drive-effectively coupled to an output shaft of the drive motor and that can displace the latch in dependence on the rotational position such that the position of the drive motor and, where there is a clear relationship between positions of the eccentric mechanism and positions of the latch, also the position of the latch can be indirectly detected with reference to the position of the eccentric mechanism. The coupling element can, for example, be a pivotably supported lever that, on the one hand, is e.g. movement-coupled to the latch and, on the other hand, has the permanent magnet with which the sensor cooperates so that the position of the latch and, where there is a clear relationship between positions of the latch and positions of the hoop, the position of the hoop can also be indirectly detected with reference to the position of the lever.

The two-wheeler lock can be a portable lock or can be fixedly mounted at the two-wheeler. The two-wheeler lock can in particular be configured as a frame lock. Such a frame lock can, for example, have a rotatable hoop (such as known from DE 10252080 A1), as a pivot hoop (such as known from DE 102011015313 A1), or as a linearly movable hoop (such as known from DE 102012002903 A1). Alternatively to this, the two-wheeler lock can be configured as a U hoop lock (such as known from DE 100 26 701 A1 or DE 10 2007 035 122 A1), as a folding lock having a jointed bar (such as known from DE 102005040066 A1), or as a brake disk lock (such as known from DE 102005043927 A1).

In accordance with an advantageous embodiment, the magnetic sensor is configured as a 3D magnetic field sensor or as a 3D Hall sensor. Conventional magnetic sensors detect the magnetic field in a single direction that is predefined by the position of the sensor. In contrast, the magnetic field can advantageously be detected in three spatial directions by means of a 3D magnetic field sensor, in particular by means of a 3D Hall sensor. Since the movement of a permanent magnet always results in a change of the magnetic field in at least one spatial direction, the position of a permanent magnet in space can in particular be three-dimensionally detected in this manner and its movement in space can be reproduced.

In accordance with a further advantageous embodiment, the movable element is supported such that it has a single degree of freedom. In other words, at least on a regular use of the lock, the element can only move on its defined movement path (except for possible slight play) that in particular does not have any branches. The defined movement path along which the element can move can, for instance, correspond to a continuous line in space. The degree of freedom can e.g. be a purely translatory, a purely rotary, or a combined translatory and rotary degree of freedom. Provision can, for example, be made that said eccentric mechanism or a permanent magnet provided thereat has a purely rotary degree of freedom. With a pivotably supported lever that is movement-coupled to the latch of the lock, a permanent magnet arranged at an end of the lever can run through a partial arc path and can to this extent have a combined translatory and rotary degree of freedom. The restriction of the movability of the movable element to a single degree of freedom (at least on a regular use) simplifies the recognition of irregular states since a plurality of positions of the permanent magnet or a plurality of states of the magnetic field can be excluded by this restriction so that a conclusion can be drawn on a manipulation attempt if it is detected by means of the sensor that one of the actually excluded states is nevertheless present.

It is furthermore advantageous if in accordance with a further embodiment the lock comprises an evaluation apparatus that is configured to evaluate a measured magnetic value detected by means of the sensor with respect to an agreement with a measured value to be expected for one of the positions of the movable element along the defined movement path. A measured value is in particular not to be expected if it does not correspond to any of the positions of the movable element along the defined movement path. The measured value can, however, also not be expected if there is admittedly a position along the defined movement that could form the basis of the detected measured value, but this position should not be present in the current state of the lock. E.g. when the latch is preloaded into a locked position blocking the hoop and it is known or detected that the hoop is closed and that the drive motor and the eccentric mechanism currently do not displace or hold the latch against the preload, it is to be expected that the latch is in its locked position on the basis of the preload. A detected measured value that corresponds to the unlocked position of the latch, then admittedly generally corresponds to a regular latch position, but then nevertheless represents a deviation from the measured value currently to be expected.

Even if a manipulation attempt takes place at the lock by means of an external magnet, this will as a rule have the result that a measured value is detected by means of the sensor configured for a three-dimensional magnetic detection that differs from all the measured values corresponding to a position of the movable element along its defined movement path, but at least differs from that measured value that would currently be expected for the actual position of the movable element. The evaluation apparatus can thus advantageously determine the presence of a manipulation attempt with reference to the then consequent lack of agreement of the detected measured magnetic value with a measured value to be expected.

In accordance with a further advantageous embodiment, the lock further comprises an alarm apparatus for outputting an alarm, with the evaluation apparatus being configured to control the alarm apparatus to output an alarm when no agreement is determined on an evaluation of a detected measured value with a measured value to be expected for one of the positions of the movable element along the defined movement path. The determination of a manipulation attempt by the evaluation apparatus can thus also result in a reaction by which the manipulation attempt can be counteracted. The alarm can be an acoustic and/or an optical alarm signal that is output by the lock, for instance to warn the person making the manipulation attempt and/or to draw the attention of persons in the environment of the lock to the manipulation attempt. The alarm can also comprise a radio signal via which the determination of a manipulation attempt can be reported over a certain distance, in particular to the owner of the lock. Provision can additionally be made that an internal reaction of the lock to the manipulation attempt is triggered by the transmitted alarm. Expanded protective mechanisms of the lock can, for example, thereupon be activated.

The method in accordance with the invention is configured to detect manipulation attempts at a two-wheeler lock, in particular a frame lock, wherein the lock, that is preferably at least partly drivable in a motorized manner and is preferably configured in accordance with one of the above-described embodiments, has a sensor for a three-dimensional magnetic detection of different positions of an element of the lock movable along a defined movement path. The method comprises the steps: detecting a magnetic measured value by means of the sensor; evaluating the detected measured value with respect to an agreement with a measured value to be expected for one of the positions of the movable element along the defined movement path; associating a respective position of the movable element with the measured value if an agreement is present; and otherwise determining a manipulation attempt.

The method thus has substantial points of agreement with the above-described use possibilities of the two-wheeler lock in accordance with the invention. To this extent, the possibilities of the configuration described there and of the use of the lock and its respective advantages also apply correspondingly to the method. A detected measured value is in particular evaluated in accordance with the method, for example, by means of said evaluation apparatus in that a check is made whether an agreement is present of the detected measured value with the measured value to be expected. In this respect, a measured value is in particular not to be expected if it does not result from a position of the movable element along its defined movement path.

Provision can be made that a data set of stored measured values that correspond to different positions of the movable element along its movement path is present so that a check can be made for the evaluation whether the detected measured value agrees with one of the measured values of the data set. Such a data set can, for example, be determined by moving the element along its defined regular movement path and by detecting the corresponding measured values by means of the sensor in the sense of at least a one-time teaching and can be stored. Said association of a respective position with the detected measured value can take place in that that position is associated with the detected measured value that forms the basis of that stored measured value that agrees with the detected measured value. The evaluation and/or association can, however, also take place by calculation, for instance on the basis of the detected measured value and the known movement path of the element with reference to geometrical and/or physical relationships.

If the evaluation shows that an agreement of the detected measured value with a measured value to be expected is present, the corresponding position of the movable element is associated with the detected measured value so that said position can be output and used. The position determined in this manner can, for example, serve for the monitoring of the respective state of the lock. In addition, the determined position can be used as feedback as part of a regulated control of a drive motor of the lock. The currently present position can also be used to determine which positions can be present next, starting from this position, and thus what measured values of the magnetic sensor are to be expected next.

If, in contrast, the evaluation shows that no agreement is present, this is evaluated as an indication of the presence of a manipulation attempt. In accordance with an advantageous embodiment of the method, provision is made that an alarm is output in this case. As described above, this alarm can serve, e.g. in the form of an acoustic and/or optical alarm signal, to draw attention to the manipulation attempt and to warn the person that is making the manipulation attempt and/or can serve to trigger a countermeasure against the manipulation attempt. The alarm is preferably output toward the outside of the lock here. The alarm can, however, generally also only be output internally and can then preferably trigger a countermeasure in the lock.

The invention further relates to the use of a sensor configured for a three-dimensional magnetic detection in a two-wheeler lock, in particular in a frame lock, wherein the lock is preferably at least partly drivable in a motorized manner, and wherein the sensor detects different positions of an element of the lock movable along a defined movement path to detect manipulation attempts with reference to a deviation of a measured value detected by means of the sensor from a measured value to be expected for one of the positions of the movable element along the defined movement path. The detection can here in particular take place in one of the manners described above and can in particular be applied to one of the above-described locks.

DETAILED DESCRIPTION

FIGS. 1 to 6show an embodiment of a two-wheeler lock in accordance with the invention. It is a partly automatic frame lock11in this embodiment. The frame lock11comprises a lock body13of which only a plate15bounding an inner space of the lock body13is shown in the Figures.

The frame lock11further comprises a hoop17that is the shape of a partial arc and that is respectively only partly shown and that is movable between the closed position shown inFIGS. 1 and 2and the open position shown inFIGS. 5 and 6. In the state of the lock shown inFIGS. 3 and 4, the hoop17is in an intermediate position between the closed position and the open position. The hoop17is guided by the lock body13on a circular path along which the shape of a partial arc of the hoop17also extends. The frame lock11is configured to be arranged at a wheel of a two-wheeler such that the hoop17engages between the spokes of the wheel in the closed position and thereby blocks it; in contrast it releases the wheel in the open position. The hoop17can here be preloaded into the open position.

The general movability of the hoop17is restricted by a latch19of the lock11that is substantially movably supported radially to the shape of a partial arc of the hoop27at the lock body13. The latch19, when the hoop17is in its locked position, here engages into a first engagement recess21of the hoop17that extends radially from the outside into the hoop17. In this state, that is shown inFIGS. 1 and 2, the latch19blocks the hoop17against a departure from the closed position by the engagement into the first engagement recess21and is to this extent in its locked position.

The latch19can be radially outwardly displaced from this locked position so that it moves out of the first engagement recess21and is arranged radially outside the outer radius of the hoop17. The hoop17is thereby released for a departure from the closed position so that the latch to this extent is in its unlocked position. The unlocked position is here not necessarily restricted to a single position of the latch19, but can rather comprise the total range of latch positions in which the hoop17is released for a movement from the closed position into the open position and back. The unlocked position of the latch19is shown, for example, inFIGS. 3 and 4.

The lock furthermore comprises a spring23that acts on the latch19and thereby preloads it against the hoop17. As long as the latch19is not moved or held against this preload, the latch19therefore contacts an outer contour25of the hoop17. Where the latch19respectively contacts along this contour25here depends on the respective position of the hoop17. The first engagement recess21here forms that part of the contour25which the latch19contacts in the closed position of the hoop17. In a region that adjoins the first engagement recess21, the contour25has a substantially constant radius that corresponds to the outer radius of the hoop17. The latch19contacts this region at intermediate positions of the hoop17between its closed position and its open position due to the preload and thereby substantially adopts the unlocked position shown inFIGS. 3 and 4. In the unlocked position of the latch19, the hoop17can be opened or closed, with the latch19sliding along the contour25of the hoop as long as it is not held as shown inFIGS. 3 and 4by the eccentric mechanism31against the preload of the spring23at a spacing from the contour25.

The contour25extends from the first engagement recess21over the region having a constant radius up to a second engagement recess27that extends radially from outside into the hoop17and into which the latch19engages due to the preload of the spring23when the hoop17is in the open position. The second engagement recess27has a smaller depth than the first engagement recess21with respect to the region of the contour25having a constant radius. The position of the latch19engaging into the second engagement recess27shown inFIGS. 5 and 6thereby differs from the locked position in which it is located when it engages into the first engagement recess21. The hoop17is prevented from departing from its open position by the engagement of the latch19into the second engagement recess27so that the hoop17is secured against closing. The latch position shown inFIGS. 5 and 6to this extent represents a securing position of the latch19to be distinguished from the locked position and the unlocked position.

The latch19can be displaced radially outwardly in a motorized manner with respect to the shape of a partial arc of the hoop17against the preload of the spring23. A drive motor29is provided for this purpose that is configured as an electric motor in the embodiment shown by way of example. An output shaft of the drive motor29drives an eccentric mechanism31that engages into an opening of the substantially disk-shaped latch19so that the latch19can be radially outwardly displaced against the preload in dependence on the rotational position of the eccentric mechanism31and can generally also be held in a specific position. The drive motor29is, however, only used to release the hoop17for a departure from the closed position (FIGS. 1 and 2) or of the open position (FIGS. 5 and 6) in that the latch19is briefly radially outwardly displaced from its locked position (FIGS. 1 and 2) or from its securing position (FIGS. 5 and 6) so that the engagement of the latch19into the first engagement recess21or into the second engagement recess27is canceled. As soon as the hoop17has thereupon moved out of the closed position or the open position, the drive motor29can be deactivated so that the latch19is again urged against the hoop17by the preload of the spring23and contacts the region of the contour25having a constant radius. The hoop17is thereby released for a movement between its closed position and its open position.

Since the latch19contacts the contour25as a result of the preload as long as it is not temporarily displaced or held against the preload, the state of the hoop17can also be determined with reference to the respective position of the latch19. If the latch19is in the locked position, the hoop17can only be in the closed position. In a corresponding manner, the hoop17can only be in the open position when the latch19is in the securing position. If the latch19is, in contrast, in the unlocked position, in particular in the position in which it contacts the contour25having a constant radius, the hoop17is in an intermediate position between the open position and the closed position.

Which position of the latch19and of the eccentric mechanism31is respectively present is detected by means of two magnetic sensors41,45. In this respect, the sensor41by means of which the latch position is detected does not cooperate directly with the latch19or with a permanent magnet arranged thereat, but rather with a permanent magnet43that is provided at a lever33pivotably supported about a pivot point behind the drive motor29at the lock body13(cf. in particularFIG. 3). The lever33is configured as a flat, straight bar that is arranged substantially in parallel with the drive motor29and whose ends form a coupling section (hidden by the drive motor29in the Figures) or a deflection section37. The lever33is movement-coupled to the latch19via the coupling section so that the lever33is pivoted about the pivot point on a displacement of the latch19. The movement coupling of the lever33with the latch19in this respect takes place in that the coupling section engages into a cutout of the latch19.

Since the coupling section is provided at a first end of the lever33and the deflection section37is provided at a second end of the lever33opposite the first ends at a spacing from the pivot point that is approximately twice as large as the coupling section, the deflection section37executes a movement that is approximately twice as large in comparison therewith on a movement of the coupling section. In this manner, the positions of the permanent magnet43defining the deflection section37that correspond to the locked position, to the unlocked position, and to the securing position of the latch19, differ more from one another than these latch positions themselves differ from one another and can thereby be detected more reliably by means of the sensor41.

The sensor41is a magnetic sensor that is configured for a three-dimensional magnetic detection, for example a 3D magnetic field sensor, in particular a 3D Hall sensor. The sensor41can thus precisely detect the magnetic field of the permanent magnet43and thereby its position in space. In this manner, the three positions of the deflection section37of the lever33that correspond to the locked position, to the unlocked position, and to the securing position of the latch19due to the movement coupling of the coupling section of the lever33to the latch19can be reliably distinguished by means of a single sensor41.

The lock11furthermore has a further magnetic sensor45that is likewise configured for a three-dimensional magnetic detection and which is likewise, for example, a 3D magnetic field sensor, in particular a 3D Hall sensor. This sensor45cooperates with a permanent magnet that is provided at the eccentric mechanism31, that rotates together with the eccentric mechanism31, and that is formed by two individual permanent magnets47,49. The two individual permanent magnets47,49are coaxially aligned with one another so that their magnetic north poles and south poles are on a straight line and alternate with one another along the straight line. In other words, the two permanent magnets47,49are identically aligned with one another with respect to their polarity, therefore attract one another along their common longitudinal extent along said straight line, and can be considered together as a single continuous permanent magnet whose poles are radially aligned in mutually opposite directions with respect to the axis of rotation of the eccentric mechanism31.

The mutual magnetic attraction of the two permanent magnets47,49can also be used for their fastening to the eccentric mechanism31. For this purpose, the eccentric mechanism31can have two coaxial receivers, in particular in the form of a respective bore, that are aligned radially opposite one another, that are only separated by a thin wall or that are even connected so that they form a continuous passage, with a reduction in diameter then being provided in the passage on the transition between the two receivers. The permanent magnets47,49can then be inserted into a respective one of the receivers from opposite sides with different poles facing toward one another so that they mutually attract up to and against the wall or the diameter reduction and are thus held in a stable manner with reliable positioning in the receivers.

A neutral position of the eccentric mechanism31is shown inFIGS. 1 and 2 and 5 and 6in which the eccentric mechanism31does not counteract the preload effected by the spring23so that the latch19contacts the contour25of the hoop17, in particular engages into one of the engagement recesses21,27in dependence on the position of the hoop17. In this neutral position, the one pole of the one permanent magnet47of the two permanent magnets47,49that together form the permanent magnet arranged at the eccentric mechanism31is aligned in the direction of the further magnetic sensor45, while the opposite pole of the other permanent magnet49faces away from the sensor45.

In contrast, an unblocked position of the eccentric mechanism31is shown inFIGS. 3 and 4in which the eccentric mechanism31is rotated by 180° with respect to the neutral position. In the unblocked position, the eccentric mechanism31urges the latch19against the preload of the spring23away from the hoop17so that the latch19at least temporarily does not contact the contour25of the hoop17. If the latch19has previously engaged into one of the engagement recesses21,27, it is thereby moved out of the respective engagement recess21,27so that the hoop17is released for a movement out of the closed position into the open position or vice versa. To this extent, the latch19is displaced into its unlocked position by rotating the eccentric mechanism31into the unblocked position. As a result of the half rotation of the eccentric mechanism31, in its unblocked position the one permanent magnet47is no longer aligned in the direction toward the further magnetic sensor45, but rather the other permanent magnet49, so that the magnetic field generated by the permanent magnets47,49has just reversed its polarity. The neutral position and the unblocked position of the eccentric mechanism31can therefore be detected by means of the sensor45and can be reliably distinguished from one another with reference to the respective polarity of the magnetic field generated by the two permanent magnets47,49.

Since the sensors41,45are configured for a three-dimensional magnetic detection, not only two or three single positions can be detected, but rather the total respective movement extent of the permanent magnet43arranged at the deflection section37of the lever33or of the permanent magnet formed by the two permanent magnets47,49and arranged at the eccentric mechanism31. The movement paths on which the permanent magnets43or47and49move are here unambiguously defined, do not change, and cannot be departed from, bur can only be run through in one direction and in the direction opposite thereto. Only those measured values are therefore to be expected as measured values that are detected by means of the sensors41,45that correspond to a magnetic field that results from a position of the respective permanent magnet43,47, or49along the respective defined movement path. However, deviations from these measured values to be expected can also be determined by means of the 3D magnetic sensors41,45. Such deviations can be an indication that a permanent magnet43,47,49or the movable element at which it is arranged runs through an irregular movement path or that a magnetic field acts on the lock11from outside the lock11that is not provided on a regular use of the lock11. A conclusion can therefore be drawn from such deviations that a manipulation attempt is present.

Positions or movements of the movable element deviating from the defined movement path and/or manipulation attempts made by means of external magnets can therefore be determined by sensors41,45that are configured for a three-dimensional magnetic detection and are used for detecting different positions of an element of a lock11movable along a defined movement path. This in particular makes it possible to uncover such manipulation attempts and to foil them where possible. For this purpose, the sensors41,45are connected to an evaluation apparatus, not shown, that receives and evaluates measured values from the sensors41,45. If no agreement of the detected measured values with the measured values to be expected can be determined, the evaluation apparatus controls an alarm apparatus, likewise not shown, to output an alarm that can draw attention to the manipulation attempt and/or can trigger countermeasures. The lock11has a comparatively substantially improved security with respect to manipulation attempts by such a configuration.

REFERENCE NUMERALS