Questions tagged [hardware]
Programming questions related to the physical components of a computer. Please specify the model of your hardware in your question.
2,744
questions
0
votes
0
answers
15
views
MATLAB Stream vs. Python
Times ago, I wrote this MATLAB code snippet to write data to a serial object (hardware receiver)
try
fwrite(serialObj, codeDEC, 'uint8', 'async');
pause(0.01);
catch
stopasync(serialObj);
...
-1
votes
0
answers
12
views
Is there any way to access machine code on motherboards in electronics like Roku, etc?
I'd like to preface this with the fact that I know absolutely nothing about hardware but I am a programmer and I'd like to extend my knowledge between the two. Never used a raspberry pi or anything ...
-1
votes
0
answers
10
views
Listen to camera events (e.g. photo made) and send it to browser
Let`s imagine the situation where camera is connected do PC with cable or bluetooth.
Is it possible in some way to capture the camera events (for example photo is made) and upload it to the browser ...
-1
votes
1
answer
43
views
How can i implement a down counter into the code below?
enter image description hereenter image description here
I have to Write VHDL code that counts up 00-99 and counts down 99-00 and cycles through.
There are two external buttons that are connected to ...
0
votes
0
answers
40
views
How to enable auto power on for a Google Coral Dev Board?
Is there a way to automatically turn on the device whenever power is supplied?
What is currently happening is that when I connect the usb-c connector to the power it lits the ethernet orange light, ...
0
votes
1
answer
18
views
What is an OS' HAL?
The hardware abstraction layer (HAL) is (AFAIK) the lowest level software within a computing system. Thus, is it a set of functions implemented in assembly language (specific for a particular ...
-1
votes
0
answers
16
views
Hardware for Machine Learning / Deep Learning
I want to build a new computer for Data Science purposes.
What do you think about this hardware:
https://www.ldlc.com/configurateur-pc/23fe088422141bb69274a13cab5fbe47/
Do you have any improvement in ...
-1
votes
0
answers
26
views
Recommended hardware requirements for Apache Airflow cluster in production [closed]
At my company we're using Airflow to extract some info from files in real time. We've got 6 DAGS with 10-12 tasks per DAG to do different things with this files.
On top of that we need to multiply ...
-1
votes
0
answers
15
views
Video Codec with in build audio
I want to build a Network video recorder. I have a question regarding Video encoder.
My question is , that video codec like H.264 has inbuild audio or we have to add another audio codec for audio.
-1
votes
0
answers
21
views
Which of the following two is more reliable in the data center, linux kernel or hard drive? [closed]
I want to find out the linux kernel panic rate in the real production environment, but I failed to get any useful statistics. There are many failure rate statistics for computer hardware like hard ...
0
votes
0
answers
13
views
how to fix on board audio ports and get them to work [closed]
i cant get on board audio ports to work any suggestions ?!
i have doubts that the whole issue is from the gpu cause its out dated and maybe its driver interferes with the mb driver the only sound ...
0
votes
2
answers
72
views
How much hardware is needed to create a microservices demo architecture
I am estimating how much hardware I need to set up a demo microservices architecture (for example: https://github.com/microservices-demo/microservices-demo).
The architecture contains:
Kubernetes ...
0
votes
0
answers
11
views
How does hardware (cpu or similar) provide any protection for the OS's essential memory [duplicate]
So basically this might be a dumb question but how does hardware (cpu or related) protect virtual data even though all the cpu or any other hardware is doing is sending electricity around, it wouldn't ...
2
votes
1
answer
79
views
C++ big allocation of memory
I wrote test code in C++:
void handler()
{
std::cout << "allocation failed" << std::endl;
std::set_new_handler(nullptr);
}
int main()
{
size_t allocations_count = 0u;...
0
votes
1
answer
44
views
Extending MIPS one-cycle data path to implement movcn
I have trouble implementing the movcn instruction in MIPS. (MIPS One-Cycle Datapath)
Here is how the instruction is defined:
R[rd] = R[rs] if R[rt] < 0
I am not sure what to use to compare if R[rt] ...
0
votes
0
answers
35
views
Python using less than 1% of the CPU, how do I get Python to use more resources?
I am working on translating a rather complex script from Matlab to Python and the results are fine.
However Matlab takes around 5 seconds to complete, whether Python takes over 2 minutes for the same ...
0
votes
0
answers
8
views
All 4 CPU cores reaching critical temperatures when booting up Android Studio
my LG Laptop with Intel Core i7 1165G7 (Tiger Lake-U) and 16gb ram keeps attached to a 120hz Sceptre Monitor (which is actually only using 100hz), is overheating when I boot my Android Studio project. ...
1
vote
1
answer
28
views
PLL Init function in STM32F429 to configure max frequency (180Mhz)
I want to configure PLL in STM32F429 to its max frequency (180Mhz) without using STMCube-generated configurations. I am using my own register definitions like this
#define RCC_CFGR (*((...
0
votes
0
answers
17
views
with the arduino M0?
I'm a student with a new arduino M0. I want to use it with a GSM SIM900a. I'm new with it I made a research and I didn't get how to code the UART to make use of it. The "SoftwareSerial.h" ...
0
votes
1
answer
16
views
How to model devices?
I am looking for a way to create 3d model for a device I want to make from scratch, and be able to visualize its dimensions.
I have tried using software like blender, but I don't think its the optimal ...
0
votes
1
answer
17
views
Does Kurento supports hardware decoding by utilizing the GPU (RTSP Streaming)?
I want to render the RTSP streams which comes from the IP cameras on to the web browser. In this context, when an IP camera supports one codec and web browser supports another codec. Here, transcoding ...
0
votes
1
answer
51
views
UEFI secure boot, how (or will) the PCIE device (firmware) are checked?
Recently I'm searching for info about if PCIe devices are involved in the uefi secure boot, and if so, how it is done.
From the uefi specification, the main boot sequence is roughly shown below:
...
0
votes
1
answer
42
views
How to disable touchpad mouse movement in Linux Fedora
I'm using a Lenovo ThinkPad T440p as you can see link image below.. I have a problem with the touchpad, it caused the mouse to go crazy on its own. I want to disable certain functionality from the ...
-1
votes
0
answers
59
views
Where is the memory map in a MCU?
I am trying to understand how a MCU architecture works.
I have the data path and the control registers.
When I want to transfer a data to a peripheral, I check the memory map and I enable the ...
0
votes
1
answer
34
views
Are PS/2 devices port mapped I/O devices?
Are PS/2 devices like old-style mice and keyboard are port mapped I/O devices? Are there any PCI or USB devices which can be functioning as port mapped I/O devices?
0
votes
0
answers
16
views
Arduino - Joystick only working when SW is physically pressed
I bought a new joystick for a project of mine using Arduino Leonardo, and I wanted to test it out a bit before doing stuff.
I used the joystick library example:
#include <Joystick.h>
Joystick ...
0
votes
1
answer
29
views
how to set a Scene in DALI Protocol with Arduino?
I want to set DALI scene with Arduino uno. but I don't know which command should be sent?
which command should be sent twice?
and Which command should be sent first?
0
votes
0
answers
27
views
Does GetSystemFirmwareTable return an unique result everytimes?
Im trying to create and Hardware identification system for my application.
Just by googling a bit i found the following code:
using System;
using System.ComponentModel;
using System.Runtime....
-1
votes
1
answer
50
views
How to calculate a memory of a specific size
I would like to design a 4kb memory.
The size of a memory is equal to 2^m words or 2^m*n bits, m for address lines n for data lines.
In verilog we can write
reg [WordSize-1:0] Mem [0:Address_width];
...
0
votes
0
answers
20
views
Scrolling is too fast with touchpad
When I try to scroll using the touchpad in VScode it is too fast but if I connect an external mouse it works perfectly and if I use the touchpad on for example notepad it scrolls perfectly.
My laptop ...
0
votes
1
answer
42
views
BalenaOS use Raspberry Pi Compute Module 4 IO board's Real-Time Clock inside container
I'm trying to use the CM4 IO board's Real-Time Clock (RTC) to persist datetime changes from within a docker container, so whenever the device reboots, it remembers the newly set datetime. (By default ...
0
votes
0
answers
30
views
MacOS is scrambling bluetooth PINs if they contain char values greater than 0x7E
I'm trying connect a MacOS Monterey 12.3 (M1, 2020) laptop to a bluetooth device typically intended for embedded applications.
The device's bluetooth PIN is the device's address and therefore has char ...
2
votes
0
answers
34
views
What happens when multiple GPU threads in a single warp/wave attempt to write to the same shared memory location?
I've been learning about parallel/GPU programming a lot recently, and I've encountered a situation that's stumped me. What happens when two threads in a warp/wave attempt to write to the same exact ...
0
votes
0
answers
69
views
How to solve the overflow phenomenon in BLE high speed transmission or strange bag loss phenomenon?
I tried to transmit at the rate of 30000~36000 bytes(Send the notify of the device continuously), but win10 bluetooth receiver has packet loss phenomenon, although there is no lack of comma or period, ...
0
votes
0
answers
23
views
What is the diffrence between "fragment" and "fragement"
I'm troubleshooting a device-tree and have come across the keywords "fragment" and "fragement" in my decompiled blob. At first, I thought it was a typo, but I see the same thing in ...
1
vote
0
answers
19
views
How to get ppg value with max30105 sensor
I want to get ppg value to max30105.
But i can't find ppg value in code.
Just i find heart rate.
How to get ppg value?
#!/usr/bin/env python
# NOTE! This code should not be used for medical diagnosis....
1
vote
1
answer
67
views
How to access Display and speaker in C programming?
I only know C programming.
Using C programming, I want to build my own library (to control my Display and Speakers) that's specifically useful for my projects.
I don't want any readymade libraries ...
-2
votes
1
answer
30
views
Does cpu usage affect reading of serial data? [closed]
I'm not sure if this is an obvious question, but I am somewhat new to serial communication (at least never thought about it in this depth) and extremely new to Python. I have a Raspberry Pi and a ...
0
votes
0
answers
18
views
Making 2 clocks with phase shift
I'm trying to create 2 clocks with phase shift for 1/4 cycle time:
Start
V
____ ____
C1 __| |____| |____
____ ____ __
C2 | |____| |____|
So after ...
0
votes
0
answers
104
views
How can I get the actual hardware ID/UUID of connected sound devices in Python?
Is there a library or subprocess command I can use to get the hardware ID/UUID in Python? I would like to check to see what audio output devices are on the system and then select one and save that ...
0
votes
0
answers
46
views
ARM program memory dump
I'm being asked a question about a memory dump and how to find the values of the var x and y. I was wondering how I would find those I'll post the questions below.
-Thanks
1
2 .global main @ ...
0
votes
1
answer
123
views
Flutter usb serial with arduino, Not detecting CH340
I'm trying this package usb_serial to communicate with my hardware devices like Arduino, Esp8266, Esp32, FTDI board, etc.,
Right now I'm using a board with a CH340 chip in it. Device details are ...
0
votes
1
answer
131
views
Ionic 5 Harware Back Button only refresh the home page (without exiting the app)
I am a bit new to mobile developments and in my app (Ionic 5, Angular 13, Android 9) I want to exit the app on touch of hardware back button (Best is at the home page). However, it only refresh the ...
2
votes
0
answers
39
views
Program behavior when a jump is out-of-range
I'm wondering what would be the program behavior if a jump is out of range. What factors affect the program behavior (compiler, processor, ISA, or factors I don't know).
Also how may I find it out (in ...
0
votes
0
answers
59
views
Why is the network latency so high in Linux socket hardware time stamping?
I am trying to obtain the packet traveling latency in hardware timestamp between 2 computers connected by 1 Ethernet cable. However the result for obtained delay is 11.5 micro-seconds, which is much ...
0
votes
0
answers
26
views
Android Kiosk root permission setting
I'm trying to install a finance-related app on the kiosk, but I can't use it due to root privileges.
First, through ES File Explorer at the kiosk
system/bin/su
system/xbin/su
system/app/SuperUser.apk
...
0
votes
1
answer
69
views
GCloud N2 machines: 128 vCPUs in 1 chip? [closed]
I saw that GCloud offers N2 instances with up to 128 vCPUs. I wonder what kind of hardware that is. Do they really put 128 cores into 1 chip? If so, Intel doesn't make them generally available for ...
0
votes
0
answers
21
views
Board computer with concurrent AP and P2P-GO wifi interface
We are in the first stages of development of a hotspot wifi transmitter. In order to allow Android devices to connect to it via wifi P2P and iOS devices via a classic wifi AP simultaneously, we guess ...
1
vote
1
answer
21
views
Does the computer erase the values which have been reserved for variables in the RAM after the program is finished?
We have learned that the information in the hard disk are never erased, only the links to it are erased. Does this apply to RAM as well (as long as the computer is on of course)?
For example, When I ...