dusanmsk / railduino-udp

Alternative firmware for Railduino v1.3 based on udp boradcasts instead of modbus tcp
6 stars 5 forks source link

UDP messages not getting picked up #6

Closed koraysels closed 4 years ago

koraysels commented 6 years ago

I really can't get this to work with my loxone.. I flashed the correct firmware and checked my loxone settings (see screenshots)

I don't undertand why it is not working? I tried all possible combinations .. please has anybody got this worling with UDP ?

image

image

PavSedl commented 6 years ago

Please check your Command for ON and OFF - there should be string for relay output - "do" instead of "ro" ... e.g. "rail4 do6 on"

koraysels commented 6 years ago

Hi, i tried do6 and ro6 and rail1 to rail4 ... still nothing.. Also how can I check if the device is in my network ? It does not respond to ping ...

PavSedl commented 6 years ago

OK, then first you need to check your LAN connection to your Railduino. You should see the device in your router's administration once it is given with IP address.

koraysels commented 6 years ago

Well i can’t see it. My entire Home network is Based on the subnet structure 192.168.1.xx And I cannot find 192.168.150.151 on my network..

Sent from my iPhone

On 8 Jan 2018, at 10:23, PavSedl notifications@github.com wrote:

OK, then first you need to check your LAN connection to your Railduino. You should see the device in your router's administration once it is given with IP address.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

dusanmsk commented 6 years ago

It doesn't matter what ip addres has loxone and what addres has railduino. Railduino sets it's address indepedently and statically using address dip switch.

The only requirement is to have loxone and railduino in single physical network (switch), because it uses udp broadcasts which doesn't pass through routers.

Connect loxone and railduino directly to single switch, re-check your loxone configuration and it shoukd work.

koraysels commented 6 years ago

They are connected to a single 10port gigabit switch (the lights on the ethernet shield are blinking and the miniserver also has a solid connection)

So I don't need to input an address in the Address field of the loxone virtual output ? Can't I check it with a tool or something? I tried packetsender to send UDP packets manually (whithout always having to reflash the miniserver) but nothing works..

dusanmsk commented 6 years ago

You should check what's going on with wireshark and filter by "udp && udp.port == 44444" for relays or "udp && udp.port == 55555" for inputs

koraysels commented 6 years ago

alright I'll do that when I'm back home tongiht! I hope my railduino is not broken or something :)

Thanks for your time man

PavSedl commented 6 years ago

Are you sure that you reflashed Railduino correctly ? You have bought Modbus TCP version of Railduino ...

koraysels commented 6 years ago

@PavSedl I bought the TCP modbus version with the ethernet shield and the mega 2560 R3, that is correct. I flashed the hex file using different methods, I even tried once with compiling it myself in the arduino IDE and flashing it directly to no avail.. It might be something stupid that I am missing.. But I can't seem to fix it.. I will check with wireshark and sniff the UDP messages in my local network tonight when I'm back home.

alxzndr commented 6 years ago

@koraysels I had a similar problem. After 2 days of debugging I found out it was caused by a bad ethernet shield. I replaced it with another ethernet shield i had lying around and everything started working perfectly.

koraysels commented 6 years ago

image

well it does look like the ud packages are being sent from my miniserver to the broadcast address, but I cant hear relays clicking or see my lights turn on :( damn

PavSedl commented 6 years ago

OK, please try to see in Loxone Config UDP monitor if it gets any packets from Railduino when set some of the digital inputs on.

koraysels commented 6 years ago

hmm I replaced the ethernet shield with a genuine ARDUINO ethernet shield onstead of the one that came with the railduino..now it works..

PavSedl commented 6 years ago

Ouch, so bad shield ? if you are willing to send me the one which is not working, I will send you another one. You have ordered the Railduino more then a year ago - and in that time there were some technical issues with the ethernet shields

koraysels commented 6 years ago

sure thing! send me an email with the specifics. you have my emailaddress right ?