Questions tagged [hardware-interface]
200 questions
8
votes
4 answers
problem with two .NET threads and hardware access
I'm creating an application which communicates with the device via FT2232H USB/RS232 converter. For communication I'm using FTD2XX_NET.dll library from FTDI website.
I'm using two threads:
first thread continuously reads data from the device
the…

mack369
- 441
- 2
- 6
- 10
8
votes
4 answers
Hardware interrupt for synchronous data acquisition
I am looking for a simple means of triggering my data acquisition software using an external TTL pulse. I need to sample data from multiple sources synchronously with a 5 Hz reference clock. The acquisition does not need real-time priority but I…

Mike
- 2,637
- 5
- 29
- 40
7
votes
3 answers
How to emulate memory-mapped I/O
I have some hardware that i want to emulate; i wonder if i can do it at a low level like this. The hardware has many registers, which i arrange in a struct:
#include
struct MyControlStruct
{
uint32_t data_reg_1;
uint32_t…

anatolyg
- 26,506
- 9
- 60
- 134
7
votes
2 answers
what is the different of busy loop with Sleep(0) and pause instruction?
I would like to wait on an event in my app which supposed to happen immediately, so I don't want to put my thread on wait and wake it up later.
I wonder what are the difference between using Sleep(0) and hardware pause instruction.
I cannot see any…

sramij
- 4,775
- 5
- 33
- 55
7
votes
4 answers
How can I program a digital frame?
I am not sure if that is the right place for this question but I couldn't find any posts on that subject.
I want to upload my own program into a digital frame. Any ideas how to do it?
Languages ?
Interfaces ?
API maybe?

AYBABTU
- 986
- 3
- 17
- 39
7
votes
1 answer
How can I capture keyboard events and use a monitor as a text-display on Linux?
I have a server running in multi-user mode that is connected to a keyboard and a monitor. On a separate computer, I would like to SSH to the server and run a program that captures input from the keyboard and prints text to the monitor. The keyboard…

ToBeReplaced
- 3,334
- 2
- 26
- 42
6
votes
2 answers
Android capture hardware keyboard event without edittext view
How can I capture the hardware keyboard events without using an EditText field?
For example, in a simple activity the display a square on the screen, when a "B" is pressed on the slide keyboard I want to turn it blue, when a "G" is presses, turn it…

Noah
- 15,080
- 13
- 104
- 148
6
votes
3 answers
How to Read RS232 Serial Port in PHP like this QBasic Program
I'm trying to port the following small QBASIC program (which works 100%) to PHP:
OPEN "com1:2400,n,8,1,DS," FOR RANDOM AS #3
OPEN "data.dat" FOR OUTPUT AS #2
REM read 17 chars from the port
scale$ = INPUT$(17, #3)
PRINT scale$
WRITE #2, scale$
CLOSE…

CJ_
- 61
- 1
- 1
- 2
6
votes
5 answers
Monitoring battery or power supply of laptop from java
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…

vcosk
- 2,894
- 2
- 23
- 23
6
votes
2 answers
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…

Janusz
- 187,060
- 113
- 301
- 369
5
votes
4 answers
How to list the harddisks attached to a Linux machine using C++?
I need to list the harddisk drives attached to the Linux machine using the C++.
Is there any C or C++ function available to do this?

balu
- 55
- 2
- 3
5
votes
3 answers
Possible to detect bit errors in memory in software?
A friend and I were curious as to whether you could detect levels of ionizing radiation by looking at rates of single bit errors in memory. I did a little research and I guess most errors are caught and fixed at the hardware level. Would there be…

Jack Rogers
- 305
- 3
- 14
5
votes
2 answers
Mock Device connecting through USB
I have a device and the drivers for this device. What I would like to do is build an application that mocks a USB device to communicate with a third party application.
More specifically, I am attempting to build an application that can mock a USB…

Josh
- 16,286
- 25
- 113
- 158
5
votes
4 answers
Why writing speed of RAM is coming far less than what is mentioned on it?
I uses below command to measure the ram writing speed but it is showing me far less than what is mentioned on RAM.
time dd if=/dev/zero of=tes bs=100M count=10 oflag=dsync && sync
10+0 records in
10+0 records out
1048576000 bytes (1.0 GB) copied,…

humanshu
- 139
- 1
- 6
4
votes
3 answers
Reading milliVolts in Android for pH Tester
I'm looking in to making a pH tester for my Android phone. I've found a pH electrode that will send a milliVolt signal which I can then use to convert into a pH reading (59.2 mV per pH unit @ 25° C). The question I'm having is would it be possible…

Zac
- 2,325
- 3
- 23
- 33