Questions tagged [peripherals]

99 questions
1
vote
1 answer

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 how? How does the CPU then know a device exists, has been assigned and…
1
vote
1 answer

Java application on Windows system running as USB peripheral

Is there a way to have a USB device act as a Host and an application on a Windows based system to act as the Peripheral? We have a USB device that is the host and we need it to connect to our application running on a Windows based system. The…
Matt E
  • 457
  • 1
  • 11
  • 24
1
vote
0 answers

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 implementations for both Central and Peripheral…
1
vote
1 answer

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, ... Ubuntu 16.04 LTS (Guest) (gcc, arm toolchain,…
Shalec
  • 172
  • 9
1
vote
1 answer

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 as capture. The IRQ handler looks as…
koalo
  • 2,113
  • 20
  • 31
1
vote
1 answer

Purpose of NYET packet in USB 2.0 HS when same purpose is accomplished by NAK

Depiction of state transitions with NYET, NAK and PING packets What special purpose does NYET serve when the next transaction could be simply be avoided by a NAK packet from the device?
Agent007
  • 41
  • 5
1
vote
4 answers

Best method for a webpage to access a mac's peripherals?

I'm building a web-based application that can use ActiveX Controls to print to a Thermal Label Printer (specific to shipping labels) in Windows environments, but I am racking my brain to figure out what the best method would be for OSX. Obviously…
James M
  • 239
  • 1
  • 6
1
vote
2 answers

xcode 5 CoreBluetooth not discovering services for peripheral

I'm building several BLE apps, and have encountered this problem with my BLE protocols as well as external vendors. For the most part, BLE works as intended, but sometimes it will fail to discover services for a specific peripheral and will not work…
abriggs
  • 744
  • 7
  • 16
1
vote
0 answers

STM32F4xx - Writing to memory in C

I am having a problem writing to memory on my ARM STM32F407VG. I am using Keil to program it and working with it for an Embedded Systems class. We just moved from ASSEMBLY to C and I am still getting acquainted with CMSIS. The assignment itself is…
Yusif_Nurizade
  • 133
  • 1
  • 12
1
vote
1 answer

Can BLE iOS device be peripheral and central at the same time?

Is there any possibility to have both peripheral and central mode available at the same time? In that case we are advertising as peripheral while listening for advertisements of other devices. Thanks
CppChase
  • 901
  • 12
  • 25
1
vote
0 answers

c# java eid reader peripheral not detected

I'm trying to run a test wrote in C# that uses Java classes. In Java classes, I try to detect an EID card plugged in the computer. The Java code has been tested and works well but once I try to execute it from C#, it seems no EID card has been…
user1866320
  • 21
  • 1
  • 4
0
votes
2 answers

Can ruby manipulate and work with peripherals like webcams?

Can ruby manipulate and work with peripherals like webcams? I would like to create a system that uses a webcam. Is it possible to do with ruby?
Mateusgf
  • 889
  • 1
  • 8
  • 14
0
votes
1 answer

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 .split() or even for sure what definition it is…
Jason Kleban
  • 20,024
  • 18
  • 75
  • 125
0
votes
1 answer

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 TIMER_0 (advanced timer) to generate 3 PWM signals…
0
votes
0 answers

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 devices are connected History on a specific…