I have a zigbee usb dongle that plugs into the usb port on my Windows laptop. I need to be able to capture the incoming packets.
I am trying to write a c program that will capture the incoming packets by monitoring the bus associated with the corresponding usb port.
Are there some c libraries that facilitate this monitoring? If not how can I access the contents of the bus?
This is what a hardware driver does for you: it monitors low-level hardware directly, and then processes and exposes that data to user-level programs in a more convenient interface.
I think Telegesis and Adaptive offer Windows drivers for download; whoever manufactured your Zigbee should provide drivers of their own, if those aren't compatible.
Or you could write your own driver, but that is a very difficult and tricky piece of work not for the faint of heart.