100 questions
-1
votes
1
answer
43
views
Arduino Pro micro Flight Peripheral (I have very limited programing knowledge)
Hey I need help with "my" code. I generated it with chat GPT based on the data for the arduino pro micro I have and data on the sensors/switches i use. I want my simulator peripheral to ...
0
votes
0
answers
49
views
Android BLE Peripheral encounters issues when continuously sending data using the notify method
Continuously send data 1000 times using the notify method, with an MTU of 512 and each packet being 244 bytes.
The onNotificationSent callback is only received after all data has been sent, and there ...
0
votes
0
answers
938
views
RuntimeError: Cannot determine SoC peripheral base address with RPi.GPIO on Raspberry Pi
import RPi.GPIO as GPIO
import time
PWM_GPIO = 27
SPEED_GPIO = 22
# GPIO setup
GPIO.setmode(GPIO.BCM)
GPIO.setup(PWM_GPIO, GPIO.IN, pull_up_down=GPIO.PUD_DOWN)
GPIO.setup(SPEED_GPIO, GPIO.IN, ...
3
votes
6
answers
327
views
Is there a difference in how bitfields behave depending on the underlying type width?
I am defining some registers (they're all 32-bits wide) to interface with a hardware peripheral using bitfields. At first I defined everything by mixing uint8_t, uint16_t, and uint32_t types. For ...
0
votes
1
answer
68
views
What type is `peripherals.APB_SARADC.split()`?
In Demystifying .. Split.. and .. using the ADC blog:
// Promote ADC peripheral to HAL-level Struct
let analog = peripherals.APB_SARADC.split();
But I cannot figure out what the return type is of ....
0
votes
1
answer
427
views
GD32F303RBT6 - TIMER_0 - PWM Settings
Good morning, everyone,
I am a firmware developer and am currently using the GD32F303R8T6 microcontroller to control a brushless motor.
To control such a motor, I plan to use the timer peripheral ...
0
votes
0
answers
154
views
Get the usage timestamps for previously connected external devices in PowerShell
How can I get timestamps on previously connected External devices for a specific port?
(Usage Start Time and Usage End time)
I have tried this but, i am only getting USB list, I need all the external ...
0
votes
1
answer
415
views
Bash script that detect when a joypad is plugged in and retrive its ID_MODEL in a variable, then execute commands
I want to detect with a bash script when a joypad is plugged in and retrive the ID_MODEL of the controller in a variable.
So the script should remain silently listening as long as it is plugged in a ...
-1
votes
1
answer
188
views
STM32 SPDIFRX Peripheral problem (interupts not firing)
I am trying to make myself Digital audio to Analog audio converter
I have STM32F769i Discovery0: https://www.st.com/en/evaluation-tools/32f769idiscovery.html
Which has SPDIFRX and SPDIFTX ports
I ...
-1
votes
1
answer
163
views
Win32 Scard.h c++ - having issues with the api [closed]
I'm trying to look into smart card reading and I've immediately encountered an issue that I'm struggling with. I've called the SCardEstablishContext and I'm now trying to list the cards readers. I'm ...
0
votes
1
answer
1k
views
Peripheral BLE - Can Simulate BLE device on IOS using Flutter?
Is there any Flutter library to simulate BLE device on iOS?
Referred below link. But not working...
https://github.com/juliansteenbakker/flutter_ble_peripheral
https://github.com/dotintent/...
0
votes
2
answers
141
views
If two computers have the same CPU ( same machine instructions ) then what prevents a program from being compatible for both computers?
I'm studying computer architecture and I don't understand what really makes a software for one machine "compatible" with another machine. Let's take for example two machine like Mac Os and ...
1
vote
0
answers
1k
views
Connecting 3 uart peripherals with esp32
I have 3 devices(GPS-Rx only, tft display-TxRx and a motor driver-Rx only) that connect only using uart. 2 of which only Tx, while one another has both Tx and Rx. I am using uart 0, for tx-rx ...
1
vote
0
answers
863
views
Peripheral devices connection (COM connection) problem with Win 11
After upgrading to Windows 11 I realize that there is no COM-Port to connect to, as it has become legacy software. And now I cannot find my device connecting through a USB port anymore
As I try to ...
2
votes
1
answer
601
views
Can't modify peripheral registers on the rp2040
I'm scratching my head because I can't write and read some/most peripheral registers.
I'm using Rust here and the setup code from the rp2040-hal.
The following code tries to write 0x42 to the DMA's ...
1
vote
0
answers
144
views
Razer Chroma POST Request hangs Python Script indefinitely
I've been trying to use the Razer Chroma REST API to alter the lighting on my peripherals, but I've been stopped at the first hurdle.
According to the Documentation, to initialise a connection, you ...
2
votes
2
answers
1k
views
Why are periperal registers 16 bit only on 32 bit MCUs such as STM32 and GD32VF103?
On 32 bit microcontrollers such as the ST STM32F103 (ARM core) or the GigaDevices GD32VF103 (RISC-V core) there are many registers for dealing with peripherals.
What surprises me is that peripheral ...
2
votes
2
answers
3k
views
Core Bluetooth. How can I check does peripheral already connect?
During development I got a problem witch related to the connection central and peripheral. When one of the central already connected with perepheral I have to don't allow to connect other central. ...
0
votes
1
answer
649
views
Is there a process to remap/switch CANTX/CANRX pins STM32H7 FDCAN module?
Testing out an STM32 with an FDCAN module (updated from the older BxCAN peripheral). CAN Classic at 500kbps.
I am running into an issue that when using the default pair of pins (D0/D1 in my case) I ...
0
votes
0
answers
129
views
How do I connect two computers to one monitor with DisplayPort?
I have two computers, they're not both on at the same time. I don't want to be switching the cable from one computer to the other all the time. Is there a way I can connect both computers to one ...
0
votes
1
answer
880
views
how to remove peripheral device from devices and printers in python
I want to remove device specific device attached to my computer when i run a script in python but am not able to do this. Have searched on the web with no solution.
link 1 and
link 2
I learnt i can ...
0
votes
1
answer
323
views
SpaceMouse Compact not working with js Gamepad api in Chrome on Ubuntu
As the title suggests I have a problem with using SpaceMouse in Chrome on Ubuntu. On Windows 10 it works fine. I've tried installing 3DxWare 10 and spacenavd but it still does not work.
It is worth ...
1
vote
1
answer
653
views
Is there a way in Android to programmatically get the default speaker or microphone or any peripheral
Let's say I have connected multiple external speakers and also if the device has inbuilt speakers.
How do I get the information on which speaker is the default one. Any help is appreciated.
0
votes
1
answer
140
views
I/O Data tranfer Modes and I/O addresses access [closed]
I've realized that the 3 ways to make an I/O connection :
1- Programmed I/O (polling)
2- Interrupt-Driven I/O
3- Direct Memory Access (DMA)
now, I need to relate this with the reality of how accessing ...
0
votes
0
answers
39
views
BANDWIDTH SHARING SCHEMES IN PLATFORM CONTROLLER HUB
What are the possible schemes for sharing the bandwidth of the link between the Platform Controller Hub and the CPU?
How could concurrent transfers work say for two I/O devices attempting to use DMA ...
0
votes
0
answers
305
views
Android OS for embedded system with I2C, GPIO, UART communication
Currently, I'm working on iMX7D board (from Toradex) with Android Nougat 7.1.2.
I'm writing a connection to peripherals via I2C, GPIO, UART protocol (I'm using a JNI binding that interacts with lower ...
2
votes
1
answer
16k
views
STM32 Timer auto-reload preload
The conditions to reproduce:
Here is my real life example that I would like to solve:I am developing an application on an stm32f411RET which needs to dynamically change the period of two PWM's.The two ...
1
vote
1
answer
658
views
Polling vs handshaking in hardware
Brookshear & Brylow's Computer Science: An Overview (12th ed.) states the following:
a process such as printing a document involves a constant two-way dialogue, known as handshaking, in which the ...
1
vote
0
answers
875
views
Android BLE Peripheral (GATT Server) with PIN Authentication
I want to develop an Android BLE Peripheral (GATT Server) which works as a virtual Heart Rate Monitor. My major requirement is, Any Android/iOS Central application connecting with this Android BLE ...
0
votes
1
answer
421
views
SPI test case in C for Pulpissimo
I am trying to write C test code for SPI peripheral module for Pulpissimo.I have gone through the test case mentioned in pulp-rt examples.
[https://github.com/pulp-platform/pulp-rt-examples/tree/...
0
votes
1
answer
29
views
Is consume a client web service from web browser good practice?
I'm developing a web application and I need to consume a service from the client side. I will deploy the service on the client and consume it from the web browser with Angular. Is this good practice?
...
1
vote
1
answer
861
views
How are memory mapped devices allocated an address and how does the CPU know what it is
I gather that the main ways of the CPU addressing devices are "port" and "memory" mapped.
In both of these:
How are devices dynamically assigned an address - who assigns it and ...
2
votes
1
answer
1k
views
How to get list of connected peripherals in an android application (not android things)
I am new to Android development and working on a requirement to get the list of peripherals connected to an android device. Example list of devices: external speaker, display monitors connected.
Is ...
0
votes
1
answer
165
views
USB Device Controller Driver Specification
For USB Host Controllers there are the UHCI/OHCI/EHCI/XHCI specification that define how to program a driver. Is there an equivalent specification for USB Device Controllers?
0
votes
1
answer
67
views
How to pass a stm32f3discovery API into a function? [duplicate]
I am trying to create a separate file/module that has functions that can deal with the LEDs or gyro for the stm32f3discovery. I am trying to pass the stm32f3 API that holds all of the registers into a ...
21
votes
7
answers
9k
views
MacOS - detect when camera is turned on/off
I want to automate a personal workflow that is based on camera usage on my MBP.
Basically I want to know if any of the cameras (built-in or USB) has been turned on or off, so I can run a program or ...
0
votes
0
answers
127
views
Sounds firmware installation has failed for internal reason
I am using OpenSTM Workbench to try and program an STM32F0 MCU. I am using Eclipse (with OpenSTM extension) on Windows 10. I keep getting the following error when I try to install the peripheral ...
0
votes
0
answers
34
views
Are all Windows services started before scanning for connected devices?
I am writing a WCF service hosted by a Windows service that is responsible for detecting USB devices being connected/disconnected.
Now, in order for this to work I need to understand the Windows boot ...
0
votes
1
answer
2k
views
How are USB peripherals' bIntervals enforced?
I have a FullSpeed USB Device that sends a Report Descriptor, whose relevant Endpoint Descriptor declares a bInterval of 8, meaning 8ms.
The following report extract is obtained from a USB Descriptor ...
1
vote
0
answers
820
views
BLE Peripheral design on iOS
I am working on a Bluetooth Low Energy (BLE) project which needs iPhone to act as a peripheral device. I am using BLEManager to deal with CoreBluetooth related jobs, which includes good ...
0
votes
1
answer
341
views
Access SPI by PeripheralManagerService on Hikey
I am trying to send data to a device which is connected to SPI of hikey960 platform. Hikey is running on normal mobile Android. Is it possible to run androidthings api on development platform like ...
0
votes
0
answers
236
views
Not getting rssi after connecting to a ble peripheral simulated on an android device
I have two android devices: Device A and Device B. I am running a BLE Peripheral Simulator on device A. I am running the Device B in BLE Central mode. I also have a BLE Beacon. With Device B I can ...
2
votes
1
answer
2k
views
How to communicate between android device and machine which runs on windows via USB
I am working on one android app where I am trying to establish a communication between android device and machine which runs on windows OS. I want to transfer some bytes from android device to that ...
1
vote
1
answer
90
views
Error with stty and STM32F4-DISCO (fourQ-package)
I recently downloaded the v3 of the FourQlib [1], build the FourQlib and wanted to test if everything went well.
First of all, my system:
Windows 10 (host) with MinGW, ARM Toolchain, MSYS, ...
...
0
votes
1
answer
515
views
Calling a method when user leaves view controller inside container View
I am attempting to disconnect from a peripheral when ever a user leaves the current view controller. This would normally be easy by using prepare for segue in the following fashion:
override func ...
5
votes
1
answer
2k
views
ARM TrustZone, connecting peripherals?
I'm currently doing some research about ARM's TrustZone, e.g. here: ARM information center. As far as I understand, with TrustZone a secure environment based on the AMBA AXI bus can be created.
On ...
2
votes
0
answers
865
views
Memory mapped ADC on DE1-SoC using HPS (hard-core processor)
I am unable to read from or write to the AD7928 analog to digital converter (ADC) on the DE1-SoC (Rev. F) development board.
I have the datasheets for the board and the ADC. I am using a mix of ...
1
vote
1
answer
967
views
Atomic access to ARM peripheral registers
I want to use the overflow, compare match and capture functionality of a general purpose timer on a ST2M32F103REY Cortex M3 at the same time. CC1 is configured as compare match and CC3 is configured ...
-2
votes
1
answer
181
views
Is there a way to determine if any kind of peripheral device has been removed?
I know there is something for WiFi and Bluetooth by using intent filter -> ACTION_ACL_CONNECTED, ACTION_ACL_DISCONNECT_REQUESTED, and ACTION_ACL_DISCONNECTED...But is there something in general to ...
0
votes
1
answer
498
views
ARM M3: Using 'extra' space in GPIO peripheral memory map? Can you do this?
I'm trying to understand someones code and they are reading a memory space in the GPIO region (0x4002 0000 - 0x4002 03FF), but it's a higher address than the GPIO registers (they only go to 0x24).
...