Install and uninstall Windows drivers from INF files onm Windows XP 

Got a daily task with the following conditions:
Get a Windows driver (generated with NI VISA driver generator) installed from TestStand and uninstall that after the test sequence had been run.

My first idea was the devcon.exe's install command, but it does not do what I wanted insted of created a new device in the device manager.

But the following trick was did what I needed:
C:\WINDOWS\system32\rundll32.exe syssetup,SetupInfObjectInstallAction DefaultInstall 128 foo.inf

If you want to call it from NI TestStand create a variable and pass it as arguments otherwise it will not work as expected.

Removing the driver can be done with the following command:
C:\WINDOWS\system32\rundll32.exe syssetup,SetupInfObjectInstallAction Target_remove 4 foo.inf
[ hozzászólás ] [ 0 trackbackek ] permalink ( 0 / 0 )
Compile urJTAG on Windows under cygwin 

Ingredients:
urJTAG source from SVN or Git.
Cygwin: install the packagelist from here: https://dl.dropboxusercontent.com/u/4295670/packagelist with the technology described here:
http://blag.nullteilerfrei.de/2014/01/3 ... -packages/

The python binding is broken so run the ./autogen.sh with --disable-python option.

Add

#define WINAPI_FAMILY 2
#define NOUSER

befor, and

#ifdef IN
#undef IN
#endif

#ifdef OUT
#undef OUT
#endif

fter the #include <windows.h> into the sysdep.h

Run
make -j 8 CFLAGS='-Wno-char-subscripts -Wno-unused-value'




[ hozzászólás ] [ 0 trackbackek ] permalink ( 0 / 0 )
IQP500 camera conclusions... 

I have started to play with ESP8266, and remembered to an IPQ500 S55 camera module got from a friend a few years ago.
I have started to dream about a 6USD Wifi IP camera, but my dreams shortly fallen to ashes.

I have started experimenting with the following python script:
http://mitschang.net/s55cam.py

The code assumes that you need to pull the RTS and CTS pins by hand to low.

Ah yeah... I used to be lazy, so after some patching the code was able to drive these two pins with my CP2101 based UART converter's RTS and DTR pins. But the code did not worked (nothing came at the serial port after the camera was activated). Let's check with logic analyzer! The camera's baud was not exactly 19200 but ~19100 which gives 0.6% error. The cheapy UART converter have not tolerated that! Lets hook to the good old FTDI! It works. Good.

I was able to take picture with the python code.
Conclusions:
Reopening a serialport in python will clear the RTS status, but changing baud rate on the fly does not have the same side effect.

The camera takes ~33K JPGs which is transferred ~3 seconds with the 115200. That would be poor for the video stream, so I thought that I will figure out how can the camera's baud rate increased. 921600 would fit well. But unfortunatelly the camera's protocoll is not documented and according to the other people reverse engineering results the camera does not have continous recording functionality.
So sad.

I have not given up the camera project I will look around for cellphone camera modules with SPI port with JPG encoder inside.


[ hozzászólás ] [ 0 trackbackek ] permalink ( 1 / 1 )
Building libkode & kxml_compiler on system having Qt4 & Qt5 

export USE_QT_VERSION=4; cmake -DQT_QT_INCLUDE_DIR=/usr/include/qt4 -DKDE4_BUILD_TESTS=ON -DQT_QMAKE_EXECUTABLE=/usr/bin/qmake-qt4


[ hozzászólás ] [ 0 trackbackek ] permalink ( 2.4 / 14 )
Avaya/Nortel 1120E IP Phone 

CPU: BCM1103
Flash: MX29LV640 (8MByte)
RAM: HY5DU561622ETP (32MByte)
2x Braodcom B5011A GbE PHY
LCD: Ultra Chip UC1611 (UC1611F8 is written to the flex part of the LCD)
Pictures later...
[ hozzászólás ] ( 1 megtekintés ) [ 0 trackbackek ] permalink ( 3.1 / 29 )

| 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | Következő> >>

 
számláló