Tuesday, October 16, 2012

Yet another guide to setting up RTL-SDR, Zadig Drivers, and SDR# on Windows

NOTE: This was written some time ago and hasn't been checked or updated since, so things may be slightly different for recent versions.

One-time driver setup

Don't install the "official" USB drivers that came with your RTL-SDR device.  No harm if you do, but they're not used as the "Zadig" step below tells Windows to use a different driver instead.

Plug in your RTL-SDR device, don't let Windows install any drivers for you.

Download, unzip and run " ExtIO_USRP+FCD+RTL2832+BorIP-BETA_Setup.zip" from here: http://wiki.spench.net/wiki/USRP_Interfaces#Installer

Minimal selection is:
- Support files
- Libusb
- VC++ Runtime

Run "Zadig", if it isn't run by the setup program.

Select your RTL-SDR device, and hit "Install Driver".

Close Zadig.


SDR# Installation

Download the SDR# application and the RTLSDR plugin from here: http://sdrsharp.com/index.php/downloads

Unzip SDR# to somewhere.

Unzip RTLSDR plugin to the same place.

From the "config" folder in the plugin zip, copy the SDRSharp.exe.config to the main folder, replacing the existing configuration file.  This enables the option of choosing the RTLSDR plugin for input.

Download this: http://sdr.osmocom.org/trac/raw-attachment/wiki/rtl-sdr/RelWithDebInfo.zip

Open that, and find the file "rtl-sdr-release\x32\rtlsdr.dll".  (x32, even if you're using 64 bit Windows).  Put that DLL file in the SDR# folder as well.  This is the DLL that the plugin uses.  Due to licensing reasons, it isn't bundled with the plugin.


Quick Start

Run SDRSharp.exe.

Choose "RTL-SDR / USB" at the top.

Check that the center and frequency is set to something sensible (not 0).  e.g. "94500000".

Click "Play".  An easy test is a FM radio station, so tune to its frequency, and choose "WFM" (Wide FM).

If you're doing signal strength comparisons, turn off the two AGC options in the dialog that opens when you click "Configure" at the top.

If you have limited CPU power, turn down the sample rate in the "Configure" dialog, and choose a lower resolution on the FFT.


Extra Information

A guide to SDR#, including the installation steps, is here: http://www.atouk.com/SDRSharpQuickStart.html

Tuesday, February 01, 2011

Search contents of all files in Windows XP Search

From here:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ContentIndex]
"FilterFilesWithUnknownExtensions"=dword:00000001

Friday, March 26, 2010

Gloomy Sunday

Here is the Sheet Music (piano score) for:

Vége a Világnak (The End of the World), by Rezső Seress

It is also the music used for Szomorú Vasárnap (Gloomy Sunday), and is in the movie Gloomy Sunday - Ein Lied von Liebe und Tod (1999).


Click the links above for the lyrics.

The music is transcribed, using Musescore, from a low quality sheet music scan I found on the web.

Download (pdf).

Sunday, December 20, 2009

Roof insulation story, part II

About a month ago (10 days after "an interesting few days"), a couple of guys turned up at my door asking to inspect the work done by one of their subcontractors.

I was somewhat suspicious (once bitten, twice shy), as they were from a company I had never heard of. They had a letter from the government, regarding the fire in my roof, and were wanting to check it out themselves. They were also going around and checking all the other places the dodgy guy had done work: seven in my area, and there were also some in Goulburn.

After a bit of questioning/interrogation by me, it turns out that the dodgy guy had been subcontracted by them. Apparently the dodgy guy took them for a ride too, as he went to them and asked to subcontract. He then got this company to make the government insulation rebate claims on his behalf, and so now I guess they're possibly being checked out by the government.

I put them off from looking in my roof for a few days, during which I got in touch with the police constable I had talked to earlier, and passed on all my notes about these guys (their car's license plate, names, and all my notes from talking to him). I was also trying to figure out if these guys were trying to run some sort of crazy scam. Given their association with the first dodgy guy, I was quite suspicious/cautious.

Since I'd told him of the police involvement, that their subcontractor wasn't from the company they thought he was from, and that their subcontractor was possibly being investigated for fraud, it was a good sign that they did come back a few days later.

They had a look in my roof, and weren't happy with the quality of the work done, or the fire part, or their subcontractor. They then offered to fix it up for me (at no charge) so I told them that'd be great and to start in a week or so.

I then spent the week trying to figure out if there was (another) potential scam here. The worst I could see is that they would be crazy in coming back (several times) to the scene of the first scam, and at most they could make off with the new insulation (since it's worth maybe $800 or so).

Over the next few weeks the guys came and went a few times. First time around, I got my kitchen insulated (it was skipped by the dodgy guy, as it's hard to find and horrible to get into). It's at this point that I started to relax and feel positive about these guys. They hadn't made off with the insulation, and actually put more in.

They then moved all the (badly installed) new insulation aside, and paid another company $1000 to vacuum out the remainder of the old insulation (which is what should have been done in the first place). They then re-installed the new insulation properly, everywhere. Yay!

I've also had a plasterer and painter come and go, paid for by my house insurance, fixing up a crack in my lounge ceiling that was caused by the heat of the fire. I also got them to fix up a bad spot in my hallway, so now I have entirely repainted hallway and lounge ceilings. Yay!

Today I did a paranoia check in my roof, checking that all my downlights weren't buried in insulation (they weren't), fixed up my TV antenna cable that had been melted in the fire, and moved some left-over insulation, from the putting aside part a week ago, from above my garage to above a room that I use - so now my office has 150% insulation. Yay!

So, everything is back to normal and the way it should have been a couple of months ago! Financially this has cost me (insurance excess + money paid to dodgy guy) what it should have cost to be done properly anyway, but unfortunately some of that has gone to a guy who don't deserve it. It has also cost the people who fixed it up a fair bit of money and time, too.

The police investigation into the dodgy guy is expected to take another month or two until it has any further developments. There's also some internal police sillyness to do with cost centres: the enthusiastic constable (who is really keen to chase this up) is being told to back off, as her superior's superiors are saying it should be investigated by Parramatta, rather than Auburn (i.e. where it happened vs. where it was reported). However, in spite of that it is still being slowly investigated. It'll be interesting to see if I get to identify the guy in a line-up, have to do an official statement, or go to court.

I'm also wondering if I can get the department of fair trading involved, and/or find some way to get my money back from the dodgy guy. My insurance company may also be chasing the dodgy guy too, since it's probably cost them over $1500 to fix everything up.

It's also interesting searching for companies on the government's list of registered insulation installers, then doing an ABN search, and trying to find a company that is more than two years old.

If you know someone who is looking at getting their roof (re)insulated, here is a list of companies that I know to be not dodgy:

  • Australian Insulation: http://insulationgroup.com.au (Did my roof vacuuming, but they also do insulation installs.)
  • Abbey Insulation: http://abbeyinsulation.com.au (The company that was impersonated by the dodgy guy. Also offered to fix up my roof, for no reason other than wanting to help, until their lawyers got involved, and told them to keep away from me, in case it looked like an admission of liability.)
  • Pepsu Services: http://pepsucleaning.com (The guys in the middle of it all, who subcontracted the dodgy guy, but did end up fixing it all at their expense.)
  • Ceiling Suckers: http://www.ceilingsuckers.com.au (Unrelated to my story, but a friend of a friend has used them for vacuuming.)
  • NSW Insulation: http://nswinsulation.com.au (Friend of a friend used them for new insulation.)

And, while I'm plugging companies:

Thursday, October 29, 2009

An interesting few days

Friday/Saturday


Two weekends back, I had a door-to-door person give me a quote for upgrading my ceiling insulation, taking advantage of a $1600 govt. grant. Sounded good, so I told them to go ahead, and they came and went over a couple of days (last Fri/Sat). They removed old insulation and put new stuff in.

I had a look at the work they'd done, and got annoyed because of the poor job, not doing what they'd quoted for: they'd only removed and replaced about two thirds of the insulation in my roofspace, and in some areas put new stuff on top of old. They had also managed to knock out the wiring for the lights in three rooms of my house (including bathroom, which made things interesting in the evenings).

...Sunday/Monday


On Sat/Sun/Mon I'd been trying to get hold of the installer to fix up the slack work they'd done, and arrange for an electrician to fix my lights. He went from giving strange exuses, to ignoring my calls and messages completely.

On Sunday night, my lights (those that still worked since Friday) all went out. I saw that the fuse in my fuseboard had tripped, but didn't re-set it, since I figured there might be something bigger wrong due to whatever they'd stomped on to take out those three rooms on Friday.

Tuesday


I called the insulation company directly on Tuesday (giving up on the guy who did the installation), ready to complain and demand things be sorted out ASAP, and found out that they guy who had done my insulation removal/installation most definitely wasn't from their company.

Uh-oh.

The dodgy guy was using a stolen/acquired quote book (later discovered to be one of six, each with fifty pages). The real insulation company went to the police, who are now pursuing fraud charges. At this point, we've only got a couple of first names, and mobile phone numbers (one of which soon became disconnected). The govt. department that does the $1600 ceiling insulation cashback thing has also been notified, and they are actively pursuing this as well.

So, up until now things are interesting enough with police and fraud charges. But wait, there's more....

Wednesday


I finally got an electrician around on Wednesday (organised it myself, since the real company isn't at fault, and I'd written off any hope of hearing from the dodgy guy). I told him what I knew at that point, and he went exploring in my roof to trace the crazy wiring I have and fix it all.

His comments went from "It smells like a campfire up here" to "Come up here with a camera and have a look at this" to "You're lucky to still have a house".

Follow the links for pictures in my roof-space, above my lounge. The yellow stuff is the new glass wool batts, the brown/grey stuff is the old insulation, and have a guess at what the black is...

http://stuff2web.com/d/mrmttb/IMG_7597__Large_.JPG

http://stuff2web.com/d/ygzdbw/IMG_7598__Large_.JPG

The dodgy installers didn't fully remove the old insulation, somehow packed it around a halogen downlight, and put new insulation on top of all that (this is on Friday/Saturday). My fuse popping on Sunday would have been due to this fire.

It had smouldered it's way 4 to 5 meters along, going along my roof between my rafters. Amazingly, it didn't ignite the wooden rafters themselves, and petered out when it got to the end. I was completely unaware at the time that that was happening.

There was also another (independent) fire around another halogen, which the sparky had already cleared away before seeing the big one:

http://stuff2web.com/d/sspvyy/IMG_7600__Large_.JPG

At this point, I got to call 000 for a fire engine, even though there wasn't any urgency, and a fire engine came to visit. The firies confirmed it was out, and not making any sort of toxic fumes. Another phone call later, and my insurance company told me to let the electrician get back to work and replace the burnt out wiring, and that I was covered (less excess) for getting it fixed up. There were also another couple of halogen lights, more or less similarly dangerously enclosed by insulation.

The insurance company is sending an inspector at the end of next week to check out the damage, and see if any other insurance-covered repairs are required. It looks me like all the wooden roof-bits are practically unaffected, though there is a crack on my lounge room ceiling.

So, the dodgy installation guy, already being chased by the police and environment.gov.au since Monday will soon have my insurance company after him for this. I may also be able to go to the dept. of fair trading, and the courts.

On Wednesday night I went into the police station, along with the real insulation company guy, and told them what I could remember. The police's only interest is for the fraud side of things, but there is also a lot of interest from environment.gov.au (who do the $1600 thing), and I'm sure my insurance company will want to get after him for the fire-related part. The Department of Fair Trading, and courts may get involved too. I'll know more about this side of things after a week or two.

Thursday


Found out today that last night, after we left the police station, the constable called the girl who had door-to-door'd me (the only working phone number we had left), and quite quickly got her to give up the guy who was running the show. He had received the quote books from a family member who had been to a training course or something at the real insulation company.

I went and visited a few of my neighbours (at the request of the police and real insulation company) to see if many of them had been visited, and also to warn of potentially dangerous insulation installation. Only one of them had been visited by the people who door-to-door'd me in the first place, but she had asked them for ID which scared them away.

The real insulation company was more than willing to re-do the insulation job properly, but was advised by their lawyers not to - in case it looks like an admission of liability. Its more than likely I can get the dodgy job redone properly, for my entire roofspace, at no charge - since I'm still eligible for the $1600 thing. I'm also not without insulation, since there is a several hundred dollars worth of new stuff put in by the dodgy guy.

That's it for now


Probably not much will happen for the next week or so, until the police constable running this is back from holiday, and my insurance company has been by with their inspector.

So, so far: I'm OK. My house is pretty much OK. The police have ID'd the guy, and I'm covered by my insurance. I've now met 7 of my neighbours (up from the previous 1). I'm out a few dollars at this point, but may be able to sue (or whatever one does in Australia) the guy to get it back. I'm not really annoyed now, but just interested to see how it all plays out.

Lessons so far


Learning from your mistakes is a good idea, and learning from others' is even better! 20/20 hindsight suggests, for any unsolicited door-to-door calls:

(1) Ask for ID
(2) Look up the company they're representing in a phonebook (don't trust anything they give you), and confirm that the person really does represent the company.
(3) Ask the workers for evidence of relevant qualifications/certifications/etc.
(4) If you have halogen downlights, after any work (probably should do this semi-regularly anyway) check that they are clear of insulation/leaves.

Wednesday, April 29, 2009

Microchip PIC SPI CKE and CPE vs. CPOL and CPHA

CKP = CPOL
CKE = opposite of CPHA
CKP     0               0               1               1            Clock Polarity
CKE     0               1               0               1            Clock Edge
        Idle Low        Idle Low        Idle High       Idle High 
        Change L->H     Change H->L     Change H->L     Change L->H 
        Read   H->L     Read   L->H     Read   L->H     Read   H->L 
     
        CKP: Clock Polarity Select bit (CKP == CPOL)
        1 = Idle state for clock is a high level; active state is a low level    
        0 = Idle state for clock is a low level; active state is a high level    
     
        CKE: Clock Edge Select bit (CKE == !CPHA)
        1 = Serial output data changes on transition from active clock state to idle clock state    
        0 = Serial output data changes on transition from idle clock state to active clock state    

Tuesday, February 17, 2009

Microchip I2C slave ISR calls for reading and writing

PIC24 / PIC30 / PIC32 acting as I2C slave.

If the host writes a byte to address 0x40 (0x40, data), 2 calls to the ISR occur:
(1)
  I2CxSTATbits.D_A = 0 (address)
  I2C2STATbits.R_W = 0 (write)
  I2CxRCV = 0x40 (our address)
  Don't load I2CxTRN.
(2)
  I2CxSTATbits.D_A = 1 (data)
  I2C2STATbits.R_W = 0 (write)
  I2CxRCV = incoming data
  Don't load I2CxTRN

If the host reads a byte from address 0x40, 1 call to the ISR occurs:
(1)
  I2CxSTATbits.D_A = 0 (address)
  I2C2STATbits.R_W = 1 (read)
  I2CxRCV = 0x40 (our address)
  Load I2CxTRN with response

Tuesday, November 11, 2008

Chuck Barcode



It is in Codabar format, and says "254242323434".

Thursday, August 07, 2008

Anonymous file sharing access to Vista shares

With thanks to Pete..

  • run gpedit.msc
  • local policies > user rights assignment
  • deny access to this computer from the network
  • you need to remove guest
  • then enable the guest account and set the password to blank
  • also add guest to the 'access this computer from the network' policy too