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

CC1101 + SD card support for M5stick C Plus2 #249

Open
geo-tp opened this issue Sep 7, 2024 · 5 comments
Open

CC1101 + SD card support for M5stick C Plus2 #249

geo-tp opened this issue Sep 7, 2024 · 5 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@geo-tp
Copy link

geo-tp commented Sep 7, 2024

Describe the bug:
When using a CC1101 module with an SD card on the M5Stick C Plus2, only one of the devices works correctly. Either the SD card or the CC1101 module works, but never both at the same time.

Steps To Reproduce:

  • Connect both the SD card and the CC1101 module
  • Try RF Scan/Copy, it will not work
  • Remove the SD card
  • Try RF Scan/Copy, now it works,but you can't save the signal on your SD card, even if you replug it

Expected behavior:
Both the SD card and the CC1101 module should work together on the same SPI bus

Actual behavior:
When one device is in use, the other stops functioning.

@eadmaster
Copy link
Contributor

afaik this would require an additional free gpio pin for the Chip Select , which the M5stick lacks.

As alternative, the CC1101 can also operate without the GDO0 pin, but some features won't work this way.

@GoldenboyITA
Copy link

Can we add a phisical switch between SD card reader and C1101?!

@bmorcelli
Copy link
Collaborator

There are a few things to consider about the code, itself, that I'll post tomorrow to allow CC1101 and SdCard coexisting together..

But the problem is that once the SdCard is mounted, it is draining the dgo0 signals from CC1101 (for reading/scanning) preventing the stickC to read the signals, and it will only reset (for now) ir you take the SDCard physically out and reconnect it..

You could add a 3 pin button, with NC connected to the 3,3V and NO connected to GND and COM connected to SdCard Vcc pin, when btn is pressed, it connects the Vcc pin of the Sdcard reader to GND, resetting the circuit..

Tomorrow I will keep studying this issue to try to find out a way to "unmount" the SD card without mods, or proposing other connection scheme

@geo-tp
Copy link
Author

geo-tp commented Sep 8, 2024

Tomorrow I will keep studying this issue to try to find out a way to "unmount" the SD card without mods, or proposing other connection scheme

That would be great, otherwise CatHack's behavior allows for recording once (and resetting to record again), and also enables sending .sub files from SD card. This allows access to all features even if a reset is needed to be able to record/save again.

@bmorcelli
Copy link
Collaborator

Saving for later research..

Maybe it'll be needed to change cc1101 clk pin to avoid SDCard from backing to initial state

greiman/SdFat#351 (comment)

@bmorcelli bmorcelli added the bug Something isn't working label Sep 20, 2024
@IncursioHack IncursioHack added the help wanted Extra attention is needed label Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

5 participants