hardware-interface

What interfaces are programmable in the Nokia N73?

I have a Nokia N73 and I'd like to program it to interface with external hardware using any available interface. (POP Port?) Using any of the available platforms: Open C++ Symbian C++ Java Flash Lite Python ...

.NET Stopwatch Class limitations

This may not be an entirely not a .NET related question. I am writing a .NET application to control some gadgets. I send commands to the gadget periodically (say every 500 milliseconds). As soon as I send the command I start a timer. (.NET stopwatch class) If the gadget not respond within say, 10 milliseconds, I send the command again. ...

COM vs WMI for Information providing

What is better method to use if I would like to provide the user with some information about my Hardware device. Should I develop a proprietary COM Library or should I develop a WMI provider? ...

hardware buffering using SDL, question about how it works

I'm deciding to do my first game, its going to be simple but I want to use c++ and I chose SDL for my learning. So my question is about how the "buffers" are handled when writing code. I'll post my related code at the bottom. Ok, so basically the way I understand it is that SDL takes care of which buffer is actually being drawn to the s...

settop box hacking

I've recently bought a new set-top box, and the hacker spirit beckons me to carry out things with it.. i understand there could be no standard procedure to hack it / play with it still there should so my questions are : what hardware knowledge do i need to have inorder to get a basic understanding on how a set-top box works. (any how...

Does SetupDiGetClassDevs work with device instance IDs as documented?

According to MSDN documentation, SetupDiGetClassDevs can be passed a device instance ID to obtain a device information set for a specific device: To return only a specific device, set the DIFCF_DEVICEINTERFACE flag and use the Enumerator parameter to supply the device instance ID of the device. I get the device instance ID by...

How to integration/unit test software hardware interfaces

I'm working on a small fun projects that builds a robot. We as the programmers are working parallel to the people building the robot. So it is very often the case that we are trying to run changed software and the builders have changed the hardware. If the software tests are not running it is always a hard thing to figure out if the sof...

Control Philips Living Colors using PC

Hi guys, is there a way (hardware/software-combination) that I can use to control one or more "Philips Living Colors" lamps using a PC - e.g. a USB-stick that acts as the "remote". This way i could control the lamp through software (e.g. a web-app - over iPhone / remotely) or even create what Philips builds into some of their TVs and ca...

Monitoring battery or power supply of laptop from java

Hi All, I am developing an application which monitors the presence of the power supply of the laptop. If there is a power cut or restoration it will intimate me over email. It will also application monitoring and controlling over email (Basically to control my laptop from my office over email). I am done with email interfacing but I hav...

Drive Letter to Device Instance ID

How do I get from a drive letter to a device instance ID? My process starts with a device arrival message. I have been successful in getting the drive letter from the arrival message and in opening the dvd tray. I have searched the various Setup API items; but I haven't found anything that gets me from a drive letter to a device instan...

How to get caller ID in C# ?

Hello I wanna use 56K modem for getting telephone number of who calls the home phone, is there a way to achieve this with C# ? ...

read chip-id from pci- / pcie-card

A few months ago I had to write a small tool to program the eeprom of a rtl8139-card. It's basically the rtl8139-diag tool stripped down to read/write the eeprom. This tool has to be extend to be able to program the eeprom of rtl8101-cards now. This was not a problem, as the interface to the eeprom is similar to the one of the rtl8139. ...

POS software/hardware general questions...

I'm looking for answers to a few general questions as to how point of sale (POS) software and hardware generally works in brick-and-mortar stores. I realize there will be many edge cases given the sheer number of solutions out there, but I'm looking for answers on the most common setups... So, here it goes: I realize that there are sev...

Looking for Hardware that will easily interface with my .NET code.

I'm a .NET C# developer looking to do some hardware interfacing/programming. I just want something super simple to mess around with. I have done one of those basic stamp projects, but I want something with less electrical work. A self-contained piece of hardware would be fine. I'm not really looking to do embedded programming... but...

Receiving Invalid Data from Serial Port using SerialPort.ReadExisting()

I have written a program in .NET that listens to a particular Serial Port and processes the data that is being received. I wrote a test program using com0com (the Null-modem emulator) and my program was working fine. I even tested it with HyperTerminal and that seemed to work fine too. However when I interfaced the software with the orig...

Faking an RS232 Serial Port

I'm developing a project that has a number of hardware sensors connecting to the deployment machine through RS232 serial ports. But ... I'm developing on a machine without an physical RS232 serial ports, but I would like to make fake serial ports that I can connect to and output data from with the aim of faking input from hardware senso...

WMI: How to differentiate between Wireless mouse and touch screen

I am using Win32_PointingDevice class to detect mice connected to the system. I ran my device discovery script on a machine which has touch screen. The discovery shows up with 3 pointing devices, directly connected USB mouse, wireless mouse and touch screen. My question is how to distinguish between USB mouse with touch screen. If Win3...

deviceID format for PS/2 mouse

I would like to know the DeviceID and PNPDeviceID format for PS/2 Mouse. On my system Device ID for PS/2 mouse is ACPI\PNP0F13\4&1F1D307&0. So is the format is ACPI\PNPxxxx{something} or some thing else? I mean is ACPI is mandatory for PS/2 mouse? ...

"#include <asm/io.h>" causes "error: asm/io.h: No such file or directory"

I am using gentoo and trying to compile a program to control the bits on the parallel port. It has this line near the top of it: #include <asm/io.h> And when I try to use gcc on it, it produces this output: port.c:4:20: error: asm/io.h: No such file or directory "locate asm/io.h" yeilds (among other things): /usr/src/linux-2...

Finding device base address to communicate via inb() and outb()

I am trying to communicate with a disk drive using inb(), inw(), outb() and outw() commands so I can find specific information about the drive. However, to use these commands, I need the correct I/O ports for the device. When I have the correct I/O ports, I can find the information I am looking for very easily, however, I do not know a...