|Can iOS re-connect to Bluetooth LE peripheral by specifying )CBPeripheral *)peripheral instead of doing retrievePeripherals?|
YES, it will work (but it's terrible practice). The retrievePeripherals:
method was specifically created so that you can reconnect to peripherals
between subsequent launches of an application. You can use your method, but
once the app is shutdown, you will never be able to connect to the
peripheral again (without putting it into advertising mode and starting
from scratch basically). You can store the uuid between launches, but you
cannot store a CBPeripheral object. So there's the big downside right
So to sum up: it will work, but it doesn't really gain you anything. It is
not faster than calling retrievePeripherals: and then connecting them. Your
suggested method is only limiting your abilities for connections in
CoreBluetooth. But an interesting question nonetheless.
|What is the difference between misc drivers and char drivers?|
Edit: I thought you were talking about drivers/misc drivers, but I see
you're refering to character drivers using misc_register (and all the API
in drivers/char/misc.c). You should specify this in your question.
In this case, the misc API seems to make your life easier when you're
writing a small character driver and do not want to need to allocate a new
major number only to use one minor number, for example. It simplifies
things, but all the file operations are still available using the fops
member of struct miscdevice. The basic difference is you only get one minor
number per misc device.
My previous, unrelated answer was, for the record:
Have a quick look at drivers/misc: you won't find any "misc core" out
there. This means: misc is not a device class; it's just a bunch of drivers
|Windows/XBOX 360 Programming|
To self-publish a game to the Xbox 360 Xbox Live Indie Games section XNA is
your only option. Licensed developers who publish either full retail games
or Xbox Live Arcade games have more options but those are developers who
either have a publisher working with them or Microsoft is working with them
as a publisher, which I would assume is not the case for you.
As a side note, it's still the solution for 360 indie publishing, but XNA
is not being actively developed any more and does not target new Windows
store applications for Windows 8 or Windows 8.1. As such it works for 360
Indie games and Windows desktop games, but you you'll have to port your
game to move it to modern windows platforms and there is currently no plans
to support XNA on other platforms moving forward.
|Java using xbox controller|
The wired XBox 360 controller will present as a joystick in Windows, so a
library like JXInput will allow you to accept inputs from it.
|Emulating an XBox 360 controller from (not for, from) a laptop|
If you have access to a development console and the SDK I could help you
out, the task is essentially impossible with a retail console and your
laptop or xbox would require some hardware modifications to work properly,
unless you want to connect via a USB. It might be more plausible then.
Regardless, if you have access to the proper software I might be able to
lend you a hand.
|Xbox Dashboard using CSS "Display" attribute|
Use the CSS float: property to arrange the divs. In this case it takes a
bit of thinking spatially but it's not too difficult.
For example http://jsfiddle.net/2K9TG/ in this example the divs with black
borders have no float set and the divs with red borders have float set to
So by floating an object, all of those objects with float set to float:left
or float:right, will be formatted next to each other (inline) rather than
underneath each other. With something like the XBox dashboard, it gets a
lot more complicated, you have to put divs inside of divs and float some of
those divs and others not. I made a jsFiddle example
http://jsfiddle.net/xPAGd/ for you to check out. All divs have a red border
so you can see what they do. Hope this helped you out
Also here's a great tut
|Xbox Application Development using C# and Visual Studio|
Visual Studios seems to be what most developers would use for xbox.
As for languages if your looking to develop apps for xbox and not games,
you could use C# or WPF.
Hope this was a bit helpful.
|Can I use Java to do game programming for Xbox-one and self publish it?|
It was not possible for the Xbox 360, so i guess it will be the same for
the Xbox One.
On this Wikipedia article about developing Indie Games, they say:
Create – Games are written in C# or Visual Basic .NET using the XNA
Game Studio framework, allowing the developers to debug and test their game
internally before release. The final code is compiled into a single binary
So the answer is that you can't develop games in Java for Xbox One.
|Retrieve xbox live gamertag after login|
I believe you need the user to provide you with the gamer tag and use that
Reading through here, i don't see any authentication support. All calls are
based on the gamertag that is provided.
|Check if valid Xbox Live username?|
I believe this API is the best to use for checking if the Gamertag is valid
Here is a valid Gamertag: https://xboxapi.com/profile/VNM+Jar that returns
Here is an invalid Gamertag: https://xboxapi.com/profile/196jjdfd74nu9za
that returns "Success":false
You could then do anything you wish with these values...
|Exchange data between iOS app and Mac app through USB cable|
Take a look at https://bitbucket.org/tristero/ipodaccessframework which can
get/put files into an applications private document directory, provided you
know its application bundle id.
|Usb Midi cable on iOS simulator|
No. The External Accessory framwork does not work in the iOS simulator
according to Apple
|Modbus RTU and ASCII on the same RS485 cable|
the short answer is yes. You can speak as many protocols as you want on
RS485 as long the messages doesn't get ambiguous.
I have many PV inverters on a shared RS485 line and many other sensors
which speak a complete different protocol. The two class of devices share
the same line with no problem.
|Can I simulate pulling out the network cable?|
Unload the kernel module for the network driver might kill it the way you
Pick your network interface from the list of active (eth0, eth1, etc...)
eth0 Link encap:Ethernet HWaddr 18:A9:05:68:6F:B0
inet6 addr: fe80::1aa9:5ff:fe68:6fb0/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:9000 Metric:1
To find the driver module for eth0 interface
ls -l /sys/class/net/eth0/device/driver/module
lrwxrwxrwx 1 root root 0 Aug 15 18:39 module ->
To list the kernel modules for your system run
lsmod | grep bnx
bnx2i 48158 0
cnic 55511 1 bnx2i
bnx2 81890 0
To remove the module from memory will require root or sudo access
rmmod -f -w bnx2
This is not a safe o
|SVG - examples | cable with physics (gravity)|
Ok here is my novice answer. This might seem funny but what if you
polygonize the wires to a very high degree and attach to each vertex a
behaviour that simulates gravity? Like acceleration maths towards the
bottom of the page until they reach a certain point where they look like
they are hanging down?
If this fails, i am aware that there is a pretty extensive physics engine
for JS which is called Ammo.js. Not sure how it can be used on SVG though,
since i only saw it working with 3D Three.js objects
|PC communication using name pipes method through LAN cable|
You're using named pipes over the network which means named pipes over
samba or however Windows do domain networking. It only works when the
computers are in the same domain or workgroup.
Why not use sockets instead? It's the standard way to do networking and
works wherever you have IP addresses.
|Track person's fall using skeleton data get from Kinect Xbox|
This is my algorithm to detect the fall.
float A = skeletonframe.FloorClipPlane.Item1;
float B = skeletonframe.FloorClipPlane.Item2;
float C = skeletonframe.FloorClipPlane.Item3;
float D = skeletonframe.FloorClipPlane.Item4;
float x = rightHand.Position.X;
float y = rightHand.Position.Y;
float z = rightHand.Position.Z;
float powA = A * A;
float powB = B * B;
float powC = C * C;
float numerater = x + y + z + D;
float denominater = powA + powB + powC;
float distance =
|how to support touchscreen connected with a serial cable|
This is a tough task.
First, you must well know the details of how a touch event is processed. To
understand a standard touch event format typically in /dev/input/xxx.
Second, you need to figure out how your current serial touch panel works,
what is the out put format of this device.
If your tty device output the same format of a standard touch event, you
can simply configure the HAL to open the specific device and all will be
Else, if it is not a standard touch event format, two options for you:
1. Adapt to this format in event hub layer
2. Transform this format in driver layer
Both are not very easy.
|Speaker output to mic input without cable on Android?|
Getting Jack on Linux to connect the mic to the speakers:
Start Jack with QJackCtl. This is not as easy as it sounds:
Click the "Setup..." button.
Choose "alsa" from the "Driver:" dropdown.
Choose your soundcard/soundcards that you want to work with from the "Input
Device" and "Output Device" dropdowns. Note that if you have a relatively
capable soundcard, there may be a number of possible devices for it (my
Audigy 2 ZS has four). Choosing the correct one is beyond the scope of this
Check the latency in the bottom-right corner. Realize that Jack itself will
take some time to process the sound. This gives you information about that
(and I'm sorry, but I don't know precisely what it means). Running Jack is
often a tradeoff between getting a super low latency and
|Windows CE 6.0 send data via USB-Serial Cable|
I have found the problem. It seem that i am using the wrong cable.
My WinCE Tablet is installed with FTDI driver while my cable is based on
Prolific USB chipset.
I have buy a FTDI USB chipset cable and i am able to receive data from it.
|What is the maximum length of the cable can be for infiniband(RDMA)?|
The article that you linked to is from 2007. Six years is infinity in this
So the answer depends on many parameters.
Which HCA vendor?
Which cable vendor?
Copper or optical?
Passive or active?
What speed are you willing to achieve in your IB setup?
For instance, you can get a 300m active cable that supports speeds up to
QDR (40 Gb/s).
Or you can get a 0.5m passive copper cable that supports up speeds up to
In general, the longer the cable you need and the faster the speed you
want, you'll have to jump to "fancier" technology.
You can get a passive copper cable that supports FDR10 with length up to
Connect same pair of FDR10-capable HCAs with 7m cable of the same family -
and HCAs will auto-negotiate max speed at QDR.
More on cables: here
|testing ipad app on device using firewire cable rather than USB|
Have you seen this? I don't think it will work.
Specifically these lines:
3rd post down by: Michael Fryd
Current iDevices no longer have the circuitry to charge or communicate
off the FW pins.
When you plug your iDevice into a FW style charger you will not hurt your
iDevice. The higher FW voltage is on connector pins that are not
connected inside your iPad.
|Redpark Serial Cable not receiving data on iPad 4|
I solved it! I did not declare the cable in the .plist file. After adding
Supported external accessory protocols as instructed by this page's step
11, I was able to receive all the events as expected.
The reason I was so stuck was because both the link above AND in the book
'iOS Sensor Apps with Arduino', declaring the property was sort-of
qualified as an optional step, which I chose to omit. I think it must have
been timing or threading issues caused by the need to display an extra
dialog box asking the user to visit the App Store that screws up the
correct delegation of these events.
On the web page:
This step is optional, but it will avoid the problem of you seeing an error
message ("This accessory requires an application...") each time you plug in
On the book:
|Communicate Android Device to Localhost (My Windows 8 PC) over / via USB Cable|
Well, I developed one application which connect my jsp file.here the sample
URL url = new URL("http:/xx.xxx.xxx.x:80/sample.jsp");
HttpURLConnection urlConnection = (HttpURLConnection)
InputStream in = new
BufferedReader r = new BufferedReader(new
String x = "";
String total = "";
ArrayList<String> content = new ArrayList();
while((x = r.readLine()) != null)
|Drawing power from USB device to android tablet through OTG cable|
Your device will not be able to draw power while connected as the Host.
You should look into the Android Open Accessory(AOA) Protocol, though you
need the proper hardware to connect to.
AOA allows the tablet to be connected as a USB accessory which will allow
it to draw power and charge, but it also lets the Android device behave as
if it were a host sending the commands to the connected hardware.
|How can I send a signal to LEDs from my Android 4.2.2 device? (Eclipse & USB cable)|
Are you on about controlling your LED by perhaps holding Data+ USB pin high
or something like this? http://android.serverbox.ch/?p=549
|Opening application automatically by detecting Fitness Equipment cable|
I think the best place to get answer is
https://developer.apple.com/programs/mfi/. You can register your device in
MFI program and using certain 'events' from your device hardware you can
launch the application.
|Using file_put_contents on android with php server writes a file, but a Windows user using a USB cable to the device cant see it|
Maybe you can create a file with windows, check the owner of the windows
file and then create a file with "file_put_contents" and check their owner.
Then you can change the owner of the file to the windows user, if the web
user is the root.
Or try to use 0777 as chmod ;) Give it a try ...
|Android 4.3 as a Bluetooth LE Peripheral|
Unfortunately there is no way for Android devices to act as a peripheral.
He can creates GATT servers, services and charachteristics but there is no
way to make the advertising.
The phone supports the central role;
I'm waiting for this feature too, but it seems we have to wait for next
|Peripheral and central at the same time on iOS|
As per my understanding one device can work with one mode at a time . That
is if the device is working in the peripheral mode then it you cant work it
as a central mode .If you see some standard examples like BTLE transfer or
lilke Light Blue those are working in one mode at a time .
|Can iOS do central and peripheral work on same app at same time?|
Yes they can but if your phone is now in peripheral mode and is connected,
you have to make sure that it disconnects before switching to central mode
and trying to connect with other devices and vice versa.
|Bluetooth peripheral has null UUID|
Apple have chopped and changed a bit with this, it depends on the version
of iOS. I believe it relates to a privacy leak.
Some versions of iOS don't provide a UUID until after you connect to it, at
which point you discover the same peripheral for a second time. The
CBPeripheral object you are passed remains the same, so you can use that to
determine if you are having your information updated about an existing
peripheral or if it's a new peripheral. The documentation isn't great for
CoreBluetooth, but there is additional information to be gained by reading
the framework headers, and if I recall correctly, the iOS 7 documentation
on CoreBluetooth is improved.
|Peripheral name doesn't comply to NameKey|
Unfortunately, there is no other way to set the peripheral name. iPhone
will always have the name: iPhone.
The advertisement is probably correctly seen on the central side. You may
check by NSLogging the advertisementData. However, if you rely on the
peripheral.name property, then that will either be empty (if you connect
first) or contain the "iPhone" string.
|how does u-boot maps peripheral memory?|
Welcome to Stackoverflow.
The registers are mapped to RAM memory address space at hardware level
using different type of interconnects in the SoC. e.g Lets take the example
of OMAP 35x series and see how UART registers are mapped to the RAM memory
address space of the SoC and how we may access them in U-Boot.
In the Technical Reference Manual for OMAP 35x, Table 2-3. L4-Core Memory
Space Mapping, we see that base address for UART1 is 0x4806A000 and the
size (of RAM that it occupies) is 4KB.
It means that registers for UART1 are mapped to RAM the memory space in a
4KB region starting at this address.
To access a register of UART1, we need to know its offset from the base
address to get its actual address. These offsets can be found in Table
17-39 UART IrDA CIR Register Summary.
|scanForPeripheralsWithServices:return result twice on the same peripheral|
This is happening because the peripheral's name is updated. In this case
you get the callback once more.
This thread contains a detailed explanation:
Credits go to Etan Kissling:
The device name is cached by iOS according to a priority list:
Name read from Device name characteristic after a connect
Name from advertising packet
Note that the name from the advertising packet should be a prefix of
the final name in the Device name characteristic.
Maybe the physical device already had the name cached, and does not
send the second update, as it already retrieved the name.
Your app should be able to deal with duplicates even when you don't
To deal with duplicates,
|Turning off peripheral causing unexpected behavior|
Are we supposed to connect to the peripheral during the 20s delay?
No, It seems from you result itself that OS is doing some actions within
the phone to control DEVICE_CONNECTED or DEVICE_DISCONNECTED events, This
may be due to several reasons like device architecture, security reasons or
callback itself is delayed to save energy
Is there any way to get notified when a peripheral is turned off?
No I dont think so, The event received for any action is broadcasted so its
waiting for a signal from the device it self but its not getting one, the
only thing that you can do here is to send it via some other broadcast(or
HTTP request) from the other end of the device to achieve it
|CoreBluetooth: Can you connect to a peripheral device that is not advertising|
No, it cannot. To create a connection to any peripheral device, that device
would have to advertise using connectable advertising. The device that
wants to connect, will then have to reply to one of the advertisements with
a connection request.
|Galaxy S4 - Bluetooth Low Energy Peripheral Mode?|
I am having the exact same issue. I can discover BLE devices and get their
rssi values, but when I try to discover services or connect, I never
receive a callback. I am using a Verizon Galaxy S4 running 4.2.2. I am
using the Samsung BLE SDK 2.0. Apparently some heart rate monitors are
working, but I get nothing using my ez430-rf256x TI development kit. I've
tried the Keyfob demo and Heart Rate Profile demo in the Bluetopia v1.3
|Corebluetooth: pass connected peripheral from view to another|
You need to retain the peripheral. As soon as the peripheral object you are
passed is released, iOS drops the connection. Save the CBPeripheral object
in a variable, and be sure to pass that back to your main view when the
scan view closes.
|IOS Core bluetooth peripheral connection request|
You have one method :
- (void)centralManager:(CBCentralManager *)central
advertisementData:(NSDictionary *)advertisementData RSSI:(NSNumber *)RSSI
if you add the scanning option like :
NSDictionary * options = [NSDictionary dictionaryWithObjectsAndKeys:@YES,
[manager scanForPeripheralsWithServices:nil options:options];
then the above method will be called continuously to update state of the
peripheral . Then you could watch for which peripheral the method is not
called for some time then remove that peripheral from the list
Or second option is to scan it again just before the connecting to the