Skip to content

Monthly Archives: January 2016

USB-1100PA 433MHz Wireless RF Transceiver…

So I’m looking into home automation, and while I have something working on my Pi using some other 433 modules (namely the MX-05V/XD-RF-5V – rf for arduino), I though I would try my luck with this one, as it would make it possible to use other hardware then my pi, and perhaps make it easier for others to follow.

So this is the device:

rf_transceiver

Had I done a google search before ordering it, I properly would not have bought one, as it seems nobody has gotten them to work yet, but here’s some data on it, and some pictures:

[root@c4a012 urup]# cat /proc/version
Linux version 4.3.3-2-ARCH (builduser@tobias) (gcc version 5.3.0 (GCC) ) #1 SMP PREEMPT Wed Dec 23 20:25:12 CET 2015

[root@c4a012 urup]# lsusb -s 011
Bus 001 Device 011: ID 10c4:ea60 Cygnal Integrated Products, Inc. CP210x UART Bridge / myAVR mySmartUSB light

[root@c4a012 urup]# dmesg
[ 8353.590658] usb 1-1.2: new full-speed USB device number 11 using ehci-pci
[ 8353.677620] cp210x 1-1.2:1.0: cp210x converter detected
[ 8353.677741] usb 1-1.2: cp210x converter now attached to ttyUSB0

And this to how the insides look:

IMG_20160121_145434IMG_20160121_145527IMG_20160121_145455

It has three chip on the PCB of interst:

  • First up, from the USB port is Silicon Labs CP2102, which is a “USB to UART Bridge”
  • Next is a Atmel MEGA48PA, which is a 20Mhz 8 bit AVR micro-processor.
  • And the final chip is a TI CC1101 tranceiver chip (“Low-Power Sub-1GHz RF Transceiver” accoring to Texas Instruments).

The PCB is also labeled “USB2101_RF1100”

So it’s found, and the right driver is loaded, so far so good, but now I can’t find any software to control it.

When plugged in LED2 lights up green (this LED is hidden when the white cover is on, and only LED1 is visible).

The dongle came with absolutely no manual or software, and while I can  start a minicom session on ttyUSB0, nothing more happens.

To get further I need to figure out what runs inside that AVR MCU.

Doing a bit more googling I found this: http://www.fytoo.com/msg.php?id=158 which might be the manufacturer of the device.
Unfortunately I don’t speak Chinese.

Also I’m unsure if the transceiver uses (can use) the same modulation as my cheap light switches and dimmers (which use OOK).

 

Reklamer og gratisaviser nej tak (2014/2015 og 2016)

Vi har fået skiftet postkasse, og i den forbindelse har vi mistet vores “Reklamer og gratisaviser – Nej tak” klistermærke (2014/2015 – der nu også gælder i 2016).

I den forbindelse bestilte vi et nyt klistermærke via internettet – det ventede vi på i over 1½ måned.
Da der ikke skte noget ringede jeg derind og bad kundeservice om et nyt mærke, og wupti, 4 dage senere ligger det her hos os.

For at hjælpe jer andre, vil jeg derfor anbefale jer at ringe til PostDanmark i stedet for at bruge deres hjemmeside.

Og ellers er her klistermærket, samt medfølgende vejledning, indscannet i 600dpi:
Reklamer og gratis aviser nej tak 2014-2015 mærke

Selve klistermærket måler 54x54mm, og har en “glossy”/mat blank overflade.

Nu kan i selv printe et nyt mærke, skulle det være nødvendigt.

 

 

IP391W P2P Survalience camera review and tips

So I found two of these at the local hardware store, with a heavy discount and though why not try them out?

They are banded “SafeHome” (http://safehome.dk/en/produkter/278031-Nordic/), but under the skin they are Tenvis IP391W (http://www.tenvis.com/ip391w-outdoor-waterproof-ip-camera-18leds-night-vision-p-196.html)

The initial impression was okay, as the housing feels good, sturdy and water proof.

While the hardware might seem fine, the software is somewhat lacking.

For all features to work they recommend using IE with a old ActiveX plugin…

The motion detection is REALLY terrible. I’ve set it to blunt (the least sensitive value), and still get about 5000 emails pr. day. Mostly at night, where it seems to trigger every minute or so.
It’s also very late to trigger an alarm, so in the morning I’m actually able to drive out of my garage and out of sight (20 meters) without the camera snapping a photo of me. If I stand still for a about minute, it correctly triggers an alarm, but it needs A WHOLE MINUTE!

On my phone I’m using an app called tinyCam Mobile, which works quite well, but I could not get the recommended app to work (P2P Cam h264).

To compensate for the lack of timely alarms I set up the camera to record continuously (from i own web-interface), however the files it creates on my NAS can only be watched by a windows xp program, and the video sometimes jump several seconds (up to 30 seconds) in time, and just to make it worse, you can’t seek in the files either!

What you can do however is watch the live streams using vlc:

1280×780:
vlc “rtsp://<cemera-ip>:<port>/0/video0” –rtsp-tcp

640×480:
vlc “rtsp://<cemera-ip>:<port>/0/video1″ –rtsp-tcp

320×240:
vlc “rtsp://<cemera-ip>:<port>/0/video2″ –rtsp-tcp

 

These streams seem to be more reliable, even if they also stutter at times.

I’m now using gstreamer to view & record the streams, using these commands:

Viewing:

gst-launch-0.10 rtspsrc user-id=”XXXX” user-pw=”XXXX” location=”rtsp://<camera-ip>:<port>/0/video0″ protocols=”tcp” ! rtph264depay ! h264parse ! ffdec_h264 ! ffmpegcolorspace ! autovideosink

 

And to record:

gst-launch-0.10 -e rtspsrc user-id=”XXXX” user-pw=”XXXX” location=”rtsp://<camera-ip>:<port>/0/video0″ protocols=”tcp” ! rtph264depay ! h264parse ! mp4mux moov-recovery-file=”video.mrf” ! filesink location=”video.mp4″

I’m using gstreamer 0.10 and the -e flag, otherwise the file is not seekable.
Also I’m using the moov-recovery-file option, as the file will get corrupted if gstreamer creahes, or looses the connection to the feed.
By recording the moov-recovery-file we can afterwards repair the file, using this command:
gst-launch-1.0 qtmoovrecover recovery-input=path.mrf broken-input=moovie.mov fixed-output=recovered.mov