Questions tagged [32feet]

32feet.NET is a shared-source project to make personal area networking technologies such as Bluetooth, Infrared (IrDA) and more, easily accessible from .NET code.

32feet.NET is a shared-source project to make personal area networking technologies such as Bluetooth, Infrared (IrDA) and more, easily accessible from .NET code.

See http://32feet.codeplex.com/

149 questions
3
votes
1 answer

Capture files send over bluetooth in C#

I'm creating a WPF application for sending and receiving files over bluetooth. I'm using 32feet library for the same. I can send files using ObexObjectPush bluetooth service. But when files are received using the technique, specified here, are not…
Mohit Bora
  • 113
  • 1
  • 10
3
votes
1 answer

Communicating with a Bluetooth OBDII dongle (I think it's an ELM327)

I have a Bluetooth OBDII dongle for my car (the brand is Veepeak), and I'm trying to write a Windows app that can communicate with it. So far it seems that I'm able to connect to the device from my laptop, send commands, and receive some sort of…
3
votes
1 answer

Why is sending data with BinaryWriter so much faster using Write(Byte[]) instead of using foreach and Write(Byte)?

I'm using C# and 32feet (version 3.5) to send blocks of 250 bytes over bluetooth (SPP) to an embedded device I'm currently writing firmware for. I'm setting up my connection with the following code: var client = new BluetoothClient(); client.Encrypt…
Markus
  • 767
  • 2
  • 7
  • 19
3
votes
1 answer

"A socket operation failed because the destination host was down" when connecting pc to mobie device

My project is to connecting pc with mobile device using 32feet.net library. Until Now, my solution is doing steps like: Scanning for devices in area. pairing with selected device . request pairing with mobile device and when it's okay this error…
MoRashad
  • 39
  • 1
  • 7
3
votes
0 answers

Client Bluetooth connection with 32feet.NET fails all the time

I'm trying to get a Bluetooth socket connection up and running but for some reason my client will not connect. More precisely I get an exception when I try to connect to the stream: A connection attempt failed because the connected party did not…
Vegetico
  • 93
  • 8
3
votes
2 answers

C#: Find out if the Bluetooth adapter is turned On/Off + the type of the STACK used (Programmatically)

How to programmatically tell if the Bluetooth adapter on the device which is the code is running at, is turned On or Off? Discovery methods such as "cli.DiscoverDevices()" using 32feet simply return no device found in both situations which The…
Mehrad
  • 4,093
  • 4
  • 43
  • 61
3
votes
1 answer

How to avoid Restart Bluetooth Printer after print?

I have developed windows mobile 6.1 application which search nearby Bluetooth devices and send files.Also I did print functionality to print document on Bluetooth printer. First time print functionality is working perfectly fine but when I print…
Harsh
  • 131
  • 1
  • 2
  • 9
3
votes
1 answer

c# Bluetooth Mac Address of our Adapter

I am using IntheHand 32feet library http://32feet.codeplex.com/ I am searching for a code to get local MAC Address of Bluetooth Adapter . I have tried may quick tweaks but not worked like using InTheHand.Net.Bluetooth; using…
Vinit Siriah
  • 327
  • 3
  • 12
3
votes
2 answers

Error 10049 while connecting bluetooth device with 32feet

I'm trying to establish a connection with a custom bluetooth device without using COM ports. However, I'm getting an error: [10049] "The requested address is not valid in its context". What am I doing wrong? static Guid serviceClass= new…
ammme
  • 33
  • 1
  • 4
2
votes
1 answer

Bluetooth Low Energy on .NET c#?

I am developing a c# console application that is going to have to communicate with multiple mobile phones (both iOS and android). My team's first thought was to use bluetooth since a wi-fi/internet connection may not always be available. I wrote…
BigBoyTaco
  • 23
  • 2
2
votes
1 answer

Use bluetooth HFP profile to get battery level from headset

I am trying to get the battery level of my headset device with bluetooth 4.1 with AT commands from Windows using the Handsfree Profile (HFP). I have extracted the bluetooth log from my Android phone (which is able to get the battery level) and the…
soyxan
  • 51
  • 6
2
votes
1 answer

Read contacts using obex in c#

I'm trying to read contacts using 32feet library for c#. I'm connecting my PC to mobile device via bluetooth, and when I try to execute this code always give me bad request error LocalInfo.SetServiceState(BluetoothService.PhonebookAccessPce,…
2
votes
1 answer

32Feet - Discover only devices in range

Is there any way of discovering all devices that are currently in range using 32Feet? I tried BluetoothDeviceInfo[] allDevicesInRange = client.DiscoverDevices(255, false, false, true); This returns all unknown devices in range. Once I've paired…
komodosp
  • 3,316
  • 2
  • 30
  • 59
2
votes
1 answer

Finding paired Bluetooth device if its in range using 32Feet

I'm trying to make a simple application that will show the nearby Bluetooth devices (this one works fine) Also I'm trying to find if the specific Bluetooth device (I have its MAC & Its already paired in windows) is in range. It's an android phone…
Faisal
  • 33
  • 5
2
votes
1 answer

Error 1359 Setting Bluetooth Radio Mode Windows Embedded Handheld 6.5

Using In The Hand 32feet library for .NET Compact Framework 3.5, when runing their sample project Chat2Device on a Datalogic Scorpio X3 running Windows Embedded Handheld 6.5 Professional CE OS 5.2.29366 Build 29366.5.3.12.48 the command to switch…
Malcolm McCaffery
  • 2,468
  • 1
  • 22
  • 43
1
2
3
9 10