Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Comfort UPNP <-> SmartThings <-> Amazon Echo
mattbrain wrote:
Quote:Hi Paul

It sounds like it hasn\'t managed to properly get connected to the home network - DNS resolution should happen automagically if your router manages DHCP assignments. Can you confirm it is connected via Ethernet and the link light is active?

In terms of logging in, i\'m not it would give you much - its a trimmed down version of Rasbian in order to conserve system resources in order to allow it to run an any variant of a RPi (so long as they have an ethernet port). If i\'m honest, I wouldn\'t advise users to run anything else on the Pi as it may have an impact on the Comfort software and when it comes to troubleshooting - it\'s a case of the simpler the better.

I have locked out login via the terminal and ssh as a simple security precaution (given these are talking to the alarm and will have your pin code and comfiguration file stored on disk). However, if you do want to login, you need to modify the installation to run in single user mode; to do this insert the SD Card into a PC and add a space and a 1 at the end of the line in the text file \'cmdline.txt\'. If you then reboot the Pi with a keyboard and monitor attached you will be automatically logged in - you can then change the password to something you are happy with, and then revert the change and restart the Pi once again.

Hope this helps,

Thanks,

Matt
DOH!! - I just realised that I made a very senior moment there... - you remember I said I put a build of Raspbian on it over the weekend to play with... after which I connected it to my Wifi... 
So I have it sitting here on the desk... no problem thinks I.. - It\'s connected by Wifi... totally blanking the fact that of course now it\'s running a brand new build!... - I must be getting senile!
I\'ll connect up the LAN cable & give it another go... I\'m sure It\'ll be fine... The question still remains though... I will want to enable wifi connection after its setup... I only have a single spare LAN cable at my desk at the moment, since I also have a work laptop set up just now which I need to use a wired connection.. since it\'s the evening, I\'ll unplug the laptop to give it to the Pi, but once up & running I\'d like to switch the pi to wifi...
Cheers
Paul G.

mattbrain wrote:
Quote:Hi Paul

It sounds like it hasn\'t managed to properly get connected to the home network - DNS resolution should happen automagically if your router manages DHCP assignments. Can you confirm it is connected via Ethernet and the link light is active?

In terms of logging in, i\'m not it would give you much - its a trimmed down version of Rasbian in order to conserve system resources in order to allow it to run an any variant of a RPi (so long as they have an ethernet port). If i\'m honest, I wouldn\'t advise users to run anything else on the Pi as it may have an impact on the Comfort software and when it comes to troubleshooting - it\'s a case of the simpler the better.

I have locked out login via the terminal and ssh as a simple security precaution (given these are talking to the alarm and will have your pin code and comfiguration file stored on disk). However, if you do want to login, you need to modify the installation to run in single user mode; to do this insert the SD Card into a PC and add a space and a 1 at the end of the line in the text file \'cmdline.txt\'. If you then reboot the Pi with a keyboard and monitor attached you will be automatically logged in - you can then change the password to something you are happy with, and then revert the change and restart the Pi once again.

Hope this helps,

Thanks,

Matt
Thanks Matt.
I\'m still not getting to that URL, even with the LAN cable plugged in. (It\'s been in my laptop all day, so I know the LAN connection is good. Chrome just says it can\'t find the site (I clicked on the URL in your post above to be sure I didn\'t make a typo).
My routers interface is *horrible* for trying to find the DHCP registration... - it\'s a very basic list, it doesn\'t show the lease start time, only the expiry time, and I\'ve lots of DHCP devices...

Although I do see now that (helpfully) the Pi has echoed to the screen \"My IP address is....\" right near the end of the boot.. - I can get to the AlphaWerk web interface by browsing to that IP, so that\'s good, but there\'s definitely something awry with name resolution.. - I can fix that much myself  -  I\'ll make the Pi a Reservation in the DHCP server to give it always the same, known address, and I\'ll take care of getting name resolution working - I\'ve no local DNS service on my network other than the ISP\'s router which is a DNS proxy, but there\'s nothing I can make an A record in, so I guess it\'s a local HOSTS file entry for now.. :-)

So I\'d really like to be able to login on the Pi to check the network status and get it enabled to use the Wifi... I added the \"<space> 1\" to the end of the line, but after booting that up, I\'m not seeing anything different, it\'s still stopped at a logon prompt...
Cheers for the help so far...
Cool

Paul G.


Hi Paul

Thanks for the feedback - I think I have some things I need to add to the roadmap Smile

1. A way to find the device on the network when local name resolution isn\'t working.
 I\'m probably going to do this with a reflector listening on UDP which will respond to broadcast requests.
2. A way to configure wifi via the web interface

3. A way to enable console access

On (3), I\'m going to test single user mode - I think there may be an issue with Windows CR/LF vs linux CR. I\'ll work on it and get back to you.

Thanks,

Matt


Hi Matt,

Sorry think I\'m having same problem. I\'m on a wired network. It cannot resolve DNS.
I take it there was no process that i\'ve missed somewhere to give the Pi an address?
Thanks

David

[user=912]mattbrain[/user] wrote:
Quote:Hi Paul

Thanks for the feedback - I think I have some things I need to add to the roadmap Smile

1. A way to find the device on the network when local name resolution isn\'t working.
 I\'m probably going to do this with a reflector listening on UDP which will respond to broadcast requests.
2. A way to configure wifi via the web interface

3. A way to enable console access

On (3), I\'m going to test single user mode - I think there may be an issue with Windows CR/LF vs linux CR. I\'ll work on it and get back to you.

Thanks,

Matt

Hi Matt. I was going to send a further update a while ago, but SWMBO made me come for dinner instead...

You\'re on the right track with the CR/LF thought... what I was going to post earlier was to the same effect: when downloaded and opened in windows notepad, there appear to be no line breaks at all, the entirety of the text appears or be on one (or possibly 2) lines.. notepad could be adding a line break at one point just because of hitting a line length limit..

It makes it a tad difficult to read, so another question was about if there are duplicate entries for a number of the settings in the first part of the file, but I think I was seeing comments.. - does the # character signify a comment?

Cheers

Paul G.

Oh, of course I\'m referring to the config file download/upload rather than the cmdline.txt file edit, but I would presume the same applies with regard to the CRLF issue...

Oh, of course I\'m referring to the config file download/upload rather than the cmdline.txt file edit, but I would presume the same applies with regard to the CRLF issue...

Hi David

You are right, i think some routers are better than others with local name resolution. I think I am going to have to add some logic to assist with discovery where it isn\'t supported locally.

A couple of things you can try:

1. If this is the same Pi as your previous installation, it has probably been assigned the same IP address as it had earlier. Try http://xx.xx.xx.xx where xx is the old IP address

2. Take a look at the router and see if you can see any entries its DHCP leases or log files.

3. You can try a broadcast ping - ping to the entire subnet, by setting the host portion of the IP address to 1\'s. For example, if you IP address range is 192.168.1.x and your subnet mask is 255.255.255.0 you would ping 192.168.1.255 (the 0 portion of the subnet mask in binary being 0x00000000 which is 255 when set to 0x11111111. This should list all the devices responding to UCMP. It does vary from O/S to O/S, on linux you need to set the -b flag [ping 192.168.1.255 -b], on OSX it just works as a regular ping - i\'m not sure on Windows though.

Let me know if you are still struggling and i\'ll put a script together which does a UPNP discovery (as the SmartThings hub does).

Thanks,

Matt

Hi Paul

Yes, # is a comment and is just their for guidance.

Are you experiencing issues when editing the template file? I haven\'t experienced a problem with CR/LF but if you have found something I would like to dig into it. Can you send me a copy of the config file or tick the share box when uploading it and i can see what occurs if you are having problems with it loading.

Please don\'t forget to also load the comfigurator .cclx file.

Can you let me know your serial number as shown on the version pane - that will help me identify any errors being reported via the telemetry?

Thanks,

Matt

Hi David et al,

One other thing for those struggling with local DNS - try http://alpha-uhai.local - if your computer support mDNS (multicast DNS) - it may be able to find it. This is supported by OSX and some variants of Linux, Windows support is a little patchy but I believe it is in Windows 10.

Thanks,

Matt






Forum Jump:


Users browsing this thread:
7 Guest(s)

Powered By MyBB, © 2002-2026 Melroy van den Berg.