Very cheap and cool hack that will be finished-up quickly

 

What would be the best embedded HW platform for cool hack ?

this could be discussed for some times here.

But, let me, one more time talk about how nice are Arduino solutions as a building block way of creating your HW/SW hack.

To be completly honest, I only recently decided to look at it, and noticed the progress made compare to the ancient  time .

we had to program eprom, mount it on PCB, erase it with UV and more create interface circuit and all protocols to simply upload code on microcontrolers ! (ok this was around 1990 for me)

Here, the device  that I would like to present, is the following: Arduino nano v3 – atmega 328

 

HW presentation:

http://arduino.cc/en/Main/ArduinoBoardNano

Download SW here :

http://arduino.cc/en/Main/Software

 

- – - – - – - – - More to read here, hold the line !

Linux / Ubuntu SUN Java JRE valid installation

It happen that under Linux, I need with my browser a working java support , like a lot of normal penguin fan, with maximum java compatibility.

For this, I really prefer to have a standard Sun java JRE or JDK, but it doesn’t come pre-installed under my preferred ubuntu :-/

After having searched many time, a working procedure (forgetting how to, and searching again.. bla bla)

Here is the one that worked for me, for Ubuntu 10.04,  in a simple way this from original link :

 

First step will be to download jre-6u34-linux-i586.bin file, after having accepted the license !

http://www.oracle.com/technetwork/java/javase/downloads/jre6-downloads-1637595.html

then:

$ chmod u+x jre-6u34-linux-i586.bin
$ ./jre-6u34-linux-i586.bin
$ sudo mkdir -p /usr/lib/jvm
$ sudo mv jre1.6.0_34 /usr/lib/jvm/
$ sudo update-alternatives –install “/usr/bin/java” “java” “/usr/lib/jvm/jre1.6.0_34/bin/java” 1
$ sudo update-alternatives –install “/usr/lib/mozilla/plugins/libjavaplugin.so” “mozilla-javaplugin.so” “/usr/lib/jvm/jre1.6.0_34/lib/i386/libnpjp2.so” 1
$ sudo update-alternatives –install “/usr/bin/javaws” “javaws” “/usr/lib/jvm/jre1.6.0_34/bin/javaws” 1

open you firefox browser (no choice hu :) ) and have fun !

USB controled ON-OFF plug

When you have your own 24/7 server, it would be a pitty not to consider saving power as much as possible..

when it become so simple with today’s equipments !

I am thinking to controled power supply with nice and affordable USB controled plug like this one

Of course home appliance with x25, zwave or other RF based control could be choosed, but I did prefered wired solution this time.

http://www.aviosys.com/8800.html

I did purchase mine at:

http://mafianumerique.com/product_info.php?products_id=1800&language=fr

 

Linux control utility and links:

http://code.google.com/p/usbnetpower8800/source/checkout

http://www.libusb.org/wiki/libusb-1.0

https://github.com/walac/pyusb

Test under ubuntu 10.04 TLS

$ sudo apt-get remove python-usb
$ wget http://sourceforge.net/projects/pyusb/files/PyUSB%201.0/1.0.0-alpha-2/pyusb-1.0.0a2.tar.gz
$ tar xvf pyusb-1.0.0a2.tar.gz
$ cd pyusb-1.0.0a2.tar.gz
$ sudo python setup.py install

$ sudo python ./usbnetpower8800.py on

Windows control utility and links :

Libusb is required from above link

http://www.craftedge.com/products/libusb.html

Then python script from code google will do the job

http://code.google.com/p/usbnetpower8800/source/checkout

C:\Python27\python.exe c:\usbnetpower\usbnetpower8800.py on

 

 

Directory md5 integrity check, and dummy remote backup principles

It might be frequent that for different needs, you want to verify the integrity of your data within a directory..

In the same way when you create or collect important data, that you don’t want to loose it (frequent attachment pathology of human being :) ).

 

I found this recursive md5 utility, file by file, in *command line* very usefull. Here also my example is base on exf windows program

because I used it with automation tool xstarter.

So.. exf do the job:

exf.exe -otf  c:\temp\md5_result.txt -r -d “c:\mydatadir” *.*

Then you get a digest file with all by file md5 fingerprints.

Hum..suddenly you want to compare if any changes  have been done to you previous copy of this archive of

if any file did change so what you need is to compare to this digest file list to the previously saved one.

c:\temp\md5_result.txt  can be simply compare with any tools but there is a small issue: 3 lines are updated with a time stamp that you can remove by using a command line tool like .. sed :

sed.exe –in-place 3d “c:\temp\md5_result.txt”

 

Now we can consider a very simple remote file synchronisation system based on fingerprints comparison.

Wait !! I know , I know, very good tools does exist to do remote data backup synchronisation, like the great rsync.

I want just to expose this simple mechanism, because it will work on a basic setup of server having a FTP tool where

the backup process acts completely passively on the remote server.

The advantage is that it is really widespread tools and setup.

Next time I will exposes test results of rsync usage :)

sed for windows

exf command line

My quick repack of required tools

Make your electronician soul revive with this compact USB scope :)

After a long period with no usage made of my heavy Hameg scope,

I finaly decided to sell it ,to save some room, but since then I have no more good tool

to watch for living electric signal…. until I found this on my prefered gadget dealer :)

 

See the photo page for more details (click image)

As a review, I would says that, this time ordering this gadget was a bit risky !

Ok it works fine, tested under windows XP (don’t expect any support or evolution)

The bottom line is the poor signal sampling resolution of 8bits

after tweaking a bit randomly the user interface,  I finaly got my scope signal..

You can find more information with this manual of software interface.

Packaging is cheap but who cares for the price:) . It is nice to have those real BNC probe.

[Well know :) ]  Hardware maker web link for MDSO202

Multi VirAnalyser provided software link

Command line simple file comparison.. that works !

cmd line For different situation I had the need of comparing 2 file, mostly binary ones and start searching for on the shelve tool.

My constraint was Windows :) so we have the great fc.exe tool that is supposed to do the job.

Indeed I discovered after some times that my system using fc.exe in production did suffer from nasty bugs

After lost time searching on the web I decided to write a basic replacement tool sfc.exe that should work pretty much correctly.

Fourier transform on µ-c 8031

Some body wrote this FFT on 8052 µ-c some years ago. The source code disapeared then from the web, that’s why I attached here a copy of his soft package and I give mine also that is the same function set for the µc 8031 the RAM data are handled in a different way (because of external program data). Download it now!

You will certainly have little work to run it with your assembly program.