Posts

Showing posts from 2008

Monitoring electricity usage

Image
managed to get this done too, put a monitor in my fuse box ( ADM1.5TE) , cost < £30 GBP, and a small serial board ( WTDIN-M Digital input module ) to count the pulses and read them via serial. I also got some adm1d meters, haven't put them in yet, but hope to break out socket rings and lights from the overall total. Hats off the the kinds folks at jw instruments who sold and shipped them to me.

Global Delights recipe book

I heard of a book on RTE Radio 1 this week, called global Delights , a recipe book done by a school in Firhouse. I managed to get a copy and it's awesome, 10 minute recipes (mostly) and easy to obtain ingredients!

osx serial ports without minicom or microcom

this let me troubleshoot my serial problem (usb serial) without any extra software screen /dev/tty.PL2303-0000101D 9600

Solar stats

Image
The temperatures of my solar system And the pump speed

Resol VBUS success

at last, the kind folks in Resol sent me the protocol specification for vbus with openwrt and rrdcollect and rrdcgi, I can now graph the pumps and temperature information of my solar water system. There is a bash script that collects from the serial port, decodes it , and then outputs the values to a file that rrdcollect parses. All good, some holes in the graphs, probably a bad awk in my script, to be investigated. Once it's working reliably with no holes, I will try to post graphs here, somehow EDIT: Now there is a google group http://groups.google.com/group/resol-vbus EDIT: I wrote a utility to parse the data, seems to have gotten lost in the group, it's here  https://code.google.com/p/vbusdecode/

update:resol vbus serial to windows

so, turns out that socat on openwrt doesn't compile with serial support, and enabling it causes breakage :-( instead I am now using ser2net for the same function, on windows still using com0com and com2tcp, the resol windows software now talks to the controller via tcp and openwrt running on a box in the hot press com2tcp --baud 9600 \\.\COM44 192.168.205.222 2500

redirecting a windows serial port

I have a board connected to my solar control (resol BS plus) via it's vbus interface. resol do windows software, so i want to redirect my windows pc to see my embedded board running dd-wrt , as its serial com2tcp does this on the windows side, and socat (see other post) does this on the linux side

reading and writing to a serial port

i am using an embedded board (x86) running dd-wrt, with a serial port connected to a counter see here . I needed to send a command and collect its response, but normal cat and echo of ttyS0 didn't work, either giving me permission denied or missing the response. this worked /usr/local/usr/bin/socat gopen:/tmp/input.txt!!create:/tmp/output.txt /dev/tts/0,echo=0 where tts/0 is the serial port, and /tmp/input.txt has the command to elicit the response, and /tmp/output.txt catches the response. the create: clause makes it overwrite the output.txt each time you run the command or explicitly for my board socat exec:'echo ACA'\!\!- /dev/ttyUSB0,echo=0 | cut -b2-

Bathroom renovation

I got my bathrooms renovated a year ago, and the folks that did it were excellent, they not have some sample videos of before and after shots, see http://www.homeworks.ie

new dvb-t frequencies and channels in dublin ireland

since the end of the trial, the channels are now mpeg4 and details are below , as received by my nova t source_friendly_name preferred_name service_type freq_actual channel parent_id network_id transport_id service_id channel_type DVB-T Source RTE 1 DVB-T 738 54 1 0 1001 1 TV DVB-T Source RTE 2 DVB-T 738 54 2 0 1001 2 TV DVB-T Source TV3 DVB-T 738 54 3 0 1001 3 TV DVB-T Source TG4 DVB-T 738 54 4 0 1001 4 TV DVB-T Source RADIO 1 DVB-T 738 54 5 0 1001 5 RADIO DVB-T Source 2FM DVB-T 738 54 6 0 1001 6 RADIO DVB-T Source LYRIC DVB-T 738 54 7 0 1001 7 RADIO DVB-T Source RnaG DVB-T 738 54 8 0 1001 8 RADIO

change ssh tunnel on the fly in a session

use escape character, then C for command line , then -L1234:remote.host:1234 i.e. ~C -L1234:remote.host:1234 try ~? for help etc

howto compile he220stat for mips openwrt

wget http://www.kanoistika.sk/bobovsky/archiv/umts/huaweiAktBbo.c needs libncurses /home/desra/code/openwrt/trunk/staging_dir/toolchain-mipsel_gcc4.1.2/bin/mipsel-linux-uclibc-gcc -L /home/desra/code/openwrt/trunk/staging_dir/mipsel/usr/lib/ -I /home/desra/code/openwrt/trunk/staging_dir/mipsel/usr/include/ -I /home/desra/code/openwrt/trunk/staging_dir/toolchain-mipsel_gcc4.1.2/include/ -Wall -lncurses init_ncurses.c main.c flowreport.c rssi.c modechange.c -o he220stat-mips

e220 openwrt kamikaze wgt634u

installed new firmware http://www.a1.net/CDA/navigation/pp4_frame/0,6194,50158-51220-51216-500626-html-de,00.html gives 7.2mbs :-) if your network supports it.... modified /etc/init.d/S95done sleep 30 /etc/init.d/network restart /usr/sbin/dropbear -s -p 443 edit firewall.user to add iptables -t nat -A prerouting_wan -p tcp --dport 443 -j ACCEPT iptables -A input_wan -p tcp --dport 443 -j ACCEPT change order of modules make sure storage starts before serial ls /etc/modules.d root@OpenWrt:~# ls -l /etc/modules.d/ -rw-r----- 1 root root 9 May 12 12:15 20-scsi-core -rw-r--r-- 1 root root 35 May 12 12:17 20-switch -rw-r----- 1 root root 8 May 12 12:25 20-usb-core -rw-r----- 1 root root 37 May 12 12:25 30-ppp -rw-r--r-- 1 root root 86 May 12 12:25 40-ipt-nathelper -rw-r----- 1 root root 7 May 12 12:15 40-scsi-core -rw-r--r-- 1 root root 115 May 12 12:08 5

stream flash video of vlc mpeg2 dvb stream

see other posts about streaming dvb. this sample below is receiving a vlc stream and re-encoding and streaming as flash. in this case sky news on same server as vlc running install ffmpeg , or checkout and build with mp3 support if your distro doesn't install with mp3support (likely) see http://ubuntuforums.org/showthread.php?t=786095 for ubuntu run ffserver with this conf ---- Port 9090 # bind to all IPs aliased or not BindAddress 0.0.0.0 # max number of simultaneous clients MaxClients 1000 # max bandwidth per-client (kb/s) MaxBandwidth 100000 # Suppress that if you want to launch ffserver as a daemon. NoDaemon File /tmp/feed1.ffm FileMaxSize 50M Feed feed1.ffm Format swf VideoCodec flv VideoFrameRate 25 VideoBufferSize 80000 VideoBitRate 10000 VideoQMin 1 VideoQMax 5 VideoSize 720x576 AudioBitRate 192 AudioChannels 2 AudioSampleRate 44100 AudioCodec mp3 PreRoll 0 ----- then at command line catch the vlc stream and pipe to ffmpeg, which then feeds to ffserver curl -s -o- http://

yet another way for dazzle and heron :-(

cd ~ hg clone http://mcentral.de/hg/~mrec/em28xx-new cd em28xx-new sudo ./build.sh cd ~

another way to get the dazzle stick to work on heron

sudo su apt-get install mercurial linux-headers-$(uname -r) linux-source build-essential cd /lib/firmware wget http://konstantin.filtschew.de/v4l-firmware/firmware_v4.tgz tar xvzf firmware_v4.tgz hg clone http://mcentral.de/hg/~mrec/v4l-dvb-experimental cd v4l-dvb-experimental make make install reboot sudo modprobe em2880-dvb If on the next reboot, the card stops working the em2880-dvb module is not being loaded properly in Feisty. To fix this : cd /etc/modprobe.d sudo gedit dvbstick then add this line to the new dvbstick file : install em28xx /sbin/modprobe --ignore-install em28xx; /bin/sleep 2; /sbin/modprobe em2880-dvb Reboot your system

dvb channel data for ireland

preferred_name service_type freq_actual channel transport_id service_id RTE 1 DVB-T 738 54 1001 1101 RTE 2 DVB-T 738 54 1001 1102 TV 3 DVB-T 738 54 1001 1103 TG 4 DVB-T 738 54 1001 1104 RTE Radio 1 DVB-T 738 54 1001 1226 RTE 2fm DVB-T 738 54 1001 1227 RTE Lyric fm DVB-T 738 54 1001 1228 RTE Raidio na Gaeltachta DVB-T 738 54 1001 1229 Today FM DVB-T 738 54 1001 1230 RTE Radio 1 Extra DVB-T 738 54 1001 1231 RTE Choice DVB-T 738 54 1001 1232 RTE 2XM DVB-T 738 54 1001 1233 Channel 6 DVB-T 770 58 2001 2101 cBBC - Test DVB-T 770 58 2001 2102 cBeebies - Test DVB-T 770 58 2001 2103 BBC 3 - Test DVB-T 770 58 2001 2104 Sky News DVB-T 794 61 3001 3101 Sky Sports 1 DVB-T 794 61 3001 3102 Extreme Sports DVB-T 794 61 3001 3103 UKTV History DVB-T 794 61 3001 3104 Setanta Golf DVB-T 794 61 3001 3105 Setanta Ireland DVB-T 794 61 3001 3106 HD Test 1 DVB-T 818 64 4001 4101 SD Test 1 DVB-T 818 64 4001 4102 BBC 4 - Test DVB-T 770 58 2001 2105 BBC News24 - Test DVB-T 770 58 2001 2106 FM104 DVB-T 770 58 20

dvb channel data for ireland

preferred_name service_type freq_actual channel transport_id service_id RTE 1 DVB-T 738 54 1001 1101 RTE 2 DVB-T 738 54 1001 1102 TV 3 DVB-T 738 54 1001 1103 TG 4 DVB-T 738 54 1001 1104 RTE Radio 1 DVB-T 738 54 1001 1226 RTE 2fm DVB-T 738 54 1001 1227 RTE Lyric fm DVB-T 738 54 1001 1228 RTE Raidio na Gaeltachta DVB-T 738 54 1001 1229 Today FM DVB-T 738 54 1001 1230 RTE Radio 1 Extra DVB-T 738 54 1001 1231 RTE Choice DVB-T 738 54 1001 1232 RTE 2XM DVB-T 738 54 1001 1233 Channel 6 DVB-T 770 58 2001 2101 cBBC - Test DVB-T 770 58 2001 2102 cBeebies - Test DVB-T 770 58 2001 2103 BBC 3 - Test DVB-T 770 58 2001 2104 Sky News DVB-T 794 61 3001 3101 Sky Sports 1 DVB-T 794 61 3001 3102 Extreme Sports DVB-T 794 61 3001 3103 UKTV History DVB-T 794 61 3001 3104 Setanta Golf DVB-T 794 61 3001 3105 Setanta Ireland DVB-T 794 61 3001 3106 HD Test 1 DVB-T 818 64 4001 4101 SD Test 1 DVB-T 818 64 4001 4102 BBC 4 - Test DVB-T 770 58 2001 2105 BBC News24 - Test DVB-T 770 58 2001 2106 FM104 DVB-T 770 58 20

vlc streaming astra sky bbc

Some command lines for streaming dvb-t , terrestrial and sat. in ireland. BBC Sat feed vlc --ttl 12 --ts-es-id-pid -I dummy --programs=6301,6302,6316,6317,6318,6319,6331 dvb: --dvb-frequency=10773000 --dvb-srate=22000000 --dvb-voltage=18 --sout '#duplicate{dst=std{access=http,mux=ts,url=:6301},select="program=6301",dst=std{access=http,mux=ts,url=:6302},select="program=6302",dst=std{access=http,mux=ts,url=:6316},select="program=6316",dst=std{access=http,mux=ts,url=:6317},select="program=6317",dst=std{access=http,mux=ts,url=:6318},select="program=6318",dst=std{access=http,mux=ts,url=:6319},select="program=6319",dst=std{access=http,mux=ts,url=:6331},select="program=6331"}' Sky News vlc --ttl 12 --ts-es-id-pid -I dummy --programs=4710,4711 dvb: --dvb-adapter=1 --dvb-frequency=12207000 --dvb-srate=27500000 --dvb-voltage=13 --sout '#duplicate{dst=std{access=http,mux=ts,url=:4710},select="program=4710

nokia cable

You can also use Nokia DLR-3P data cable. Just cut off connector and wire RED to J2 pin 1 (+3.3V), GREEN to J2 pin 2 (RXD), GRAY to J2 pin 3 (TXD) and BLACK+SHIELD to J2 pin 4 (GND). Since this cable is normally powered by phone you need to connect J2 pin 1.

tftpd in leopard and osx

Copy the file you wish to serve to: /private/tftpboot Then: sudo launchctl From the launchd% prompt run: load -F /System/Library/LaunchDaemons/tftp.plist start com.apple.tftpd stop com.apple.tftpd unload load -F /System/Library/LaunchDaemons/tftp.plist

vlc stream astra

rte radio feeds from astra vlc --ttl 12 --ts-es-id-pid -I dummy --programs=9611,9612,9613,9614 dvb: --dvb-frequency=10744000 --dvb-srate=22000000 --dvb-voltage=18 --sout-standard-access=udp --sout-standard-mux=ts --sout '#duplicate{dst=std{access=http,mux=ts,url=:9611},select="program=9611",dst=std{access=http,mux=ts,url=:9612},select="program=9612",dst=std{access=http,mux=ts,url=:9613},select="program=9613",dst=std{access=http,mux=ts,url=:9614},select="program=9614"}'

dvb-t ireland vlc

vlc dvb: --dvb-adapter=0 --dvb-frequency=738000000 --dvb-guard=32 dvb-code-rate-hp=3 --dvb-fec=3 dvb-code-rate-lp=3 dvb-modulation=16 --dvb-bandwidth=8 stream with ip like this vlc --ttl 12 --ts-es-id-pid -I dummy --programs=1101,1102,1103,1104,1226,1227,1228,1229,1230,1231,1232,1233 dvb: --dvb-adapter=2 --dvb-frequency=738000000 --dvb-guard=32 dvb-code-rate-hp=3 --dvb-fec=3 dvb-code-rate-lp=3 dvb-modulation=16 --dvb-bandwidth=8 --sout-standard-access=udp --sout-standard-mux=ts --sout '#duplicate{dst=std{access=http,mux=ts,url=:11101},select="program=1101",dst=std{access=http,mux=ts,url=:11102},select="program=1102",dst=std{access=http,mux=ts,url=:11103},select="program=1103",dst=std{access=http,mux=ts,url=:11104},select="program=1104",dst=std{access=http,mux=ts,url=:11226},select="program=1226",dst=std{access=http,mux=ts,url=:11227},select="program=1227",dst=std{access=http,mux=ts,url=:11228},select="program=1228

dazzle stick and Heron

PCTV 330e sudo -i apt-get install build-essential mercurial hg clone http://mcentral.de/hg/~mrec/userspace-drivers cd userspace-drivers ./build.sh cd .. hg clone http://mcentral.de/hg/~mrec/em28xx-userspace2 cd em28xx-userspace2 ./build.sh /etc/init.d/media-daemon start modprobe em28xx-dvb