- Modules Likely Functional but with Potential Issues: The provided register readout shows a mix of values that partially align with CC1101 defaults, indicating SPI communication is occurring and the modules are responding. This rules out complete non-functionality or major wiring errors, but readings like PARTNUM=0xFF or VERSION=0xFF/0x0F suggest possible software misreads, counterfeit chips, or SPI protocol mismatches common in low-cost modules.
- Common Problems with Cheap CC1101 Modules: Research suggests many inexpensive Chinese CC1101 units may be counterfeits, remarked chips (e.g., similar to CC110L), or have manufacturing variances that affect SPI reliability, reception, or register accuracy. However, they often work for basic tasks if configured carefully.
- SPI Reading Error Possible: The 0x0F value may represent the chip's status byte (indicating states like IDLE with FIFO details) rather than the actual register value, pointing to a code mistake where the dummy byte isn'
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!doctype html> | |
| <html lang="en"> | |
| <head prefix="og: http://ogp.me/ns#"> | |
| <meta charset="utf-8"> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
| <title>Open Graph protocol examples</title> | |
| <meta name="description" content="Example HTML doc"> | |
| <meta property="og:description" content="<span asdasdasd"> | |
| <meta property="og:type" content="website"> | |
| <meta property="og:locale" content="en_US"> |
If your running a x64 bit Ubuntu or other Linux and find USB transfers hang at the end apply this fix:
echo $((16*1024*1024)) | sudo tee /proc/sys/vm/dirty_background_bytes
echo $((48*1024*1024)) | sudo tee /proc/sys/vm/dirty_bytes
To revert the changes enter this in console
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/python3 | |
| import os | |
| import sys | |
| from concurrent.futures import ThreadPoolExecutor | |
| import gi | |
| from gi.repository import Gio, GnomeDesktop | |
| gi.require_version('GnomeDesktop', '4.0') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM ubuntu:22.04 | |
| RUN apt update | |
| RUN apt install python3 python3-pip -y | |
| RUN pip3 install realesrgan | |
| RUN apt install -y libgl1 libglib2.0-0 | |
| RUN apt install wget -y | |
| RUN wget https://github.com/xinntao/Real-ESRGAN/raw/v0.3.0/inference_realesrgan.py | |
| RUN chmod +x inference_realesrgan.py | |
| RUN python3 inference_realesrgan.py | |
| ENTRYPOINT python3 inference_realesrgan.py -i /img/input -o /img/output --fp32 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import strutils | |
| import sequtils | |
| import bitops | |
| import os | |
| import des_utils | |
| type CDTuple = array[17,tuple[c:BitArray,d:BitArray]] | |
| type LRTuple = array[17,tuple[l: bin32,r: bin32]] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| #This script checks for missing files, by scanning through lists of installed files in APT package list. | |
| #Sometimes file is listed in APT .list file, but it's not installed by default, so you need to manually | |
| #check if package needs reinstalling or if it's just a normal condition. | |
| #Tested only on Ubuntu 15.04 | |
| #This is only very simple check. To test integrity of installed packages, use debsums. | |
| IFS=$'\n' | |
| for file in /var/lib/dpkg/info/*.list |