Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
_

__John_

@__John_
About
Posts
75
Topics
29
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • making use of BluetoothLEAdvertisementReceivedEventArgs
    _ __John_

    I don't think I am going to get this working. It seems GATT comms is only possible if the device is already paired. And there is no api for paring programmatically. :( Perhaps I can do it on android.

    “If I had asked people what they wanted, they would have said faster horses.” ― Henry Ford

    Hardware & Devices question algorithms json

  • making use of BluetoothLEAdvertisementReceivedEventArgs
    _ __John_

    I am searching for all btle devices with BluetoothLEAdvertisementWatcher. It works fine but I need a device handle so I can use GATT api's. How do I get a device handle from the information provided in BluetoothLEAdvertisementReceivedEventArgs?

    “If I had asked people what they wanted, they would have said faster horses.” ― Henry Ford

    Hardware & Devices question algorithms json

  • await can't find GetAwaitor method
    _ __John_

    Hi Nathan, thanks for the response, I will try your suggestions. - John

    “If I had asked people what they wanted, they would have said faster horses.” ― Henry Ford

    .NET (Core and Framework) csharp visual-studio help question

  • await can't find GetAwaitor method
    _ __John_

    The error...

    Error 1 'await' requires that the type 'Windows.Foundation.IAsyncOperation' have a suitable GetAwaiter method. Are you missing a using directive for 'System'? C:\Users\jo\Documents\Visual Studio 2013\Projects\Btle01\Btle01\Form1.cs 29 46 Btle01

    My code...

    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Text;
    using System.Windows.Forms;
    using System.Threading;
    using System.Threading.Tasks;
    using Windows.Devices.Bluetooth;
    using Windows.Devices.Enumeration;
    using Windows.Foundation;
    using Windows.System;

    namespace Btle01
    {
    public partial class Form1 : Form
    {
    public Form1()
    {
    InitializeComponent();
    }

        private void OnFormLoad(object sender, EventArgs e)
        {
        }
    
        private async Task GetDevs()
        {
            foreach (DeviceInformation di in await Windows.Devices.Enumeration.DeviceInformation.FindAllAsync(BluetoothLEDevice.GetDeviceSelector()))
            {
                BluetoothLEDevice bleDevice = await BluetoothLEDevice.FromIdAsync(di.Id);
                listView1.Items.Add(bleDevice.Name);
            }
        }
    
    }
    

    }

    List of project references...

    False
    ..\..\..\..\..\..\..\Windows\Microsoft.NET\Framework64\v4.0.30319\System.Runtime.WindowsRuntime.dll

    ..\\..\\..\\..\\..\\..\\..\\Windows\\System32\\WinMetadata\\Windows.Devices.winmd
    
    .NET (Core and Framework) csharp visual-studio help question

  • TBLRD instruction PIC18
    _ __John_

    Thanks CP.

    “If I had asked people what they wanted, they would have said faster horses.” ― Henry Ford

    C / C++ / MFC question adobe performance tutorial

  • TBLRD instruction PIC18
    _ __John_

    Hi, I am trying to read program flash on a pic18f67k22. From the datasheet... "The TBLRD instruction is used to retrieve data from program memory and places it into data RAM" example in ASM... TBLRD*+ How do I execute "TBLRD*+" in 'C'? - Thanks

    “If I had asked people what they wanted, they would have said faster horses.” ― Henry Ford

    C / C++ / MFC question adobe performance tutorial

  • USBSpy driver
    _ __John_

    Brilliant!! Many thanks.

    “If I had asked people what they wanted, they would have said faster horses.” ― Henry Ford

    Hardware & Devices help tutorial question

  • USBSpy driver
    _ __John_

    When I start USBSpy I get a message: "Warning the driver is not loaded". OS is Windows 7 64bit. I cant find any info to help me out. Does anyone know how to fix? Thanks.

    “If I had asked people what they wanted, they would have said faster horses.” ― Henry Ford

    Hardware & Devices help tutorial question

  • post not showing as unanswered question
    _ __John_

    That explains it. Thanks.

    “If I had asked people what they wanted, they would have said faster horses.” ― Henry Ford

    Site Bugs / Suggestions com question

  • post not showing as unanswered question
    _ __John_

    Hi, I posted a question here: http://www.codeproject.com/Messages/4406919/When-does-windows-read-its-inf-files.aspx[^] As far as I can tell it never apeared in the unanswered questions list.

    “If I had asked people what they wanted, they would have said faster horses.” ― Henry Ford

    Site Bugs / Suggestions com question

  • When does windows read its inf files?
    _ __John_

    When does windows read its inf (usb driver) files? Does it do it during the boot process? Or as part of device enumeration? Or something else? Thanks.

    “If I had asked people what they wanted, they would have said faster horses.” ― Henry Ford

    Hardware & Devices question

  • Canon DSLR file format
    _ __John_

    Hi, A bit of an odd one. Does anyone know what file system\format Canon EOS cameras use for there CF cards? Thanks.

    “If I had asked people what they wanted, they would have said faster horses.” ― Henry Ford

    Hardware & Devices question

  • contacting admin
    _ __John_

    Thanks for the replys, I will try to remember about Friday (dusting off weegie board).

    “If I had asked people what they wanted, they would have said faster horses.” ― Henry Ford

    The Lounge question

  • When to call WinUsb_FlushPipe
    _ __John_

    Thanks Jochen, The USB device in question is implemented by me, so I know that ZLP's are not required and under normal operation all packets will be read imediatly (pretty quick anyway). So I should not need to call WinUsb_FlushPipe. Thanks again.

    “If I had asked people what they wanted, they would have said faster horses.” ― Henry Ford

    Hardware & Devices question

  • contacting admin
    _ __John_

    How does one contact admin on CP? Thanks.

    “If I had asked people what they wanted, they would have said faster horses.” ― Henry Ford

    The Lounge question

  • When to call WinUsb_FlushPipe
    _ __John_

    Do I need to call WinUsb_FlushPipe after every write, if I need to be sure all the data is sent immediately? Or is it only needed under certain conditions? Thanks.

    “If I had asked people what they wanted, they would have said faster horses.” ― Henry Ford

    Hardware & Devices question

  • float from bytes
    _ __John_

    Thanks for the replies. I will give it a try later today.

    “If I had asked people what they wanted, they would have said faster horses.” ― Henry Ford

    C# question csharp data-structures

  • float from bytes
    _ __John_

    Hi, I need to convert 4 bytes in to a float or double in C#. The 4 bytes come from the comm port and are read in to a byte array, how can I convert back to a float?

    “If I had asked people what they wanted, they would have said faster horses.” ― Henry Ford

    C# question csharp data-structures

  • Sending hid reports with WriteFile
    _ __John_

    I have a usb hid device under development. When I send a report with WriteFile() (Win32) only every other report is received. WriteFile returns report len + 1 in the lpNumberOfBytesWritten parameter, which is correct (+1 for the report id, which I set to zero). I am 99% sure its not a device issue. Any ideas why only every other report gets through?

    “If I had asked people what they wanted, they would have said faster horses.” ― Henry Ford

    Hardware & Devices help question

  • where to get wddebug_gui.exe
    _ __John_

    Hi, I am looking for windows driver debugger wddebug_gui.exe Does anyone know how/where to get it from? Thanks.

    “If I had asked people what they wanted, they would have said faster horses.” ― Henry Ford

    Hardware & Devices debugging question
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups