hardware-interface

How to get Caller ID in C#?

时光毁灭记忆、已成空白 提交于 2019-11-29 09:08:11
问题 I want to use 56K modem for getting telephone number of who calls the home phone. Is there a way to achieve this with C# ? 回答1: Not all modems support caller ID. And for those that do, the implementation varies between manufacturers. There caller ID is passed through the serial data so you will have to use the TAPI library (or Windows' HyperTerminal to test it). The caller ID number typically appears between the first and the second ring. You will need to issue a command to the modem to

Is there a way to check whether the processor cache has been flushed recently?

[亡魂溺海] 提交于 2019-11-29 08:28:17
问题 On i386 linux. Preferably in c/(c/posix std libs)/proc if possible. If not is there any piece of assembly or third party library that can do this? Edit: I'm trying to develop test whether a kernel module clear a cache line or the whole proccesor(with wbinvd()). Program runs as root but I'd prefer to stay in user space if possible. 回答1: Cache coherent systems do their utmost to hide such things from you. I think you will have to observe it indirectly, either by using performance counting

Monitoring battery or power supply of laptop from java

旧城冷巷雨未停 提交于 2019-11-29 07:43:15
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 have no idea on how to monitor the power supply / battery supply from java. If any can give some pointer on this it will be of great help. Thanks in advance .... You have probably already solved this problem but for the others - you can do it the way Adam Crume suggests,

Get finger position on touchpad

扶醉桌前 提交于 2019-11-29 07:40:36
Is there any way to get the location that touch pad is touched? also I need capture module that is able to return such 2D points array map that reports states of touchpad points (state means: is point touched/not touched ) by request. No matter on what technology/language it is written I know this isn't what you want to hear, but there is no all-inclusive way to do what you want. Individual makes and models have their own way of exposing it. For example, I've done some work with Synaptic touchpads (fairly common) which expose a COM interface on Windows. That code won't work on any other

How to access CPU's heat sensors?

杀马特。学长 韩版系。学妹 提交于 2019-11-28 19:24:26
I am working on software in which I need to access the temperature sensors in the CPU and get control over them. I don't know much hardware interfacing; I just know how to interface with the mouse. I have googled a lot about it but failed to find any relevant information or piece of code. I really need to add this in my software. Please guide me how to have the control over the sensors using C or C++ or ASM. Without a specific kernel driver, it's difficult to query the temperature, other than through WMI. Here is a piece of C code that does it, based on WMI's MSAcpi_ThermalZoneTemperature

How do I connect to a terminal to a serial-to-USB device on Ubuntu 10.10 (Maverick Meerkat)?

Deadly 提交于 2019-11-28 02:49:03
I am trying to connect minicom to a serial device that is connected via a USB-to-serial adapter. This is a PL2303 and from everything I've read no additional drivers are required. The device is recognised as a PL2303. I'm a beginner at minicom. Is this the correct command to execute? Or do I need to configure something? $ sudo minicom --device /dev/ttyUSB0 minicom: cannot open /dev/ttyUSB0: No such file or directory $ sudo lsusb -v Bus 002 Device 006: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port Device Descriptor: bLength 18 bDescriptorType 1 $ tail /var/log/syslog #then removed

Monitoring battery or power supply of laptop from java

∥☆過路亽.° 提交于 2019-11-28 01:17:00
问题 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 have no idea on how to monitor the power supply / battery supply from java. If any can give some pointer on this it will be of great help. Thanks in advance .... 回答1: You

Get finger position on touchpad

和自甴很熟 提交于 2019-11-28 00:44:36
问题 Is there any way to get the location that touch pad is touched? also I need capture module that is able to return such 2D points array map that reports states of touchpad points (state means: is point touched/not touched ) by request. No matter on what technology/language it is written 回答1: I know this isn't what you want to hear, but there is no all-inclusive way to do what you want. Individual makes and models have their own way of exposing it. For example, I've done some work with Synaptic

How do I connect to a terminal to a serial-to-USB device on Ubuntu 10.10 (Maverick Meerkat)?

我的未来我决定 提交于 2019-11-26 23:49:38
问题 I am trying to connect minicom to a serial device that is connected via a USB-to-serial adapter. This is a PL2303 and from everything I've read no additional drivers are required. The device is recognised as a PL2303. I'm a beginner at minicom. Is this the correct command to execute? Or do I need to configure something? $ sudo minicom --device /dev/ttyUSB0 minicom: cannot open /dev/ttyUSB0: No such file or directory $ sudo lsusb -v Bus 002 Device 006: ID 067b:2303 Prolific Technology, Inc.

Faking an RS232 Serial Port

两盒软妹~` 提交于 2019-11-26 19:26:43
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 sensors. Does anyone know of a way to create a fake serial port and control it on Windows XP? If you are developing for Windows, the com0com project might be, what you are looking for. It provides pairs of virtual COM ports that are linked via a nullmodem connetion.