Solution to webcam issue on Windows Server 2008 R2

Posted by under Servers, on 29 June 2013 @ 6:01pm.
broken-broadcast
Do not adjust your TV set…

After getting a new HP Micro Server I decided it was time to stop using a desktop OS (Windows 7) and move to a proper server OS (Windows Server 2008 R2). It’s a good move in many respects, but the most important is that it’s designed to be a server and run 24/7 where as a desktop OS isn’t.

Everything went smoothly until I got to setting up my CCTV software. I use a regular cheapo webcam for my CCTV needs. It’s simple but it does the job. On Windows 7 this worked great with the exception of USB webcams causing crashes on occasion. The problem I encountered was that the webcam simply didn’t work at all. The driver had been installed, and I even tried a webcam that was driverless (using built in Windows drivers). That also didn’t work. All I was getting was a black screen.

What also struck me as odd is that one of my webcam applications wouldn’t run. Windows 2008 R2 is based on Windows 7, so the application should run without a problem unless an artificial restriction has been put in place. I knew it hadn’t as my friend made the software himself and confirmed it. He suggested it was just a “general incompatibility”.

Regardless, I tried another piece of his software that also dealt with webcams but this also had problems running. However in this case I got a different error message about “wmvcore.dll”. I decided to do a quick search for solutions by copying the error message, and it came up with something I didn’t know about. Windows Server 2008 R2 doesn’t come with the “desktop experience” package installed. This is installed on Windows 7 by default of course, but a server doesn’t require it because it’s not a desktop OS. Part of the desktop experience is Windows Media Player, and this is what the error was referring to. I decided it was a long shot but I installed the desktop experience package.

Low and behold, after it installed (and the system rebooted twice) the webcams were now working! Hurray! It was a simple fix but had I not been able to try the 2nd application I would probably not have found the solution without it’s error message.

So now I’m happy that it’s working. What I’m not happy about is that compared to my old server, this one is a little less powerful so it’s using more of the CPU to run the CCTV software (75-85% rather than 50% or so) but that’s not a huge issue. I’ll monitor it and make sure it’s not affecting backups etc.

I hope this long winded article helps someone else with the same issue I’ve been having.

 

 

New Electronics Project – Power Box V2

Posted by under Electronics, on 20 June 2013 @ 10:41pm.

Just a quick note before I begin, the Peugeot 306 I mentioned in my last post was sold last week. I managed to make back what I paid for it so it was no loss for me at all besides the time and worry spent over it. Still, you live and learn from your mistakes. There is one thing I have to note however. I sold the car through Auto Trader, and as soon as I signed up, less than a few hours later I had interest in the car. This was great, but then you read the e-mail and realise it was a scam. I got 2 e-mails both sounding very similar; A person needs a car for their son/daughter, but they are going away for 6 weeks and can’t view it. They will send payment via PayPal and they’ll pay the costs, and have a ‘shipper’ collect the car once payment is made. It all sounds perfect. What people don’t always realise is that they will then open a Paypal complaint and claim their money back, and there is little you can do to stop it. Auto Trader recommend you ignore these types of e-mails. I actually edited my advert to say phone calls only and cash on collection, as the scammers won’t call you or deliver the cash, so they ignore the ad.

———————————-

power-box-v2-circuit

The (incomplete) circuit for the powerbox v2. Left: Arduino. Right: 2x 5v @ 3A Switched Mode PSU’s.

Right, onto something more interesting. I decided earlier in the year to make version 2 of my power box (v3 if you include it just being a box). This one will be updated to include a digital voltmeter based on the Arduino. This also allows me to put in various other things on the screen too such as current draw, solar charge current, temperature, etc. I’m also upgrading the USB sockets from an LM2575 to the LM2576 which is a jump from 1A to 3A output. I’ve decided to split the 3A between 2 USB ports (perhaps 3, I don’t know yet, most likely 2 though) so that it can handle tablet PC’s and more modern phones. Some tablets won’t charge unless they get at least 1.5-2A of power and you never know, someone might want to charge one.

I’m also going to wire up the inverter to a proper socket this time and have a power switch on the front so you don’t have to mess about with opening the box to use it. This was a massive pain and had the risk of it being wired up incorrectly too.

The biggest change however is that I now have a 10w solar panel to charge the battery when we’re away. It is small enough to fit in the box but powerful enough to offset the use of the battery. It won’t fully charge it if we’re using it, but it will help stop it going flat as quickly. Last year we flattened it in the week (it was as dead as dead gets the day we left). This damages the battery if you do this so I would prefer to keep it topped up by use of solar. Here is a bit of maths…

The battery is 90Ah (so you can draw 1A for 90 hours until it’s dead, theoretically).

The solar panel, on a good day will output 3Ah (0.6A x 5 hours good sunlight) which is about 36Wh, plus perhaps a bit more when it’s indirectly in sunlight. I intend to roughly calculate this with the arduino’s solar input current.

Assuming a phone battery is 5Wh, I can charge roughly 6 phones per day from solar alone without using any battery power. This is assuming the solar panel does output 0.6A for a minimum of 5 hours and the system is 100% efficient.

Of course, it’s never perfect and when you want solar power the sun goes in, so these figures will likely never be reached. I won’t know for sure until it’s tried out for real.

Regardless, it’s better than having no solar panel at all. Over the course of the week, I could put 20Ah of power into the battery from the solar alone, and if we use what we used last year then it’s a win win situation. I do of course have use of the car if it does go flat. A 15-30 minute blast on the jump cables will sort it out no problem.

Anyway, I’ve been ordering parts for the project this evening so I can hopefully get it completed before camping this year. If not, I still have the old faithful box from last year instead which works just great. I’ll keep the blog updated with developments on this as I go along.