English 中文(简体)
What s the best way to spy on IOCTLs?
原标题:
  • 时间:2010-04-26 20:22:15
  •  标签:
  • modem
  • ioctl

I have a U9 Telit modem which, at first, appears as a disk drive on USB bus. Then, the native software after autorun and install, sends a couple of IOCTLs to tell the device to reappear as other things. I can see them in procmon.

I want to better spy on these, to know exactly what they send and how, in order to do the same in proper way.

问题回答

Try something like Systemtap. Attach a probe that dumps all ioctls and arguments from the kernel, grep through them.

You could use something like strace under linux. The windows equivalent is discussed here Systrace for Windows. This might show you the ioctl commands sent.

Some companies offer the linux kernels of their devices as direct download from their official webpage. There you might find more information on how it works. For some devices, it s easy to build and deploy your own kernel. This helps as you can add custom debug output.





相关问题
How can I read Caller ID information in a Cocoa app?

Specifically, I have the Apple USB modem that says it supports Caller ID and I want my app to be able to know when a call comes in and whose calling. In the future I may add dialer capabilities, etc.,...

Java SMS API for Modem [closed]

I need a Java API that i can use to receive and send SMS messages. I already know of SMSLIB, but am wondering if there is a better one out there.

How to read the gsm modem messages in objective c?

I need the the cell-id information to display in my iphone app, the app sends AT commands to the modem but...I do not know how to read the modem messages. Please help me.

iPhone audio and AFSK

Here is a question for all you iPhone experts: If you guys remember the sounds that modems used to make, or when one was trying to load a program from a cassette tape – I am trying to replicate this ...

Ericsson f3507g WWAN (3G Broadband) and AT commands

I have a lenovo x200t tablet with WWAN built into it. I m trying to connect to the internet using AT commands and a C# program which I am making so that the program can connect to the net and upload ...

List all System Modems

Is there a way in managed code to list the Modem/Telephony devices installed on the system? If .Net does not have a way, could you point me in a direction?

热门标签