ccsniffpiper icon indicating copy to clipboard operation
ccsniffpiper copied to clipboard

TI CC2540 support / BLE support

Open shirriff opened this issue 10 years ago • 9 comments

Your csniffpiper was very helpful to me. I've figured out a few changes to make ccsniffpiper work with the CC2540 and generate BLE traces that Wireshark can handle. What's the best way to make this available to other people? Should I fork your code? Attach a patch file?

shirriff avatar Sep 05 '14 16:09 shirriff

To be honest, I'm not really sure. If you send me a patch/pull request I'll happily include it (I don't really use this tool much anymore).

andrewdodd avatar Sep 15 '14 01:09 andrewdodd

Very interesting. I've done some investigation on a "webee" CC2540 dongle, including USB sniffing. It seems indeed that the protocol to talk to the CC2540 dongle is very similar (if not identical). My reverse engineering page is at: https://revspace.nl/CC2540

bertrik avatar Dec 26 '16 14:12 bertrik

@shirriff Did you ever make a patch or PR for the CC2540 changes?

nickls avatar May 03 '17 18:05 nickls

@nickls Here's a patch file that has my CC2540 changes, in case it's useful. I haven't looked at this code since 2014, so I can't provide much help if it doesn't work.

ccsniffpiper.txt

shirriff avatar May 03 '17 22:05 shirriff

@shirriff, thank you, your patch still works fine with CS2540, would be nice to merge it.

sh123 avatar Jan 14 '19 08:01 sh123

@sh123 Can you provide updated code for using CC2540 as BLE sniffer and directly view packets via Wireshark?

subhanshus-optimus avatar Nov 21 '19 21:11 subhanshus-optimus

@subhanshus-optimus, you can just apply patch provided by shiriff above.

sh123 avatar Nov 22 '19 14:11 sh123

@sh123 I tried after updating ccsniffpiper.py (please refer to attached updated file) and executed following steps:

  • Connected CC2540 usb dongle to ubuntu machine

  • Exectuted pipe2wireshark.sh file.

Results: No BLE packets were displayed in wireshark. ccsniffpiper_patchAdded.txt

subhanshus-optimus avatar Nov 22 '19 19:11 subhanshus-optimus

@subhanshus-optimus, try to run it separately (without using .sh script) to see if it works. In my case, I also had to change CHANNEL in pipe2wireshark.sh and update range in arguments as

-                          choices = range(11, 27),
+                          choices = range(36, 39),

sh123 avatar Dec 26 '19 12:12 sh123