Vista SAMS20P checkout

General Discussion

Re: Vista SAMS20P checkout

Postby kevin » Sun Feb 14, 2016 10:58 am

It should not have damaged it, no - but if you are having issues connecting to it that is odd. Double and triple check your wiring and that it is detected as a usb-serial device (dmesg) - if not, we're happy to RMA it. If it is set to the default address it should be connectable and you should see alarm panel messages provided it is wired up correctly.

Honestly, a Vista20p is better than a 20se in every way, and you're not locked out by ADT in any way now, so it's probably better in the end here.

Careful with your wiring! It is labelled on the top of the ad2usb where the wires should go.
Not an employee of the company. Just here to help and keep things clean.
kevin
Platinum Nut
Platinum Nut
 
Posts: 994
Joined: Fri Aug 16, 2013 10:10 am

Re: Vista SAMS20P checkout

Postby w2vy » Mon Feb 15, 2016 4:47 am

Ok the ad2usb is blinking about 1 a sec

When I remove and reinsert the USB cable it does re-enumerate

But screen does not stay connected

Code: Select all
[821854.499221] usb 3-1.5: USB disconnect, device number 5
[821854.499373] ftdi_sio ttyUSB0: FTDI USB Serial Device converter now disconnected from ttyUSB0
[821854.499387] ftdi_sio 3-1.5:1.0: device disconnected
[821860.584854] usb 3-1.5: new full-speed USB device number 6 using ehci-pci
[821860.684939] usb 3-1.5: New USB device found, idVendor=0403, idProduct=6015
[821860.684943] usb 3-1.5: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[821860.684946] usb 3-1.5: Product: FT230X Basic UART
[821860.684948] usb 3-1.5: Manufacturer: FTDI
[821860.684950] usb 3-1.5: SerialNumber: DJ009DQF
[821860.688191] ftdi_sio 3-1.5:1.0: FTDI USB Serial Device converter detected
[821860.688230] usb 3-1.5: Detected FT-X
[821860.688232] usb 3-1.5: Number of endpoints 2
[821860.688234] usb 3-1.5: Endpoint 1 MaxPacketSize 64
[821860.688236] usb 3-1.5: Endpoint 2 MaxPacketSize 64
[821860.688238] usb 3-1.5: Setting MaxPacketSize 64
[821860.688649] usb 3-1.5: FTDI USB Serial Device converter now attached to ttyUSB0
tom@w2vy:~$ screen /dev/ttyUSB0 115200
[screen is terminating]
tom@w2vy:~$


I also tried minicom and it also disconnected right away.

Time for an RMA?
Would it be worth trying from a different computer?

Wait a sec, I do not have address 18 enabled in my panel, would that cause the port to disconnect?

Tom
w2vy
newt
newt
 
Posts: 18
Joined: Mon Jan 25, 2016 10:54 am

Re: Vista SAMS20P checkout

Postby kevin » Mon Feb 15, 2016 10:49 am

That would not cause it to disconnect - 1 last thing to try before RMA - make sure your DI and DO lines are not swapped and make sure nothing else is using the com port - are you using our raspbian image? Is ser2sock running and attached to the com port? Also, please try screen as root (sudo screen /dev/ttyUSB0 115200)
Not an employee of the company. Just here to help and keep things clean.
kevin
Platinum Nut
Platinum Nut
 
Posts: 994
Joined: Fri Aug 16, 2013 10:10 am

Re: Vista SAMS20P checkout

Postby w2vy » Mon Feb 15, 2016 11:37 am

kevin wrote:Also, please try screen as root (sudo screen /dev/ttyUSB0 115200)


Bingo!

It is a bit odd that I have to be root to access it... I think... it has been decades since I have use serial on lunix....

I added myself to the dialout group, re-logged in and I still need root to access the port
I changed the permissions of /dev/ttyUSB0 to o+rw and g+rw

What am I missing?

ser2sock is not running and I am running debian (current release)

Tom
w2vy
newt
newt
 
Posts: 18
Joined: Mon Jan 25, 2016 10:54 am

Re: Vista SAMS20P checkout

Postby kevin » Mon Feb 15, 2016 11:51 am

You need to make sure your user/group has +rwx on the device to not have to be root

If you have your user added to the dialout group, then try logging out and logging in again as that user or rebooting - that should work.

Code: Select all
sudo usermod -a -G dialout $USER
sudo reboot
Not an employee of the company. Just here to help and keep things clean.
kevin
Platinum Nut
Platinum Nut
 
Posts: 994
Joined: Fri Aug 16, 2013 10:10 am

Re: Vista SAMS20P checkout

Postby w2vy » Mon Feb 15, 2016 3:24 pm

Solved!

Thank You!

Now the real fun beings!
w2vy
newt
newt
 
Posts: 18
Joined: Mon Jan 25, 2016 10:54 am

Re: Vista SAMS20P checkout

Postby w2vy » Mon Feb 15, 2016 5:41 pm

I am running on a debian system

Does the webapp require nginx or will it work with apache2?

Now I am kinda stuck at step 21 of https://github.com/nutechsoftware/alarmdecoder-webapp

I am not sure what to do with the ngix/sites-*

Maybe I can just use the AlarmDecoderApp instead of the webapp

tom
w2vy
newt
newt
 
Posts: 18
Joined: Mon Jan 25, 2016 10:54 am

Re: Vista SAMS20P checkout

Postby kevin » Mon Feb 15, 2016 5:59 pm

In our release it is configured to run with nginx - it is possible with apache, but not something we have attempted. We give instructions for compiling the recommended version of nginx in the source - or maybe the nginx version in the debian apt repositories is good enough.

To use apache, you would have to configure it to support websockets and proxies and adapt the nginx/alarmdecoder configuration to work with apache.

If you happen to be running this on a raspberry pi we provide a pre-configured image that has this running - otherwise the manual instructions should work if followed.
Not an employee of the company. Just here to help and keep things clean.
kevin
Platinum Nut
Platinum Nut
 
Posts: 994
Joined: Fri Aug 16, 2013 10:10 am

Previous

Return to General

Who is online

Users browsing this forum: No registered users and 34 guests

cron