kind3r / esp8266-xpressnet-lib

XpressNet library from Philipp Gahtow converted to run on ESP8266
5 stars 1 forks source link

Nothing being sent on the XpressNet bus #6

Open sierramike opened 1 year ago

sierramike commented 1 year ago

Hello,

First, thanks for working on the ESP8266 port of this library ! This enables so much more possibilities than the regular arduini !

However, I'm having some troubles. I Connected receive pin on D4, data pin on D2 ans control pin on D1, and changed the start call to reverse the control pin as it didn't work by default. Having done that, and used the XpressNet_Sniffer example, I'm receiving data from the XpressNet bus, but not everything.

I'm using the Digikeijs DR5000 command station and connected a Lenz XpressNet panel to it to gain one more RJ12 plug. Plugged a multiMAUS on one hand, and my RS485/ESP8266 on the other hand. I'm also using a wlanMAUS.

Transmission between regular multiMAUS and wlanMAUS is working perfectly thru the command station (changes in turnouts and lok functions are reflecting from one device to the other).

On the ESP8266 serial monitor, I can only see turnout commands and power commands showing. Lok speed, direction and functions are not displayed.

Well, my first aim is to send/receive turnout commands so I then tried to call "setTrntPos(0, 30, B01 (or B02 as per the data received));" but nothing changes on the multiMAUS display. I checked the X-BUS RX status led on the DR5000, it blinks some times fast when sending commands from the multiMAUS, but nothing when I'm trying to send from the ESP8266.

I tried to comment out the "#if defined(AVR)" in the XNetsend methods, in order to have the control pin being set when trying to send data, but nothing's working. Tried also calling "getTrntInfo" but not working (returns always 0 even if I change the turnout on the multiMAUS).

I know that turnout 31 on multiMAUS is id 30 on the ESP8266 side, but even when calling methods with address 30 on the ESP8266, I checked addresses 30/31/32 on the multiMAUS to be on the safe side.

What do I miss to have the data transmission working ? And what do I miss to read the lok data ?

Thanks !