Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TI CC2540 support / BLE support #1

Open
shirriff opened this issue Sep 5, 2014 · 9 comments
Open

TI CC2540 support / BLE support #1

shirriff opened this issue Sep 5, 2014 · 9 comments

Comments

@shirriff
Copy link

shirriff commented Sep 5, 2014

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?

@andrewdodd
Copy link
Owner

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).

@bertrik
Copy link

bertrik commented Dec 26, 2016

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

@nickls
Copy link

nickls commented May 3, 2017

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

@shirriff
Copy link
Author

shirriff commented May 3, 2017

@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

@sh123
Copy link

sh123 commented Jan 14, 2019

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

@subhanshus-optimus
Copy link

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

@sh123
Copy link

sh123 commented Nov 22, 2019

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

@subhanshus-optimus
Copy link

subhanshus-optimus commented Nov 22, 2019

@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

@sh123
Copy link

sh123 commented Dec 26, 2019

@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),

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants