Device for detecting a wheel on a railway track

ES2957408T5Active Publication Date: 2026-11-12BUILD CONNECTED BV (100 00)
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
ES2020734211T
Authority / Receiving Office
ES · ES
Patent Type
Patents
Current Assignee / Owner
Filing Date
2020-06-25
Publication Date
2026-11-12
Estimated Expiration
2040-06-25

AI Technical Summary

Technical Problem

Existing railway detection systems struggle to accurately determine the direction of movement of train wheels, especially in marshalling yards without electrified systems, and often require multiple sensors to achieve this functionality.

Method used

A device comprising a permanent magnet and a magnetic field sensor, configured to analyze changes in magnetic flux density to determine the direction of wheel movement, utilizing a single processor to interpret magnetic field values and potentially using two magnets to enhance accuracy.

Benefits of technology

The device effectively determines the direction of wheel movement with high precision, reducing power consumption and requiring fewer components, suitable for wireless operation and integration into rail networks with limited power infrastructure.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000016_0000
    Figure 00000016_0000
  • Figure 00000016_0001
    Figure 00000016_0001
  • Figure 00000017_0000
    Figure 00000017_0000
Patent Text Reader

Abstract

A method and a device for detecting the direction of movement of a wheel on a railway track are disclosed, the device comprising: at least one magnet for providing a magnetic field; a magnetic field sensor for detecting a magnetic field value indicative of a flux density, or a change in flux density, of the provided magnetic field; at least one processor in communication with the magnetic field sensor, wherein at least one processor is configured to: obtain a plurality of magnetic field values ​​for respective times from the magnetic field sensor; and analyze the obtained plurality of magnetic field values ​​so as to obtain a direction of movement of a wheel passing through the device.
Need to check novelty before this filing date? Find Prior Art

Description

Device for detecting a wheel on a railway track This description relates to a device for detecting a wheel on a railway track, a method for detecting a train wheel, and a computer program product for detecting a train wheel. In many railway applications, such as rail transport, it is beneficial to have information on the whereabouts of rail vehicles. Many marshalling yards, especially those without electrified systems, lack safety systems. The detection of wheels on a railway track using, for example, a Hall effect device is shown in US patent 4,524,932 A. Here, the Hall effect device must be placed in a pole-to-pole hole drilled through a permanent magnet to create zero magnetic flux and prevent saturation of the Hall element. The detector is configured to detect the passage of railway car wheels along the track by the change in the permanent magnet's flux level. With this device alone, it is impossible to determine the direction of travel of a passing train. Patent documents US-2007 / 0001059 A1 and WO 2017 / 045888 A1 are examples of where multiple sensors are used to determine the direction and speed of railway vehicles. Patent document EP 1362 759 A1 describes a train wheel sensor comprising a first coil that generates an alternating magnetic field and a second coil of equal area that is axially aligned with the first coil to produce two alternating magnetic fields in opposite directions to assess the presence and direction of movement of the train wheel. US-2010 / 235123 A1 patent document refers to an example of a method for locating a wheel of a railway vehicle. One of the objects of this patent description is to improve wheel detection on a railway track. The invention is defined by the appended claims. According to a first aspect, a device is provided for detecting the direction of movement of a wheel on a railway track, the device being configured to be placed on or near a side face of the railway track, the device comprising: at least one permanent magnet to provide a magnetic field; a magnetic field sensor to detect a magnetic field value indicative of a flux density, or a change in the flux density of the provided magnetic field; at least one processor in communication with the magnetic field sensor, wherein the at least one processor is configured to: obtain a plurality of magnetic field values ​​for the respective times of the magnetic field sensor; and analyze the obtained plurality of magnetic field values ​​so as to obtain a direction of motion of a wheel passing through the device. This method allows for determining the direction of movement of the wheel passing the device. This makes it possible to track vehicles on the rail system. For example, by placing multiple devices at various locations within a classification yard, it becomes possible to maintain a database of incoming and outgoing trains. When a wheel passes near at least one magnet, the wheel acts as a magnetic shunt or blocking element, disrupting the magnetic field. In other words, the magnetic field lines generated by the magnet are short-circuited. As the wheel passes, the magnetic field component will first decrease or increase (depending on the sensor's position and which side the wheel approaches relative to the sensor) and then increase or decrease again. These two different possibilities indicate the respective directions of the wheel's movement.Furthermore, due to the presence of the magnet near the sensor, and the device's placement close to the wheel's path along the rail, the device generates a non-uniform magnetic field in and around it. This allows for the detection of the direction of movement of even symmetrical objects (in the direction of movement), such as a wheel. For these objects, their directions of movement would be more difficult to detect, or even undetectable, in a uniform magnetic field such as the Earth's magnetic field at the Earth's surface. In general, the expert will understand, after reading the present description, that the above aspect, realizations and teachings of this description can be applied to other fields outside of railway vehicles, where the wheel would instead be any object that influences the magnetic field of at least one magnet, and where the magnetic field sensor detects the effect on the local magnetic field. In one embodiment, the processor is configured to analyze the obtained plurality of magnetic field values ​​in such a way as to obtain a direction of motion of a wheel passing through the device by comparing the plurality of magnetic field values ​​with a baseline magnetic field value detected by the magnetic field sensor when no wheel is present, to detect a relative increase and subsequent decrease, or a relative decrease and subsequent increase, of the plurality of magnetic field values ​​compared to the baseline magnetic field value. The relative increase and decrease are preferably substantial, where substantial may indicate, for example, that the relative increase and decrease are at least twice the noise level of the magnetic field values.That the relative increase and decrease are substantial may additionally or alternatively indicate that the relative increase and decrease are at least twice the combined value of sensor noise and other magnetic influences, such as magnetomechanical effects (see below), remanent magnetic fields from passing vehicle / wheels, and disturbance from the Earth's magnetic field. In another embodiment, the comparison comprises detecting whether at a first point in time one of the plurality of magnetic field values ​​is greater than the baseline magnetic field value and at a second point in time after the first point in time another of the plurality of magnetic field values ​​is less than the baseline magnetic field value to determine that the wheel passing through the device has a first direction of motion; and detecting whether at a first point in time one of the plurality of magnetic field values ​​is less than the baseline magnetic field value and at a second point in time after the first point in time another of the plurality of magnetic field values ​​is greater than the baseline magnetic field value to determine that the wheel passing through the device has a second direction of motion different from the first direction of motion.This provides a robust way to determine the direction of movement. In another embodiment, wherein the comparison comprises detecting whether a first difference between a first value from the plurality of magnetic field values ​​and the baseline magnetic field value is greater than a first threshold value above the baseline magnetic field value or less than a second threshold value below the baseline magnetic field value; when the first difference is greater than the first threshold value, detecting whether a second difference between a second value from the plurality of magnetic field values ​​and the baseline magnetic field value is less than a third threshold value, the second value corresponding to a later point in time than the first value, to determine that the wheel passing through the device has a first direction of movement;and when the first difference is less than the second threshold value, detect if a second difference between a second value from the plurality of magnetic field values ​​and the baseline magnetic field value is greater than a fourth threshold value, the second value corresponding to a later point in time than the first value, to determine that the wheel passing through the device has a second direction of motion different from the first direction of motion. This embodiment provides a particularly robust way of determining the direction of motion of the wheel passing through the device. The magnetic field sensor is preferably configured to detect the magnetic field value in a sensing direction that is substantially different from the direction of the magnetic field present at the sensor's position in a rest state—that is, a state where no wheel influences the magnetic field provided by the at least one magnet. The sensing direction may be perpendicular to the direction of the magnetic field present at the sensor's position in a rest state. In this perpendicular sensing direction, when a wheel passes near the at least one magnet, the wheel, acting as a magnetic shunt, has the greatest effect on the magnetic field. In another embodiment, the magnetic field sensor is preferably configured to detect the value of the magnetic field in a detection direction with the greatest change in magnetic field value when at least one magnet is deflected by the presence of a wheel. At least one magnet is a permanent magnet, as this requires less power and allows the device to operate wirelessly for long periods, on the order of at least one year up to six or more years. The wheel is preferably made partially or entirely of a material that influences the magnetic field provided by at least one magnet, such as ferromagnetic materials like various steels or cast iron. Most train wheels are made of steel. Most train wheels include a flange on one side to keep the wheels, and therefore the train, rolling on the rails. The device is preferably configured and especially suitable for detecting the flange passing close to the device, for example, within 10 cm, preferably within 5 cm or 2 cm. The sensor is preferably positioned away from an outer surface of the at least one magnet, more preferably on the side face of or below the at least one magnet. In one embodiment, the magnetic field sensor is positioned so that it is outside a point of symmetry between the at least one magnet and a longitudinal direction of the railway track when the device is placed on or near the side face of the railway track. Preferably, when the at least one magnet is positioned such that its magnetic pole axis is perpendicular to a longitudinal direction of the railway track when the device is placed on or near the railway track, the magnetic field sensor is placed adjacent to the magnetic pole axis. This avoids placing the sensor in a position symmetrical with respect to the magnetic field provided by the at least one magnet and the path of movement of the wheel (i.e., along the longitudinal direction of the rail).The lateral position of the sensor compared to the magnet is an example position that allows the detection of the direction of wheel movement using a single magnet and a single magnetic field sensor. In one embodiment, the at least one processor is further configured to detect whether at least one of the plurality of magnetic field values ​​obtained meets a condition indicating the presence of a wheel on the railway track, wherein the at least one processor is configured to obtain only one wheel direction when the obtained magnetic field value meets the condition indicating the presence of a wheel on the railway track. This implementation saves the energy required to operate the device. Preferably, the condition indicating the presence of a wheel on the railway track is a condition of exceeding a predetermined fifth threshold value of an absolute value of a difference between at least one value from the plurality of magnetic field values ​​and a baseline magnetic field value detected by the magnetic field sensor when no wheel is present. In another embodiment, the device comprises a first and a second magnet for providing the magnetic field, wherein the first and second magnets are separated by a first distance, wherein the magnetic field sensor is positioned so as to be able to detect the magnetic field originating from both the first and the second magnet. When two magnets are used, which is preferred, the sensor is preferably positioned between the two magnets relative to the longitudinal direction of the rail on one side of which the device can be mounted. Preferably, the magnetic field sensor is positioned where the first magnetic field direction of a component or vector of the first magnet differs from the second magnetic field direction of a component or vector of the second magnet. In this way, when the wheel approaches and subsequently blocks the magnetic field generated by at least one of the two magnets, the sensor will measure a large increase and subsequent decrease (or vice versa) in the magnetic field flux density, allowing for a more accurate determination of the direction of motion. A wheel blocking the magnetic field will be considered an example of magnetic field disturbance. The embodiment of the device, which has a first and a second magnet, is also suitable for detecting the presence of a wheel more generally and with greater accuracy than in the prior art. Measuring the direction of movement of the passing wheel is not required. Therefore, in another aspect, instead of analyzing the plurality of magnetic field values ​​to determine the direction of movement of a wheel passing through the device, the device with at least two magnets is configured to analyze the plurality of magnetic field values ​​to determine the presence of a wheel passing through the device. It is also generally possible to measure the speed of the passing wheel with greater accuracy by analyzing the plurality of magnetic field values.The above (preferred) realizations shall be understood to refer to realizations of any of the possible aspects described in this memorandum. Preferably, the first and second magnets are positioned so that their magnetic pole directions are substantially antiparallel. When the sensor is placed equally spaced between the first and second magnets, and the first and second magnets have approximately or substantially the same strength, the preferred sensing direction is substantially or approximately parallel to the pole directions of the first and second magnets. Alternatively, the first and second magnets are positioned so that their magnetic pole directions are substantially parallel. When the sensor is placed equally spaced between the first and second magnets, and the first and second magnets have approximately or substantially the same strength, the preferred sensing direction is substantially or approximately perpendicular to the pole directions of the first and second magnets. The antiparallel configuration is preferred, as this results in a greater effect on the magnetic field in the detection direction, increasing the precision and / or accuracy of the device. In one embodiment, the device comprises a base and an upper side opposite the base, wherein the first and second magnets are positioned substantially parallel to the upper side, and the magnetic pole directions of the first and second magnets are substantially perpendicular to the upper side. In this way, the wheel, when passing over the upper side at a distance of, for example, 5 cm, has the greatest influence on the magnetic field lines generated by the magnets. In one embodiment, the first distance is in the range of 20 to 200 mm, wherein the magnetic field sensor is preferably placed at substantially equal respective distances from the first and second magnets. In one embodiment, the magnetic field sensor is configured to detect flux density or change in flux density within a range of -50 to +50 Gauss. The magnetic sensitivity of the magnetic field sensor is preferably less than 10 mGauss, more preferably less than 5 mGauss, for example, 1, 1.5, or 2 mGauss. In one embodiment, the magnetic field provided by at least one magnet is substantially larger (e.g., at least 2x to at least 10x larger) than the Earth's average magnetic field. Preferably, at the position of the magnetic field sensor, the at least one magnet provides a flux density of at least 1.5 Gauss. It is preferred that at least one magnet have a remanence of at least 5000 Gauss, preferably at least 8000 Gauss, and more preferably at least 12000 Gauss. With these magnets, it is particularly advantageous to measure the wheel at a distance of approximately 10 to 50 mm from the magnets in the device. More specifically, the combination of the above preferred magnetic field sensors with these magnets provides a device particularly suitable for accurately measuring the presence, speed, velocity, and / or direction of movement of wheels passing through the device. In one embodiment, at least one magnet is configured such that the resulting magnetic field is at least partially influenced by the wheel as the wheel passes the device at a distance of no more than 10 cm. The magnetic field sensor is positioned to detect the change in the magnetic field caused by the wheel. The exact position of the magnetic field sensor may vary depending on the magnets used, the distance from the wheel (flange), the position of the magnetic field sensor relative to the magnets, etc., as will be understood by someone skilled in the art. Preferably, the magnetic field sensor is positioned at least once from the magnet by a second distance that is of a similar or equal order of magnitude to the distance between the magnet and the nearest point on the wheel as it passes over the device when placed on or near the railway track. With this positioning arrangement, different magnets of varying sizes, as well as the magnetic field sensor, can be appropriately positioned on the device to obtain accurate measurements. In a further embodiment, the magnetic field sensor is a two-dimensional magnetic field sensor that detects two magnetic field components in the first and second perpendicular detection directions, wherein the processor is configured to obtain a first and a second respective plurality of magnetic field values ​​for the respective times of the magnetic field sensor for each first and second detection direction; analyze the first plurality obtained of magnetic field values ​​by detecting whether the magnetic field values ​​decrease below a threshold value (sixth threshold value), or increase above a threshold value (seventh threshold value), which indicates the presence of a wheel on the railway track passing through the device; When the presence of a wheel is detected, analyze the second plurality of magnetic field values ​​to determine the direction of movement of the wheel. This realization is particularly beneficial since the change in one of the sensing directions is typically larger than the other, while the other sensing direction is sensitive to the direction from which the wheel is approaching the device (and then moving away from the device). It is preferred that at least one processor be configured to analyze the second plurality of magnetic field values ​​to determine the direction of wheel motion by estimating a peak position in the first plurality of magnetic field values, indicating the peak position a moment in time when the wheel is substantially above the device; determine a sign of a first derivative of the second plurality of magnetic field values ​​near the estimated peak position; when the determined sign of the first derivative is positive, determine the direction of wheel motion so that it is in a first direction along the railway; and when the determined sign of the first derivative is negative, determine the direction of wheel motion so that it is in a second direction along the railway.It will be understood, in view of this full description, that this peak position may indicate a falling position here. This preferred embodiment allows the direction of wheel movement to be determined with minimal processing requirements. Especially since the device is preferably wireless with a portable power source, less processing means longer battery or other power supply life. In one embodiment, when there are two magnets with their respective poles positioned antiparallel to each other, the first sensing direction is substantially parallel to an upper side of the device, the upper side being opposite a base of the device and configured to be positioned at least partially below the wheel when the device is placed on or near the railway track, wherein the first sensing direction is substantially parallel to a mounting side of the device, the mounting side being configured to place the device on the side face of the rail. In one embodiment, when there are two magnets with their respective poles positioned parallel to each other, the second sensing direction is substantially parallel to an upper side of the device, the upper side being opposite a base of the device and configured to be positioned at least partially below the wheel when the device is placed on or near the railway track, wherein the second sensing direction is substantially parallel to a mounting side of the device, the mounting side being configured to place the device on the side face of the rail. In another embodiment, the device comprises at least one additional magnet to suppress the magnetic fields induced in the rail by railway vehicles passing near the device. The additional magnet or magnets apply a magnetic field to the rail, allowing the device to more accurately measure the effect of the wheel on the magnetic field measured by the magnetic field sensor. Without this magnetic field from the additional magnets applied to the rail, when a train or other typically heavy railway vehicle passes, a magnetic field is induced by the force exerted on the rail. This effect is known as the Villari effect or the inverse magnetostrictive effect. This effect can be described as the change in the magnetic susceptibility of a material when subjected to mechanical stress.More generally, with at least one additional magnet, the effect of the force exerted by the vehicle is reduced or even eliminated, since most, if not all, of the magnetic domains in the rail will substantially align with the magnetic field induced by the additional magnets. Preferably, the device comprises an upper side opposite a device base and configured to be positioned at least partially below the wheel when the device is placed on or near the railway track, a mounting side configured to position the device on the side face of the rail, at least one mounting magnet for mounting the device on the railway track, the at least one mounting magnet being positioned with a pole direction substantially perpendicular to the mounting side. The mounting magnets provide a convenient means of attaching and detaching the device from the rail, without the need for nuts and bolts, corresponding holes in the rail clamps and / or specialized hardware. Another aspect of the present description is, therefore, a device with at least one magnet and any type of magnetic field sensor to detect a wheel passing over it, wherein one or more magnets (preferably permanent) are placed on or near the device or the rail to reduce or even eliminate applicable magnetomechanical effects. These magnets may be mounting magnets, but this is not essential for obtaining the improved measurements of at least wheel detection, or any other parameter such as speed, direction of movement, etc. In any embodiment of the above aspects / embodiments, the mounting magnet is a permanent magnet having a remanence of at least 5,000 Gauss, preferably at least 8,000 Gauss, more preferably at least 12,000 Gauss. In any embodiment of the above aspects / embodiments, the device comprises a single magnetic field sensor. Especially when combined with two magnets, preferably permanent, as described above, the use of the single magnetic field sensor is advantageous as it reduces the number of electronic components and the device's power consumption, thus extending battery life. In any embodiment of the above aspects / embodiments, the device comprises a network interface for transmitting the direction of movement obtained from the wheel, wherein the network interface is preferably a wireless network interface. The use of a wireless interface is particularly advantageous since in many parts of a rail network, providing a power network and communication lines is often prohibitively expensive. It is preferable that the wireless interface be configured to use a low-power, long-range network, such as a LoRa or GSM network. An additional benefit of the device is that raw data does not need to be sent over the network; the device performs data analysis internally using its processor. This allows for the transmission of a limited amount of data, which also extends battery life. In one embodiment, the device further comprises a motion detection sensor, such as an acceleration sensor, wherein at least one processor is configured to obtain a motion value indicative of device movement; and only permits the magnetic field sensor to detect magnetic field values ​​when the motion value exceeds a predefined threshold indicating that a vehicle comprising a railway wheel is approaching, in order to subsequently perform the acquisition and analysis steps. In particular, the detected motion may be a vibration of the device / rail. The motion detection sensor and the magnetic field sensor may be provided in an integrated manner.When the acceleration sensor is used to first detect an approaching vehicle / wheel, energy is saved because magnetic field sensors typically require more power than motion-sensing sensors, such as acceleration sensors. In general, MEMS-type sensors may be used in the device. In a further embodiment, the device includes energy storage means for supplying electrical power to the device. Additionally, portable power supply means such as a solar cell may be provided. According to a further aspect, a method is provided carried out in a device comprising at least one magnet for providing a magnetic field; a magnetic field sensor for detecting a magnetic field value indicative of a flux density, or a change in the flux density of the provided magnetic field; and at least one processor in communication with the magnetic field sensor, the method comprising the at least one processor performing the steps of obtaining a plurality of magnetic field values ​​for respective times from the magnetic field sensor; and analyzing the obtained plurality of magnetic field values ​​so as to obtain a direction of motion of a wheel passing through the device. As will be evident, the device, according to the first aspect, is specifically configured to implement any one or more of the method steps described above and / or below. Furthermore, it will be evident that any of the advantages mentioned for the method(s) and method steps described herein apply to the device, and vice versa. According to an additional aspect, a computer program product is provided comprising computer-executable instructions for performing any method according to any one of the steps of any one of the embodiments described above and / or below, when the program is executed on the device according to the first aspect. According to an additional aspect, a computer program comprising computer-executable instructions is provided for performing the method according to any one of the steps of any one of the embodiments described above and / or below, when the program is executed on the device according to the first aspect. According to another aspect, a data storage device is provided that encodes a program in a machine-readable and machine-executable form to perform one or more stages of any one of the realizations of the method described above and / or below. The accompanying drawings are used to illustrate currently preferred, non-limiting exemplary embodiments of the devices described herein. The foregoing advantages and other features and objects of the description will become more apparent, and the aspects and embodiments will be better understood, from the following detailed description when read in conjunction with the accompanying drawings, in which: Figure 1 is a schematic side view of an embodiment of the device according to the present description located on a side face of a rail carrying a railway vehicle; Figure 2 is a schematic perspective view of an embodiment of the device according to the present description; Figure 3 is a partial side view in a longitudinal direction of the rail as shown in Figure 1; Figure 4 is a schematic view of a side face of the rail showing the device of Figures 1-3 and showing a railway vehicle wheel in various positions compared to the device; Figure 5 is a matrix of graphs showing the magnetic field direction and flux density at various positions along an embodiment of the device of the present description for different contributions to the magnetic field from two magnets of the device, the two magnets having antiparallel pole directions; Figure 6 is a matrix of graphs showing the magnetic field direction and flux density at various positions along an embodiment of the device of the present description for different contributions to the magnetic field from two magnets of the device, the two magnets having parallel pole directions; Figure 7 is a matrix of graphs showing the magnetic field direction and flux density at various positions along an embodiment of the device of the present description for different contributions to the magnetic field from two magnets of the device, the two magnets having antiparallel pole directions with their respective north poles pointing towards each other; Figure 8A is a graph of the magnetic field flux density measured as a function of time and in three directions by the implementation of the device of Figure 5 for a wheel passing in a forward direction; Figure 8B is a graph of the magnetic field flux density measured as a function of time and in three directions by the implementation of the device of Figure 5 for a wheel passing in a backward direction; Figure 9 is a schematic of a portion of the device's housing electronics according to one embodiment of the present description; and Figure 10 is a flowchart of a method according to an embodiment of the present description. As shown in Figure 1, a device 1 for detecting the direction of movement of a wheel on a railway track is placed on an inner side face of a rail 2 over which a locomotive 3 passes. The locomotive 3 is an example of a railway vehicle. The direction of movement of the locomotive 3 (and therefore its wheels) in these figures is indicated as forward when the locomotive moves from right to left, and backward when the locomotive 3 moves to the right. Therefore, device 1 is configured to be placed on or near a side face of the railway track 2. In this embodiment, device 1 comprises a first magnet 12 and a second magnet 14 (see Figure 2). These magnets 12 and 14 are for providing a magnetic field. Device 1 further comprises a magnetic field sensor 18 (see Figure 3) for detecting a magnetic field value indicative of a flux density, or a change in flux density, of the provided magnetic field. The sensor 18 is placed in the housing 16, which contains the electronic parts of device 1, preferably in a watertight manner. Device 1 further comprises at least one processor 40 in communication with the magnetic field sensor 18 (see Figure 9).Furthermore, Device 1 may comprise a battery 44, which is an example of an energy storage medium, an acceleration sensor 42, which is an example of a motion sensor, and a wireless interface 48. Although Device 1 could alternatively or additionally comprise a wired interface, a wireless interface is preferred due to its ease of implementation. The wireless interface 48 is preferably connected via a LoRa or GSM network. Device 1 further comprises a storage unit 46, configured to store instructions for the operation of the processor 40. These instructions may take the form of firmware. In device 1, the first magnet 12 and the second magnet 14 are spaced apart from each other by a first distance b + c (see Figure 4), where the magnetic field sensor 18 is positioned so that it is able to detect the magnetic field originating from both the first magnet 12 and the second magnet 14. As shown in Figures 3 and 4, the device 1 comprises a base 24 and a top side 26 opposite the base 24. The device 1 further comprises a mounting side 28 for mounting the device on a side face of the rail 2. In Figure 3, the device is mounted on a side face of the rail 2 opposite the side face 30. Opposite the mounting side 28, the device 1 comprises a second side face 29. The housing 16 is mounted on this side face 29. The first 12 and second 14 magnets are oriented substantially parallel to the top side 26, wherein the magnetic pole directions of the first 12 and second 14 magnets are substantially perpendicular to the top side 26. As will be clear, and as explained later, the orientation of the first 12 and second 14 magnets can also be different. The first distance b + c is in the range of 20 to 200 mm, where the magnetic field sensor 18 is preferably placed at substantially equal respective distances b and c (in the x-direction) from the first and second magnets. However, in the embodiment shown, the sensor 18 is not directly in the middle between the two magnets 12, 14, but is placed at a distance d in the 'y' direction below the magnets 12, 14. This is done in particular because, at that position, a component or vector of the magnetic field in a measurement direction is the same for both magnets, as explained in more detail below. The processor 40 obtains a plurality of magnetic field values ​​for the respective times from the magnetic field sensor 18. The obtained plurality of magnetic field values ​​is then analyzed so as to obtain a direction of movement of a wheel 4, or a rim or flange 5 thereof, passing through the device 1. An example dataset is shown in Figure 8A. With reference to the highest data "By" in Figure 8A, there is a baseline 71 indicated by a dashed line. Analysis of the plurality of magnetic field values ​​obtained such that a direction of motion of wheel 4 passing through device 1 is obtained can be done by comparing the plurality of magnetic field values ​​with the baseline magnetic field value 71 detected by the magnetic field sensor 18 when no wheel 4 (or other object) is present to detect a relative increase 70 and subsequent decrease 72 (Figure 8A), or a relative decrease 80 and subsequent increase 82 (Figure 8B) of the plurality of magnetic field values ​​compared to the baseline magnetic field value 71 (or baseline 81). Additionally or alternatively, the comparison can be made by detecting whether at a first point in time 78 one of the plurality of magnetic field values ​​is greater than the baseline 71, 81 magnetic field value and at a second point in time 79 after the first point in time another of the plurality of magnetic field values ​​is less than the baseline magnetic field value 71 to determine that the wheel 4 passing through the device 1 moves forward (Figure 8A), so to the left in Figure 1. To determine that wheel 4 is moving in the opposite direction backward, it is then detected that at a first point at time 88 one of the plurality of magnetic field values ​​is less than the baseline magnetic field value 81 and at a second point at time 89 after the first point at time 88 another of the plurality of magnetic field values ​​is greater than the baseline magnetic field value 81 to determine that wheel 4 passing through device 1 is moving in the backward direction (Figure 8B), so to the right in Figure 1 Alternatively or additionally, the comparison comprises detecting whether a first difference between a first value from the plurality of magnetic field values ​​and the baseline magnetic field value is greater than a first threshold value above the baseline magnetic field value or less than a second threshold value below the baseline magnetic field value. When the first difference is greater than the first threshold value, it is detected whether a second difference between a second value from the plurality of magnetic field values ​​and the baseline magnetic field value is less than a third threshold value, the second value corresponding to a later point in time than the first value, to determine that wheel 4 passing through device 1 has a first direction of movement (forward).When the first difference is less than the second threshold value, it is detected if a second difference between a second value of the plurality of magnetic field values ​​and the baseline magnetic field value is greater than a fourth threshold value, the second value corresponds to a later point in time than the first value to determine that wheel 4 passing through device 1 has a second direction of movement (backwards). Device 1 can be configured to detect whether at least one of the plurality of magnetic field values ​​meets a condition indicating the presence of a wheel 4 on track 2, wherein processor 40 is configured to obtain only one direction for wheel 4 when the obtained magnetic field value meets the condition indicating the presence of a wheel on track 2. The condition indicating the presence of a wheel on track 2 can be a condition of exceeding a predetermined threshold value of an absolute difference between at least one of the plurality of magnetic field values ​​and a baseline magnetic field value detected by the magnetic field sensor when no wheel is present.When device 1 has a sensor 18 capable of detecting in two perpendicular directions, such as the 'x' and 'y' directions shown in Figures 2-4, it is possible to check the condition in one of the two directions. For example, in Figure 8A, the signal "Bx" corresponds to the magnetic field flux in the x-direction, while the signal "By" corresponds to the magnetic field flux in the 'y' direction. The "Bx" signal can be used to determine if the condition is met, as it shows a significant drop in signal strength when the wheel passes over it. As in the embodiment shown in Figure 4, it is preferred that the magnetic field sensor 18 be placed in a position where a first direction of the magnetic field of a magnetic field component of the first magnet is different from a second direction of the magnetic field of a magnetic field component of the second magnet. This can be seen in Figures 5-7. In Figure 5, compared to an embodiment in which the magnets 12 and 14 have their magnetic fields aligned antiparallel, the sensor 18 is not placed exactly between the two magnets, since the magnetic field component of the first and second magnets have the same x-component of B there, specifically zero. However, it would still be possible to measure the increase / decrease or decrease / increase in the 'y' component, equivalent to the data shown in Figures 8A and 8B. In Figure 6, with respect to an embodiment where magnets 12 and 14 have their magnetic fields aligned parallel to each other, the midpoint between the magnets has the same component in both the x-direction (zero) and the y-direction (field pointing downwards, as shown by the arrow). Therefore, sensor 18 is positioned slightly below this midpoint. There, the x-component of magnet 12 is to the left in Figure 120, where the contribution of magnet 14 is ignored. In Figure 128, where the contribution of magnet 12 is ignored, the x-component of magnet 14 is to the right. When the contribution of both magnets is taken into account (Figure 124), the net field in the x-direction is zero. Alternatively, it is possible to rotate one of the two magnets so that the middle position can still be used by sensor 18. In Figures 5-7, "Ba" indicates the maximum field generated by magnet 12 and "Bb" indicates the maximum field generated by magnet 14. The respective graphs 104, 124, and 144 show a situation in which there is no wheel 4 or other object present, and sensor 18 measures the magnetic field generated by both magnets 12 and 14. When a wheel approaches from the right (e.g., position 4' in Figure 4), it blocks part of the magnetic field generated by magnet 14. As an example, graphs 102, 122, and 124 show a situation in which magnet 14 generates half the magnetic field it can produce in the situation shown in graphs 104, 124, and 144. With reference to graph 102, it can be seen that the magnetic field component in the 'y' direction at sensor position 18 increases. When the magnetic field of magnet 14 is completely blocked, as shown in graph 100, the magnetic field component in the 'y' direction at sensor position 18 has increased even further. This corresponds to the situation in Figure 8A, where the increase 70 can be seen in the By signal. When wheel 4 moves further to the left (forward) again, the situation shown in Figure 102 is encountered, and the By signal decreases again, corresponding to the situation shown in Figure 104, although only in the 'y' direction. When wheel 4 moves further to the left, the magnetic field generated by magnet 12 is partially blocked, and a situation similar to that in Figure 106 is encountered where the 'y' component of the magnetic field measured by the sensor begins to point downwards, resulting in a decrease in the signal as shown in Figure 8A by the beginning of decrease 72. The minimum in decrease 72 will be obtained when magnet 12 has no contribution, as shown in Figure 108. In practice, this situation is unlikely to be achieved. Figures 5-7 are used to illustrate the operating principle of device 1.As the wheel moves further to the left, a situation similar to Figure 106 will again occur, as wheel 4 will partially block the field of magnet 12 (e.g., position 4" shown in Figure 4). The 'y' component is still directed downwards, but now slightly less so. Once wheel 4 is far enough away, both magnets 12 and 14 will again contribute, as in Figure 104. A similar line of reasoning holds for the reverse motion wheel approaching from the left (e.g., from position 4" in Figure 4), a signal of which is shown in Figure 8B, and it will be understood that the signal in the 'y' direction then first decreases and subsequently increases. This difference is used in Device 1 to determine the direction of motion as described above. Figure 6 shows the field directions and magnitudes of a device where the magnetic axes of magnets 12 and 14 are parallel. Graphs 120–128 are equivalent to graphs 100–108. In this case, the magnetic field in the x-direction would show a signal similar to the "By" signal in Figures 8A and 8B. The magnetic field in the y-direction would show a signal similar to the "Bx" signal in Figures 8A and 8B. Figure 7 shows another example of magnets 12 and 14 oriented with their magnetic axes pointing towards each other, showing that many orientations are possible. Graphs 140-148 are equivalent to graphs 100-108 and 120-128. Here too, the magnetic field in the x-direction would show a signal similar to the "By" signal in Figures 8A and 8B. Although symmetrical positions are shown in Figures 5-7, other non-symmetrical orientations of the magnetic axes of magnets 12 and 14 are still possible. It is preferred that magnets 12 and 14 be permanent magnets. A suitable magnet is an NbFeB magnet produced by Webcraft GmbH, which has a magnetization grade of N45, meaning a remanence (Br) of 13,200–13,700 Gauss. This magnet is cylindrical, 10 mm in diameter and 10 mm high. The pole axis is directed along the longitudinal axis of the cylinder. Device 1 is configured such that at least one magnet 12, 14 provides a magnetic field at least partially influenced by wheel 4 when the wheel passes the device at a distance a (see Figures 3 and 4) of at most 10 cm. It is preferred that the device be made so that it is positioned at a distance in the range of 1.5 to 5 cm from the flange 5 of wheel 4. The magnetic field sensor 18 is positioned so that it detects the change in the magnetic field caused by the wheel as described above. The magnetic field sensor 18 in the embodiments shown is a two-dimensional magnetic field sensor that detects two components of the magnetic field in the first and second perpendicular detection directions, such as the 'x' direction and the 'y' direction shown in Figures 2-4. It is preferred that the first and second respective pluralities of magnetic field values ​​be obtained for respective times from magnetic field sensor 18 for each respective first and second detection direction. The first plurality of magnetic field values ​​is then analyzed by detecting whether the magnetic field values ​​fall below a threshold value that indicates the presence of a wheel on the railway track passing through the device. For example, the first plurality of magnetic field values ​​is the "Bx" signal in Figures 8A and 8B. When the presence of a wheel is detected, the second plurality of magnetic field values ​​is analyzed to determine the direction of movement of the wheel. This analysis of the second plurality of magnetic field values ​​to determine the direction of wheel motion can be performed by estimating a peak position 76, 86 in the first plurality of magnetic field values ​​(Bx). The peak position 76, 86 indicates a moment in time when wheel 4 is substantially above device 1. Subsequently, a sign of a first derivative of the second plurality of magnetic field values ​​(By) near the estimated peak position 76, 86 is determined. When the determined sign of the first derivative is positive (situation in Figure 8B as seen in the signal By between the decrease 80 and the increase 82), the direction of wheel motion is determined to be in a backward direction along the railway track.When the determined sign of the first derivative is negative (situation in Figure 8A as seen in signal By between increase 70 and decrease 72), the direction of movement of the wheel is determined to be in the backward direction along railway track 2. Although this is an efficient and practical way of determining the direction of movement, it will be evident to the expert in the technique that various other ways of determining the increase / decrease or decrease / increase of the measured signal exist. Device 1 may further comprise additional magnets 20-22 to suppress magnetic fields induced in rail 2 by railway vehicles 3 passing over rail 2 near device 1. The magnets 20-22 are positioned close to the mounting side 28 to achieve the greatest beneficial effect with respect to magnetomechanical effects as described above. The additional magnets 20-22 can also operate a mounting magnet to mount the device on rail 2. Preferably, the additional magnets 20-22 have a pole direction substantially perpendicular to the mounting side 28. It is preferable that the 20-22 magnets be permanent magnets. A suitable magnet is an NbFeB magnet produced by Weber GmbH, which has a magnetization grade of N42, meaning a remanence (Br) of 12,900-13,200 Gauss. This magnet is cylindrical, 20 mm in diameter and 10 mm high. The pole axis is directed along the longitudinal axis of the cylinder. The described device 1 advantageously requires only a single magnetic field sensor 18 to accurately detect wheel 4 and optionally also to obtain the direction of movement of wheel 4, as described with respect to preferred embodiments. It is understood that the speed of vehicle 3 can also be obtained based on the signals from, for example, Figures 8A and 8B. When the increase and decrease occur over a shorter time interval, vehicle 3 moves faster than when the increase and decrease occur over a longer period. Calibration of device 1 then allows the speed of vehicle 3 to be determined. Device 1 may comprise a motion sensor, such as an acceleration sensor 42. A motion value indicative of device movement may then be obtained, and the magnetic field sensor for detecting magnetic field values ​​is only enabled when the motion value exceeds a predefined threshold indicating that a vehicle comprising a railway wheel is approaching, in order to subsequently perform the acquisition and analysis steps. For example, the motion value may be the variance of a plurality of data points obtained from the motion sensor (e.g., the acceleration sensor), and a variance of the data points may be determined to obtain an indication of the vibration level. It may then be determined whether the variance exceeds a predefined variance indicative of a threshold vibration level. As shown in Figure 10, a method for detecting a wheel on a railway track comprises obtaining 50 a plurality of magnetic field values ​​for the respective times from the magnetic field sensor; and analyzing 52 the obtained plurality of magnetic field values ​​so as to obtain a direction of motion of a wheel passing through the device. Other steps are described in the preceding description in relation to device 1, or are easily derived from them. A person skilled in the art would readily recognize that the stages of the various methods described above can be performed by programmed computers. In this document, some embodiments also purport to cover program storage devices, for example, machine-readable digital data storage media, that encode machine-executable instruction programs, where such instructions perform some or all of the stages of the methods described above. Program storage devices may be, for example, digital memories, magnetic storage media such as magnetic disks and tapes, hard drives, or optically readable digital data storage media. The embodiments also purport to cover computers programmed to perform these stages of the methods described above. The functions of the various elements shown in the figures, including any functional blocks labeled as "units," "processors," or "modules," can be provided by dedicated hardware, as well as hardware capable of running software such as firmware in conjunction with the appropriate software. When provided by a processor, the functions can be provided by a single dedicated processor, a single shared processor, or a plurality of individual processors, some of which may be shared.Furthermore, the explicit use of the term "unit," "processor," or "controller" should not be interpreted as referring exclusively to hardware capable of executing software, and may implicitly include, without limitation, digital signal processor (DSP) hardware, network processors, application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), read-only memory (ROM) for storing software, random-access memory (RAM), and non-volatile storage. Other hardware, both conventional and custom, may also be included. Similarly, any switches shown in the Figures are purely conceptual. Their function may be accomplished through program logic, dedicated logic, the interaction of program control and dedicated logic, or even manually—the particular technique may be selected by the implementer as best understood from the context. Those skilled in the art should appreciate that any block diagrams herein represent conceptual views of illustrative circuits incorporating the principles of the invention. Similarly, it will be appreciated that any flowcharts, flow diagrams, state transition diagrams, pseudocode, and the like represent various processes that can be substantially represented in computer-readable medium and executed by a computer or processor, whether or not such computer or processor is explicitly shown. Although the principles of the invention have been set forth above in connection with specific embodiments, it should be understood that this description is given merely as an example and not as a limitation of the scope of protection determined by the appended claims.

Claims

1. A device for detecting the direction of movement of a wheel on a railway track, the device being configured to be placed on or near a side face of the railway track, the device comprising: at least one permanent magnet for providing a magnetic field; a magnetic field sensor for detecting a magnetic field value indicative of a flux density, or a change in the flux density of the provided magnetic field; at least one processor in communication with the magnetic field sensor, wherein the at least one processor is configured to: obtain a plurality of magnetic field values ​​for the respective times from the magnetic field sensor; and analyze the obtained plurality of magnetic field values ​​so as to obtain a direction of movement of a wheel passing through the device.

2. A device according to claim 1, wherein the processor is configured to analyze the obtained plurality of valuesof a magnetic field such that a direction of motion of a wheel passing through the device is obtained by comparing the plurality of magnetic field values ​​with a baseline magnetic field value detected by the magnetic field sensor when no wheel is present, to detect a relative increase and subsequent decrease, or a relative decrease and subsequent increase, of the plurality of magnetic field values ​​compared to the baseline magnetic field value.

3. Device according to claim 2, wherein the comparison comprises detecting whether, at a first point in time, one of the plurality of magnetic field values ​​is greater than the baseline magnetic field value, and at a second point in time after the first point in time, another of the plurality of magnetic field values ​​is smaller than the baseline magnetic field value, to determine that the wheel passing through thethe device has a first direction of motion; and detecting whether at a first point in time one of the plurality of magnetic field values ​​is less than the baseline magnetic field value and at a second point in time after the first point in time another of the plurality of magnetic field values ​​is greater than the baseline magnetic field value to determine that the wheel passing through the device has a second direction of motion different from the first direction of motion; and / or wherein the comparison comprises detecting whether a first difference between a first value of the plurality of magnetic field values ​​and the baseline magnetic field value is greater than a first threshold value above the baseline magnetic field value or less than a second threshold value below the baseline magnetic field value; when the first difference is greater than the first threshold value,Detecting whether a second difference between a second value from the plurality of magnetic field values ​​and the baseline magnetic field value is less than a third threshold value, the second value corresponding to a later point in time than the first value, to determine that the wheel passing through the device has a first direction of movement; and when the first difference is less than the second threshold value, detecting whether a second difference between a second value from the plurality of magnetic field values ​​and the baseline magnetic field value is greater than a fourth threshold value, the second value corresponding to a later point in time than the first value, to determine that the wheel passing through the device has a second direction of movement different from the first direction of movement.

4. Device according to any one of the preceding claims, the at least one processor being further configured toDetecting whether at least one of the plurality of magnetic field values ​​obtained meets a condition indicating the presence of a wheel on the railway track, wherein the at least one processor is configured to obtain only one wheel direction when the obtained magnetic field value meets the condition indicating the presence of a wheel on the railway track, wherein preferably the condition indicating the presence of a wheel on the railway track is a condition of exceeding a predetermined fifth threshold value of an absolute value of the difference between at least one value of the plurality of magnetic field values ​​and a baseline magnetic field value detected by the magnetic field sensor when no wheel is present.

5. Device according to any one of the preceding claims, wherein the magnetic field sensor is positioned such that it is outside a point of symmetry of the at least one magnet and an longitudinal direction of therailway track when the device is placed on or near the side face of the railway track, wherein preferably, when the at least one magnet is positioned so that its magnetic pole axis is perpendicular to a longitudinal direction of the railway track, the magnetic field sensor is placed adjacent to the magnetic pole axis.

6. Device according to any of the preceding claims, the device comprising a first and a second magnet for providing the magnetic field, wherein the first and second magnets are spaced apart from each other by a first distance, wherein the magnetic field sensor is positioned so that it is capable of detecting the magnetic field originating from both the first and the second magnet, wherein preferably the magnetic field sensor is placed in a position where a first direction of the magnetic field of a magnetic field component of the7. Device according to claim 6, wherein the first magnet is different from a second magnetic field direction of a magnetic field component of the second magnet.

8. Device according to claim 6, wherein the first and second magnets are positioned such that the magnetic pole directions of the first and second magnets are substantially antiparallel; or wherein the first and second magnets are positioned such that the magnetic pole directions of the first and second magnets are substantially parallel.

9. Device according to any of claims 6 and 7, wherein the device comprises a base and an upper side opposite the base, wherein the first and second magnets are positioned substantially parallel to the upper side, wherein the magnetic pole directions of the first and second magnets are substantially perpendicular to the upper side; and / or wherein the first distance is in the range of 20 to 200 mm, where the magnetic field sensor is placedPreferably at substantially equal respective distances from the first and second magnets, wherein the first and second magnets preferably have a remanence of at least 5000 Gauss, more preferably at least 8000 Gauss, and most preferably at least 12000 Gauss.

9. A device according to any one of the preceding claims, wherein the at least one magnet is configured such that the provided magnetic field is at least partially influenced by the wheel when the wheel passes the device at a distance of at most 10 cm, wherein the magnetic field sensor is positioned so as to detect the change in the magnetic field caused by the wheel, wherein the magnetic field sensor is preferably distanced from the at least one magnet by a second distance that is of the same order of magnitude as, or equal to, a third distance between the at least one magnet and a closer position of the wheel when the wheel passes the device.when placed on or near the railway track.

10. Device according to any of the preceding claims, wherein the magnetic field sensor is a two-dimensional magnetic field sensor that detects two magnetic field components in the first and second perpendicular detection directions, wherein the processor is configured to obtain a first and a second respective plurality of magnetic field values ​​for the respective times of the magnetic field sensor for each first and second detection direction; analyzing the first obtained plurality of magnetic field values ​​by detecting whether the magnetic field values ​​fall below a sixth threshold value, or rise above a seventh threshold value, indicating the presence of a wheel on the railway track passing through the device; when the presence of a wheel is detected, analyzing the second plurality of magnetic field values ​​to determine the direction ofwheel movement.

11. Device according to claim 10, dependent on claim 6, wherein the at least one processor is configured to analyze the second plurality of magnetic field values ​​to determine the direction of wheel movement by estimating a peak position in the first plurality of magnetic field values, the peak position indicating a moment in time when the wheel is substantially above the device; determining a sign of a first derivative of the second plurality of magnetic field values ​​near the estimated peak position; when the determined sign of the first derivative is positive, determining the direction of wheel movement so that it is in a first direction along the railway track; and when the determined sign of the first derivative is negative, determining the direction of wheel movement so that it is in a second direction along the railway track. 12.A device according to claim 10 or 11, depending on claim 7, wherein, when the magnetic pole directions of the first and second magnets are substantially antiparallel, the first sensing direction is substantially parallel to an upper side of the device, the upper side being opposite a base of the device and configured to be positioned at least partially below the wheel when the device is placed on or near the railway track, wherein the first sensing direction is substantially parallel to a mounting side of the device, the mounting side being configured to position the device on the side face of the rail; or wherein, when the magnetic pole directions of the first and second magnets are substantially parallel, the second sensing direction is substantially parallel to an upper side of the device, the upper side being opposite a base of the device and configured to be positionedless partially below the wheel when the device is placed on or near the railway track, wherein the second detection direction is substantially parallel to a mounting side of the device, the mounting side being configured to place the device on the side face of the rail.

13. A device according to any one of the preceding claims, further comprising at least one additional magnet for suppressing magnetic fields induced in the rail by railway vehicles passing near the device, wherein preferably the at least one additional magnet is a permanent magnet having a remanence of at least 5000 Gauss, preferably at least 8000 Gauss, more preferably at least 12000 Gauss; and / or comprising an upper side opposite a base of the device and configured to be placed at least partially below the wheel when the device is placed on the railway track, a mounting side configuredfor placing the device on the side face of the rail, wherein at least one additional magnet functions as at least one mounting magnet for mounting the device to the rail, the at least one mounting magnet being positioned with a pole direction substantially perpendicular to the mounting side; and / or wherein the device comprises a single magnetic field sensor; and / or further comprising a network interface for transmitting the direction of movement obtained from the wheel, wherein preferably the network interface is a wireless network interface; and / or further comprising a sensor for detecting movement, such as an acceleration sensor, wherein at least one processor is configured to obtain a movement value indicative of movement of the device; and only permitting the magnetic field sensor to detect magnetic field values ​​when the movement value exceeds a predefined threshold indicating that a vehicle comprising a wheel for the track14. Method for detecting the direction of movement of a wheel on a railway track, the method being carried out in a device configured to be placed on or near a side face of the railway track, the device comprising at least one permanent magnet to provide a magnetic field; a magnetic field sensor to detect a magnetic field value indicative of a flux density, or a change in the flux density of the provided magnetic field; and at least one processor in communication with the magnetic field sensor, the method comprising the at least one processor performing the steps of: obtaining a plurality of magnetic field values ​​for the respective times from the magnetic field sensor; and analyzing the obtained plurality of values ​​ofmagnetic field such that a direction of movement is obtained for a wheel passing through the device.

15. Method according to claim 14, wherein a device according to any one of claims 1-13 is used.

16. Computer program product comprising computer-executable instructions for performing the method of claim 14 or 15, when the program is executed on the device according to any one of claims 1-13.