Questions tagged [peripherals]

99 questions
5
votes
4 answers

How to access devices on a client PC from a browser

What are the various ways to access devices on client PC - a barcode reader, a scanner, etc. - from a browser? I realize my users may need a plugin. These devices may have an API that is specific to their device; I would like to exploit their API…
Upperstage
  • 3,747
  • 8
  • 44
  • 67
4
votes
1 answer

Continuous check in the main loop in Qt 5.5

I have a device that moves on a linear path, basically a linear actuator. When the device reaches the physical ends, it hits a limit contact which sends a signal to my software. I will need to continually check if this signal is online. But I'm…
bromega
  • 55
  • 4
4
votes
2 answers

How do you get core bluetooth peripheral's real UUID?

In iOS 7, I am writing a core bluetooth app to get advertising packets from a series of peripherals. Each peripheral has an unique UUID in its advertising packet and is shown in the LightBlue sniffer app. When I detect the peripherals in a…
user2984842
  • 81
  • 1
  • 7
3
votes
1 answer

How does the a CPU know the physical address range of a peripheral device?

For instance, how does it know that all addresses between: 0xXXXXXX and 0xYYYYYY map to the RAM / Graphics Card / Monitor / etc... on the motherboard?
3
votes
1 answer

CoreBluetooth scan peripheral with specific identifier

i'm currently using CoreBluetooth to scan for peripheral that i have connected before with specific identifier then only connect to the peripheral. I know i can do this by scan for peripheral with service, then compare with the identifier if the…
wes. i
  • 627
  • 9
  • 26
3
votes
1 answer

Android 5.0 peripheral mode, how to add data to a scan response

When advertising from an android device (supports BLE Peripheral mode) Is there a way to add advert data elements to a scan response? I think it is sending empty scan responses when a central role device is doing an active scan as we are recieving…
3
votes
0 answers

Peripheral transmit queue issue

I’m working on a simple wrapper around CoreBluetooth to send any data to any device. During developing I encountered a lot of bugs in framework, they were very annoying and to make my wrapper stable I had to shorten some of functionality for…
2
votes
1 answer

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 CH0_READ_ADDR register (0x50000000) and reads it…
Jounathaen
  • 803
  • 1
  • 9
  • 23
2
votes
2 answers

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 registers that require more than 16 bits are split…
maxschlepzig
  • 35,645
  • 14
  • 145
  • 182
2
votes
1 answer

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 PWM's need to be synced and have exactly the…
Spyros Mourelatos
  • 484
  • 1
  • 8
  • 19
2
votes
1 answer

Communication with an external (hardware) pushbutton

I would like to create an external pushbutton to use with one of my applications. My question does not focus on the hardware itself (that's why I'm asking it here), but on the software/communication side. What would be the best and most…
vsz
  • 4,811
  • 7
  • 41
  • 78
2
votes
1 answer

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 there a way to get the peripherals list? Note: I am…
DS009
  • 169
  • 3
  • 5
  • 14
2
votes
1 answer

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 machine using USB. I believe that machine which…
N Sharma
  • 33,489
  • 95
  • 256
  • 444
2
votes
0 answers

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 custom IP and pre-made hardware components. I have…
Gordon
  • 317
  • 1
  • 17
2
votes
2 answers

Understanding PCI address mapping

I'm studying PC architecture and feel that I'm not getting the fundamentals of PCI addresses. We have three address spaces in PCI: memory, in-out ports and configuration. I know that CPU can distinguish between memory and ports using different…
fresheed
  • 103
  • 1
  • 7