Go to advanced search

by arjunm009
Wed Aug 15, 2018 1:43 pm
Forum: Beginners
Topic: Device discovery without wifi or ethernet
Replies: 1
Views: 190

Device discovery without wifi or ethernet

In systems like Alexa or Sonos, the mobile app asks for location access and from there it tries to find the device. After that one is prompted to enter the wifi details and attach the device with the local network. What is actually going on behind the scenes? How does the app discover a hardware dev...
by arjunm009
Mon Dec 04, 2017 10:56 am
Forum: General discussion
Topic: Unique ID for Pi to validate in Android app
Replies: 19
Views: 2621

Re: Unique ID for Pi to validate in Android app

So i think we all agree this has little to do with "security" but with filtering the results of a network scan ? What do you think of following approach (Pseudocode) ? while not connected to network: switch to wifi client mode scan for wifi networks save list of available networks switch to WiFi AP...
by arjunm009
Mon Dec 04, 2017 10:54 am
Forum: General discussion
Topic: Unique ID for Pi to validate in Android app
Replies: 19
Views: 2621

Re: Unique ID for Pi to validate in Android app

hippy wrote:
Mon Dec 04, 2017 10:35 am
It is also fairly likely that a DIY app can make Sonos and Google Home devices reveal themselves.
That maybe. Or maybe not. I haven't seen an approach. I have tried to search for a solution.

But even it is, it would be interesting to know how the app knows its device.
by arjunm009
Mon Dec 04, 2017 10:29 am
Forum: General discussion
Topic: Unique ID for Pi to validate in Android app
Replies: 19
Views: 2621

Re: Unique ID for Pi to validate in Android app

They are unique (for 2^24 units) but can be easily spoofed, so are not secure. Not secure that is true. But how do you perform handshaking those values with an app? It needs to communicated some way when setting a Hue bulb or Sonos speaker for first time over wifi? They use a different protocol wit...
by arjunm009
Mon Dec 04, 2017 10:22 am
Forum: General discussion
Topic: Unique ID for Pi to validate in Android app
Replies: 19
Views: 2621

Re: Unique ID for Pi to validate in Android app

Why do you think Sonos devices cannot be discoverd by traditional network scanners like nmap and fing ? Why do you think that third parties cannot detect , connect to , configure and control Sonos devices ? (I'm just curious , perhaps Sonos devices are actually heavily secured). ghans Not that way....
by arjunm009
Mon Dec 04, 2017 10:12 am
Forum: General discussion
Topic: Unique ID for Pi to validate in Android app
Replies: 19
Views: 2621

Re: Unique ID for Pi to validate in Android app

You do not want to connect your specialised Pi to networks via Ethernet cable , ever ? ghans Router is inconveniently placed in a corner. Dont want to bother with more wires. Thats why only wifi option is considered even from the start. But please tell how using Ethernet can do this. It would be si...
by arjunm009
Mon Dec 04, 2017 10:03 am
Forum: General discussion
Topic: Unique ID for Pi to validate in Android app
Replies: 19
Views: 2621

Re: Unique ID for Pi to validate in Android app

Is there a way to give a unique encrypted ID to a Pi for home automation purpose Should be possible as each Pi has a random serial number assigned and each would presumably be given its own unique IP address on the network it is on. SD Cards should also have their own unique ID numbers. Add a DS18B...
by arjunm009
Mon Dec 04, 2017 9:56 am
Forum: General discussion
Topic: Unique ID for Pi to validate in Android app
Replies: 19
Views: 2621

Re: Unique ID for Pi to validate in Android app

The simplest way would be to use a special hostname , or to append a pattern to the hostname. The app would scan the subnet , do reverse lookups and discard everything not matching the pattern. Another way would be to install Avahi (mDNS/ Zeroconf) and writing a config file which advertises the ser...
by arjunm009
Sun Dec 03, 2017 6:06 pm
Forum: General discussion
Topic: Unique ID for Pi to validate in Android app
Replies: 19
Views: 2621

Re: Unique ID for Pi to validate in Android app

I was thinking it should transmit some custom broadcast id while the mobile app is trying to look for it.
I dont know how devices like sonos, Google home work but only their respective apps can discover them.

So something like that. Some way for the pi to broadcast it is a different pi.
by arjunm009
Sun Dec 03, 2017 1:45 pm
Forum: General discussion
Topic: Unique ID for Pi to validate in Android app
Replies: 19
Views: 2621

Unique ID for Pi to validate in Android app

Is there a way to give a unique encrypted ID to a Pi for home automation purpose, so that when an Android/iOs app searches for it in a network, it only detects it as a separate device and not as a generic raspberry pi? Like Sonos, even though it is a Upnp device, if you use its app and power up firs...
by arjunm009
Sat Oct 07, 2017 1:13 pm
Forum: Raspberry Pi OS
Topic: MPD Upnp allow request from browser
Replies: 0
Views: 342

MPD Upnp allow request from browser

Hey I have Mpd and Upmpd installed in RPi3. And I am trying to control the service through a Cordova app and browser. Is there a way to tell the Upmp server to accept Access-Control-Allow-Origin: * ? At present any control actions sent through XHR or Fetch just returns a 400 Bad request because the ...
by arjunm009
Mon Sep 25, 2017 9:24 am
Forum: Beginners
Topic: Show HTML from HDMI in Jessie lite
Replies: 2
Views: 738

Re: Show HTML from HDMI in Jessie lite

Thanks for that. You mentioned you were trying out something. Can you post a gist of work?
Maybe I can get some idea on implementing it with python qt bindings.
by arjunm009
Sun Sep 24, 2017 9:02 pm
Forum: Beginners
Topic: Show HTML from HDMI in Jessie lite
Replies: 2
Views: 738

Show HTML from HDMI in Jessie lite

On Raspbian Jessie Lite, is it possible to show HTML pages through HDMI using node and webkit? I am not sure on the internals of the Pi for custom graphics, so this question. It is however possible to stream videos using omxplayer and show images using fbi , so I was wondering is there a similar way...
by arjunm009
Sat Jul 01, 2017 8:10 pm
Forum: Beginners
Topic: Routing MPD music stream through a Ruby script
Replies: 0
Views: 229

Routing MPD music stream through a Ruby script

Using the ray ruby gem, which allow some audio effects, how can I route the music stream MPD is receiving from a source, through it?

Visually, at present
phone -> mpd -> alsa -> usb audio

required
phone -> mpd -> script using "ray" gem -> alsa -> usb audio

Using a Pi 3 with USB DAC.
by arjunm009
Mon May 01, 2017 9:03 pm
Forum: Advanced users
Topic: configure gmediarender to output only mono
Replies: 0
Views: 466

configure gmediarender to output only mono

I have configured gmediarender on the RPi 3. However I prefer only mono output. Following this guide to downmix to mono did not output mono from the gmediarender. /etc/asound.conf pcm.card0 { type hw card 0 } ctl.card0 { type hw card 0 } pcm.monocard { slave.pcm card0 slave.channels 2 # type plug ty...
by arjunm009
Tue Mar 07, 2017 2:30 pm
Forum: Graphics, sound and multimedia
Topic: CMedia USB DAC
Replies: 2
Views: 697

Re: CMedia USB DAC

NO.

I have asked about audio enhancement which the CMEDIA chipset support, not about activating USB audio output.
30 sec? Was it just reading or understanding?
by arjunm009
Tue Mar 07, 2017 8:38 am
Forum: Graphics, sound and multimedia
Topic: CMedia USB DAC
Replies: 2
Views: 697

CMedia USB DAC

I bought one from Adafruit and the packaging says it has 16band equalizer among other effects.
How do I configure them in/from the Pi?
by arjunm009
Thu Nov 10, 2016 7:13 pm
Forum: General discussion
Topic: wlan0 driver issues even after reflash
Replies: 0
Views: 319

wlan0 driver issues even after reflash

I just reflashed a new raspbian jessie lite image. Simple tried to configure the wpa_supplicant file with my network details and rebooted. Even then wifi does not connect? I checked a command sudo wpa_supplicant -Dn180211 -iwlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf It simply says the said dri...
by arjunm009
Wed Nov 09, 2016 7:35 pm
Forum: General discussion
Topic: Raspberry Pi WIFI INTERCONNECT
Replies: 1
Views: 529

Raspberry Pi WIFI INTERCONNECT

Problem : To enable wifi, the simplest way at present is Raspberry Pi 3 needs to be accessed directly, scanned for available networks, open the wpa-supplicant-file and add in the network information. Now is there a solution, if when Pi 3 is booted and it does not find a known wifi network, it creat...

Go to advanced search