¿ªÔÆÌåÓýGabor,
The real problem is that you are trying to force the hardware to do something it wasn¡¯t really designed for. ?Software can¡¯t fix that. The hardware was designed to detect equipment over a large area ( it is a ¡°block¡± sensor ). ?There are certain optimizations performed by the hardware to handle detection in the area. ?We can¡¯t change that behavior. What you really want for your situation is a sensor that detects a small area ( sometimes called a spot sensor). ?Optical sensors are the most common type of spot sensor.
There isn¡¯t a CAN traffic controller involved. ?There is a Z21TrafficController involved. There are some examples of messages in the tests: This is java code, not python, so the mechanics of producing messages may differ slightly. I do not believe the approach you have proposed, because I don¡¯t believe it will have the impact you think it will.
The difference between the LocoNet ( and XpressNet) connections vs the CAN connection on the Z21 is that Roco doesn¡¯t document a method for sending messages to the CAN devices. They do not even document a method to set the addresses and other parameters, which forces you to use Rico¡¯s software for those operations. The methods documented in the Z21 communication protocol only describe the Z21s responses to can based occupancy and RailCom detectors. Paul |