Questions tagged [peripherals]
99 questions
68
votes
5 answers
Can HTML5 communicate with peripherals like scanners and credit card readers?
My company writes software that installs on client machines to perform point-of-sale transactions. The software interfaces with a variety of external peripherals (receipt printers, bar code scanners, credit-card readers, etc). We do this with a…

Daniel Szabo
- 7,181
- 6
- 48
- 65
20
votes
4 answers
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 script I'll create.
I think it's OK if I need to…

sergiopereira
- 2,026
- 2
- 23
- 31
17
votes
4 answers
Raspberry BLE peripherals alternative to bleno
Until now I have developed several programs to use in my Raspberry Rpi2 and RPi3 as BLE perifpherals using bleno.
Can anyone tell me if there is something alternative to Bleno, in Python or even better in C, to develop a code for a BLE peripherals…

Alessandro Ferri
- 171
- 1
- 4
17
votes
5 answers
Run iOS 6 device as a BLE peripheral
As we know, iOS 6 support running devices (iPhone 4s and above, and new iPad) as a BLE peripheral. There is a demo in WWDC 2012 Session 705 called "advanced core bluetooth". I asked for the source code from Apple. They sent me a modified version of…

Bagusflyer
- 12,675
- 21
- 96
- 179
15
votes
6 answers
Controlling simple relay switch via USB
I'm looking to control a mains powered light from a simple relay switch connected via USB to the computer.
The relay switch isn't even a USB device, it's just a simple switch that requires the USB voltage to turn it on. When the voltage drops below…

Matt
- 11,157
- 26
- 81
- 110
14
votes
3 answers
Bluetooth Peripheral ADVERTISE_FAILED_DATA_TOO_LARGE
I am trying to advertise in NEXUS 9 and getting the error of ADVERTISE_FAILED_DATA_TOO_LARGE. It was working perfectly fine when I was adding the service after successfully advertising but if I add the service through Advertise Data builder so that…

Shubham
- 2,627
- 3
- 20
- 36
10
votes
5 answers
BLE peripheral throughput limit
We are developing a BLE sensor Peripheral to work with an iPad, that requires the following throughput of data on the BLE notification characteristic (no acknowledge) using a TI CC2541 BLE module and a custom profile:
One 20 bytes (GATT maximum…

user2683370
- 101
- 1
- 1
- 4
10
votes
3 answers
Continuous scanning for iOS CoreBluetooth Central Manager?
The Low Energy Bluetooth spec does not say much about whether peripherals can connect to more than one central at a time, but my experience testing tells me that they cannot.
Because my application requires a non-possessive relationship with…

Jonathan
- 111
- 1
- 4
10
votes
2 answers
iOS BLE peripheral / advertisement data in background mode
I'm developing a system which has a BLE device (TI CC2540) as Central and an iOS app on iPhone4S as Peripheral. Everything works fine except 1 function I need: white-list (filtering) advertising devices from central side.
As far as I know, iOS…

mgdaubo
- 101
- 1
- 4
9
votes
2 answers
How can I cycle a USB device from C#?
I'd like to cycle (simulate unplug and re-inserting) a USB device (modem) after a certain event has fired. I found a sample on codeproject:
http://www.codeproject.com/KB/system/usbeject.aspx
That allows me to identify+eject the device via its…

callisto
- 4,921
- 11
- 51
- 92
7
votes
0 answers
Android BLE API: Autoconnect does not work for every device?
I have two peripheral devices, say device1 & device2 and one Android device for central role. Android can connect to both by BluetoothDevice.connectGatt() method with autoConnect = false.
Problem is - While autoConnect functionalities work well for…

profused
- 143
- 3
- 8
6
votes
1 answer
iOS CoreBluetooth operating as a peripheral and central simultaneously in the background
I'm writing an app using CoreBluetooth in iOS8 that detects and connects to other phones using the app. I'm trying to figure out the best way to be able to create a connection while both apps are backgrounded, but have been having difficulty in the…

Steven
- 61
- 2
5
votes
1 answer
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 ARM website it says: "This concept of secure and…

BenObi
- 51
- 3
5
votes
5 answers
Compact Keyboard Recommendations?
Any recommendations for a high-quality compact (no number pad) keyboard, preferably $50 or less?
Criteria:
$50 or less
Preferably with laptop-style keys (scissor switches instead of rubber
membranes ala cheap desktop
keyboards)
Quiet (I'm a Model-M…

John Rose
- 1,943
- 2
- 18
- 29
5
votes
2 answers
CMSIS and peripherals drivers
what types of codes are written in CMSIS files and peripheral drivers file. How can I distinguish them? any example would be more helpful. Thank you.

istiaq2379
- 113
- 3
- 13