By default do Beyonwiz devices advertise themselves on the network?

Moderators: Gully, peteru

Post Reply
michal
Master
Posts: 104
Joined: Tue Oct 13, 2015 17:24
Location: Brisbane

By default do Beyonwiz devices advertise themselves on the network?

Post by michal » Sat Aug 18, 2018 17:24

Hi,

I'm working on an Enigma2 media player component for the Home Assistant home automation platform and I was hoping I could implement an auto discovery mode.

Do Enigma2 devices advertise themselves on the network somehow? I've not been able to find any information on this.

Thanks in advance for any info.

Regards,
Michal

prl
Wizard God
Posts: 32703
Joined: Tue Sep 04, 2007 13:49
Location: Canberra; Black Mountain Tower transmitters

Re: By default do Beyonwiz devices advertise themselves on the network?

Post by prl » Sat Aug 18, 2018 17:35

michal wrote:
Sat Aug 18, 2018 17:24
Do Enigma2 devices advertise themselves on the network somehow? I've not been able to find any information on this.

They advertise themselves as Windows sharing servers, if they have shares configured (the /media/hdd/movie directory is shred by default), and as DLNA servers if they have the DLNA server enabled (which also makes the contents of /media/hdd/movie available).

The question in the title doesn't quite match the question in the post. The Beyonwiz T and U series firmware is based on Enigma2, but they're not the only Enigma2-based devices. However, the answer is very likely similar for most Enigma2-based systems, though the defaults may be different on other brands.

The other network access features on the Beyonwizes (FTP, Telnet, ssh, HTTP) aren't protocols that advertise.
Peter
T4 HDMI
U4, T4, T3, T2, V2 test/development machines
Sony BDV-9200W HT system
LG OLED55C9PTA 55" OLED TV

User avatar
MrQuade
Uber Wizard
Posts: 11844
Joined: Sun Jun 24, 2007 13:40
Location: Perth

Re: By default do Beyonwiz devices advertise themselves on the network?

Post by MrQuade » Sat Aug 18, 2018 17:35

They will register themselves with the network's SMB master browser and it will advertise its upnp server on the network as well.

It also runs zeroconf for a variety of other services I believe.

What did you have in mind?
Last edited by MrQuade on Sat Aug 18, 2018 17:42, edited 1 time in total.
Logitech Harmony Ultimate+Elite RCs
Beyonwiz T2/3/U4/V2, DP-S1 PVRs
Denon AVR-X3400h, LG OLED65C7T TV
QNAP TS-410 NAS, Centos File Server (Hosted under KVM)
Ubiquiti UniFi Managed LAN/WLAN, Draytek Vigor130/Asus RT-AC86U Internet
Pixel 4,5&6, iPad 3 Mobile Devices

prl
Wizard God
Posts: 32703
Joined: Tue Sep 04, 2007 13:49
Location: Canberra; Black Mountain Tower transmitters

Re: By default do Beyonwiz devices advertise themselves on the network?

Post by prl » Sat Aug 18, 2018 17:37

MrQuade wrote:
Sat Aug 18, 2018 17:35
... the network's SMB matter browser ...

Mass spectroscopy service?

Or just Trevor at it again? ;)
Peter
T4 HDMI
U4, T4, T3, T2, V2 test/development machines
Sony BDV-9200W HT system
LG OLED55C9PTA 55" OLED TV

User avatar
MrQuade
Uber Wizard
Posts: 11844
Joined: Sun Jun 24, 2007 13:40
Location: Perth

Re: By default do Beyonwiz devices advertise themselves on the network?

Post by MrQuade » Sat Aug 18, 2018 17:55

prl wrote:
Sat Aug 18, 2018 17:37
Or just Trevor at it again?
I really need to have word with him.
MrQuade wrote:
Sat Aug 18, 2018 17:35
It also runs zeroconf for a variety of other services I believe.
Sorry, I was thinking of nmap, not zeroconf.
Logitech Harmony Ultimate+Elite RCs
Beyonwiz T2/3/U4/V2, DP-S1 PVRs
Denon AVR-X3400h, LG OLED65C7T TV
QNAP TS-410 NAS, Centos File Server (Hosted under KVM)
Ubiquiti UniFi Managed LAN/WLAN, Draytek Vigor130/Asus RT-AC86U Internet
Pixel 4,5&6, iPad 3 Mobile Devices

prl
Wizard God
Posts: 32703
Joined: Tue Sep 04, 2007 13:49
Location: Canberra; Black Mountain Tower transmitters

Re: By default do Beyonwiz devices advertise themselves on the network?

Post by prl » Sat Aug 18, 2018 18:03

MrQuade wrote:
Sat Aug 18, 2018 17:55
MrQuade wrote:
Sat Aug 18, 2018 17:35
It also runs zeroconf for a variety of other services I believe.
Sorry, I was thinking of nmap, not zeroconf.

Nmap or nmdb?
Peter
T4 HDMI
U4, T4, T3, T2, V2 test/development machines
Sony BDV-9200W HT system
LG OLED55C9PTA 55" OLED TV

User avatar
MrQuade
Uber Wizard
Posts: 11844
Joined: Sun Jun 24, 2007 13:40
Location: Perth

Re: By default do Beyonwiz devices advertise themselves on the network?

Post by MrQuade » Sat Aug 18, 2018 18:13

prl wrote:
Sat Aug 18, 2018 18:03
Nmap or nmdb?
I meant nmap the network discovery tool. Though I suspect I was confusing it for a discovery server, I think it is a discovery client?
Logitech Harmony Ultimate+Elite RCs
Beyonwiz T2/3/U4/V2, DP-S1 PVRs
Denon AVR-X3400h, LG OLED65C7T TV
QNAP TS-410 NAS, Centos File Server (Hosted under KVM)
Ubiquiti UniFi Managed LAN/WLAN, Draytek Vigor130/Asus RT-AC86U Internet
Pixel 4,5&6, iPad 3 Mobile Devices

michal
Master
Posts: 104
Joined: Tue Oct 13, 2015 17:24
Location: Brisbane

Re: By default do Beyonwiz devices advertise themselves on the network?

Post by michal » Sat Aug 18, 2018 18:21

Wow! Thanks for the quick responses.

I'm just searching for a quick and not very intrusive way of discovering Enigma2 devices (in my case the Beyonwiz T4 but hopefully also others) on a network.

As far as I can tell UPNP/DLNA is not advertising my T4. I don't believe I ever turned OFF the feature but perhaps I should try turning it on. Could just make it a requirement for auto-discovery.

Regards,
Michal

prl
Wizard God
Posts: 32703
Joined: Tue Sep 04, 2007 13:49
Location: Canberra; Black Mountain Tower transmitters

Re: By default do Beyonwiz devices advertise themselves on the network?

Post by prl » Sat Aug 18, 2018 18:25

MrQuade wrote:
Sat Aug 18, 2018 18:13
prl wrote:
Sat Aug 18, 2018 18:03
Nmap or nmdb?
I meant nmap the network discovery tool. Though I suspect I was confusing it for a discovery server, I think it is a discovery client?

Nmap is a port scanning tool. It's in the firmware, but it doesn't seem to run as a service (I'm not even sure that it can).
Peter
T4 HDMI
U4, T4, T3, T2, V2 test/development machines
Sony BDV-9200W HT system
LG OLED55C9PTA 55" OLED TV

IanSav
Uber Wizard
Posts: 16846
Joined: Tue May 29, 2007 15:00
Location: Melbourne, Australia

Re: By default do Beyonwiz devices advertise themselves on the network?

Post by IanSav » Sat Aug 18, 2018 18:34

Hi Michal,

Perhaps if you describe what you are trying to achieve we could offer more ideas.

With all the devices I have added to my Google Home there is usually a scan of the local network to find devices that may be of interest. You could scan the local network and see what devices have port 80 open. You could then see which of those devices are a Beyonwiz / Enigma2 box by looking for the OpenWebif responses.

By the way, if you talking about Google Home integration then I am VERY interested in what you are doing. :)

Regards,
Ian.

michal
Master
Posts: 104
Joined: Tue Oct 13, 2015 17:24
Location: Brisbane

Re: By default do Beyonwiz devices advertise themselves on the network?

Post by michal » Sat Aug 18, 2018 19:02

I use a home automation platform called Home Assistant (https://www.home-assistant.io/).

It has a component type called media_player (https://www.home-assistant.io/components/media_player/). This doesn't actually play media but allows for limited control and tracking of attributes.

A feature of components can be discovery (https://www.home-assistant.io/components/discovery/), meaning that every time you start Home Assistant, all enabled components can detect the device on your network.

And while writing this post I came across "This option is only available for built-in components.".. So I've learnt two things. I cannot add discovery since my component is a LONG way from being included in Home assistant, and two it must use zeroconf/mDNS and/or uPnP.

So perhaps this will be a problem for the future :P

And Home Assistant can integrate with Google Home (and Alexa) so you could certainly do some interesting things.

Regards,
Michal

P.S. Playing around with a new install and I've attached what my engima2 component looks like.
Screen Shot 2018-08-18 07 03 17 PM.png
My enigma2 Home Assistant media player component
Screen Shot 2018-08-18 07 03 17 PM.png (119.04 KiB) Viewed 2030 times
Last edited by michal on Sat Aug 18, 2018 19:13, edited 3 times in total.

prl
Wizard God
Posts: 32703
Joined: Tue Sep 04, 2007 13:49
Location: Canberra; Black Mountain Tower transmitters

Re: By default do Beyonwiz devices advertise themselves on the network?

Post by prl » Sat Aug 18, 2018 19:05

The DLNA server on the Beyonwizes (miniDLNA) responds to SSDP multicast discovery requests for UPnP.
Peter
T4 HDMI
U4, T4, T3, T2, V2 test/development machines
Sony BDV-9200W HT system
LG OLED55C9PTA 55" OLED TV

michal
Master
Posts: 104
Joined: Tue Oct 13, 2015 17:24
Location: Brisbane

Re: By default do Beyonwiz devices advertise themselves on the network?

Post by michal » Sat Aug 18, 2018 19:23

Thanks Peter!

I just trying doing a discovery using https://github.com/flyte/upnpclient and nothing came up :/
I'm certain at LEAST the Sonos devices and my Roku should come up.

Regards.
Michal

User avatar
peteru
Uber Wizard
Posts: 9735
Joined: Tue Jun 12, 2007 23:06
Location: Sydney, Australia
Contact:

Re: By default do Beyonwiz devices advertise themselves on the network?

Post by peteru » Sat Aug 18, 2018 21:49

Beyonwiz firmware runs avahi and registers a number of services. You might want to start looking here and here for specifics.

"Beauty lies in the hands of the beer holder."
Blog.

User avatar
MrQuade
Uber Wizard
Posts: 11844
Joined: Sun Jun 24, 2007 13:40
Location: Perth

Re: By default do Beyonwiz devices advertise themselves on the network?

Post by MrQuade » Sat Aug 18, 2018 22:29

peteru wrote:
Sat Aug 18, 2018 21:49
Beyonwiz firmware runs avahi and registers a number of services. You might want to start looking here and here for specifics.
Ahhh, THAT was the service I was trying to remember!!
Logitech Harmony Ultimate+Elite RCs
Beyonwiz T2/3/U4/V2, DP-S1 PVRs
Denon AVR-X3400h, LG OLED65C7T TV
QNAP TS-410 NAS, Centos File Server (Hosted under KVM)
Ubiquiti UniFi Managed LAN/WLAN, Draytek Vigor130/Asus RT-AC86U Internet
Pixel 4,5&6, iPad 3 Mobile Devices

IanSav
Uber Wizard
Posts: 16846
Joined: Tue May 29, 2007 15:00
Location: Melbourne, Australia

Re: By default do Beyonwiz devices advertise themselves on the network?

Post by IanSav » Sat Aug 18, 2018 23:05

Hi Michal,

That looks like an interesting platform with lots of possibilities. I will investigate this in more detail when I finish my current Enigma2 updates. The local control aspect is very interesting for me.

Regards,
Ian.

michal
Master
Posts: 104
Joined: Tue Oct 13, 2015 17:24
Location: Brisbane

Re: By default do Beyonwiz devices advertise themselves on the network?

Post by michal » Sun Aug 19, 2018 17:40

I'm trying to find a way via python to list all upnp devices (including the Beyonwiz T4) on a network and I've not had any luck. All the implementations I've tried either return nothing or don't run for one reason or another.

Do anyone here have a snippet of code that works for you on your network?

Regards,
Michal

prl
Wizard God
Posts: 32703
Joined: Tue Sep 04, 2007 13:49
Location: Canberra; Black Mountain Tower transmitters

Re: By default do Beyonwiz devices advertise themselves on the network?

Post by prl » Sun Aug 19, 2018 18:47

Beyonwizes themselves use djmount to discover UPnP servers on the net and mount them as filesystems under /mnt/upnp, though that's hardly what I'd call a "snippet" of code.
Peter
T4 HDMI
U4, T4, T3, T2, V2 test/development machines
Sony BDV-9200W HT system
LG OLED55C9PTA 55" OLED TV

IanSav
Uber Wizard
Posts: 16846
Joined: Tue May 29, 2007 15:00
Location: Melbourne, Australia

Re: By default do Beyonwiz devices advertise themselves on the network?

Post by IanSav » Sun Aug 19, 2018 19:20

Hi Michal,

I just bought another Raspberry Pi to give this project a try. I hope it will solve some issues I have with my current home automation by creating some needed bridges between systems.

Regards,
Ian.

michal
Master
Posts: 104
Joined: Tue Oct 13, 2015 17:24
Location: Brisbane

Re: By default do Beyonwiz devices advertise themselves on the network?

Post by michal » Sun Aug 19, 2018 20:07

Thanks Peter.

Ian, what sort of issues do you currently have?

IanSav
Uber Wizard
Posts: 16846
Joined: Tue May 29, 2007 15:00
Location: Melbourne, Australia

Re: By default do Beyonwiz devices advertise themselves on the network?

Post by IanSav » Sun Aug 19, 2018 22:16

Hi Michal,
michal wrote:
Sun Aug 19, 2018 20:07
Ian, what sort of issues do you currently have?
My Clipsal C-Bus home automation system does not link to Google Home. This app may give me the bridge I want. This may also gives me alternate control of my TVs and PVRs. I currently use Broadlink IR emitters but they are not well linked to Google Home or Google Assistant. Everything has to be done through scenes which a a pain.

Regards,
Ian.

michal
Master
Posts: 104
Joined: Tue Oct 13, 2015 17:24
Location: Brisbane

Re: By default do Beyonwiz devices advertise themselves on the network?

Post by michal » Sun Aug 19, 2018 23:22

I have two broadlink IR emitters I don't use because they just weren't what I wanted (AC control, MUCH more complicated than simple IR codes).

I'd be immensely interested in any use cases you have that you want to resolve.

Also, the enigma2 component I have created (very early stages) is available at https://github.com/mihalski/homeassista ... dia_player

This is the very first place that knows about it :P I plan to create other components too, ie sensor.. but I'm not sure what component would allow me to control things that are not covered by media_player.. Still, I have no use cases for such things, but you may.,

Regards,
Michal

IanSav
Uber Wizard
Posts: 16846
Joined: Tue May 29, 2007 15:00
Location: Melbourne, Australia

Re: By default do Beyonwiz devices advertise themselves on the network?

Post by IanSav » Sun Aug 19, 2018 23:35

Hi Michal,

I am at the very beginning of what looks like a bit of a learning curve.

I don't know why Broadlink needs to have all the home automation actions defined by scenes. Their UI sucks! I would love to be able to batch edit devices without needing to use the UI. Do you know if this is possible?

I have already written the code to interact with C-Bus devices in both Perl and JavaScript. A switch to Python shouldn't be that hard. I just need to learn about developing in Home Automation.

Regards,
Ian.

michal
Master
Posts: 104
Joined: Tue Oct 13, 2015 17:24
Location: Brisbane

Re: By default do Beyonwiz devices advertise themselves on the network?

Post by michal » Sun Aug 19, 2018 23:53

Hi Ian,

I have no experience with C-Bus but I found https://github.com/the1laz/cgateweb and in my experience anything to MQTT is a winning formula. Seems like it would be a great if an hassos addon could be created for this.

There's integrated Broadlink support which SHOULD work. https://www.home-assistant.io/component ... broadlink/
May I suggest you joint the Discord and browse the reddit for home assistant.

Let me know how things go.

Regards,
Michal

P.S. If you are not aware of it I also suggest finding out about Node-RED. It's available as an addon for Hassio.

Post Reply

Return to “Networking”