-
Notifications
You must be signed in to change notification settings - Fork 127
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
is the slaesh cc2652RB stick supported? #35
Comments
I got a version of this stick which has a Silicon Labs CP2102 (apparently not a CP2102N) USB-to-serial chip populated, this has a maximum baud rate of 921,600, not 2,000,000. |
From my experience, 921600 baud should work fine for nearly all situations. There might be some exceptional situations that could saturate it when using the 2M PHY with raw L2CAP sockets trying to maximize data throughput in both directions, but I've never encountered that myself. |
Ok, I can confirm now that this CC2653RB stick works to some extent. I had to change the baud rate in
then built the firmware, then flashed it using the recommended tool:
Of course I also had to change the baud rate in
BUT: I'm experiencing a lot of lost packets. For example:
(I tried to use a USB extension cord for the stick, and different antenna orientations, but that didn't help either.) Switching back to the LP-CC2652RB TI Launch Pad board, and changing nothing else (except for the baud rate, back to 2000000), all the packets were properly sniffed. Maybe the RF part is better on the TI board. (For reference, I ordered the stick with external antenna "Type 1".) Also, I wasn't able to get a response from the seller, neither through the proposed Telegram contact, nor by e-mail, and it looks like I'm not the only one who experienced this, and so I will move on and try another stick. |
Yeah, that sounds like an RF signal quality issue to me. You could try the 921600 baud firmware on the Launchpad, I’m pretty sure that will work fine. I’ve actually been using Sniffle firmware built to use 200k baud (instead of 2M baud) to work around a latency issue in the XDS110 USB-UART bridge and that has been working fine for me without any loss in ordinary (low throughput) connections. If the baud rate is too slow, the transmit buffer in the firmware could overflow, and that could cause packet loss, but I don’t think that would happen at 921600 baud. |
Yes, I can confirm that I do not see lost packets in that scenario at 921600 baud with the Launchpad. |
Hi!
As the maker states:
Without the above changes it did not work at all for me (I did not get anything on serial console). Did you cut the solder-pads in your stick? I did not experience any "packet missing" issues at all in my case. By the way - @sultanqasim would you consider adding fw build options for this stick (and maybe others I am testing), for example as a separate PLATFORM? And also adding baud rate as a parameter to command line python? |
I didn't do any HW modifications, so apparently DTR and RTS have the right levels on my stick. I did have to use In my use case, I listen to a BLE connection between an iPhone SE 2020 and a Tuya BLE device, which uses PHY: 1M. |
The I don't have Tuya BLE devices, but I have lots of devkits with various chipsets. Which chipset is in your Tuya BLE device? I have just tested it against my sample ESP32-C3 devkit LE 1M and I was able to sniff all the packets. |
@jslawek this is good news! I would be happy to wait for the necessary updates to the scripts and a firmware to make it into the repo and then buy a stick for this. If there is any better stick, I would also be interested where to get it. I have a working sniffLE on the launchpad, but thats just not handy enough for my EDC bag ;) |
My preferred one is ZigStar Stick V4, but there seems to be some kind of shortage currently. Based on CC2652P (you just flash the CC1352P fw image without any modification) + CH341a (handles 2000000, no need to downgrade the baud rate). |
@jslawek any other hints how the setup works smoothly for the ZigStar Stick V4, e.g. which flashing tool do you use? |
I built the firmware for the ZigStar Stick v4 like this:
and used the ZigStar GW Multi Tool to flash that hex file.
Then this worked:
but with some lost CRLF bytes when run inside a Linux VM. |
Hi @mh-, I don't have this dongle with me at the moment, but according to my notes:
Also, according to my notes I did not need to alter this rts/dtr for this dongle. |
Please note that many custom boards may require a different XOSC_CAPARRAY_DELTA value. An incorrect value can cause packet loss. |
I bought a Sonoff CC2652P stick off Amazon, with the CP2102N USB-UART adapter. When I have time, I’ll build for it and either implement a baud rate option or automatic baud rate selection when the CP2012N is selected. |
Based off information at https://github.com/Koenkk/Z-Stack-firmware/tree/master/coordinator/Z-Stack_3.x.0/bin, the CC2652P Launchpad compatible version of the firmware should also work on the Slaesh CC2652RB dongle, provided that the baud rate is supported by the CP2102 USB/UART adapter. With de7e919 I introduced a firmware variant with a 1M baud rate that should work with the CP2102P in the Slaesh dongle. I also added auto-detection of CP2102 USB/UART adapters in the Python code, so that it can automatically pick the slower baud rate. I only have the Sonoff dongle (with CC2652P) and not the Slaesh dongle (with CC2652RB), so I'll let you folks test on the Slaesh dongle before I close this. |
Prebuilt firmware binaries for CC2652P/CC1352P and CC2652RB with a 1M baud rate are available with the new v1.9 release so you can test. |
As the Electrolama ZZH Stick is out of stock the CC2652RB stick by slaesh is the better alternative:
https://slae.sh/projects/cc2652/
.I guess it is basically the same as the ZZH but I don't know for sure.
It would be great if both, the slaesh stick and the zzh stick work, as they have a much better format than the development boards.
The text was updated successfully, but these errors were encountered: