Skip to content

Commit

Permalink
img: add setup.jpg
Browse files Browse the repository at this point in the history
  • Loading branch information
prefixFelix committed Jan 18, 2024
1 parent 04ced1f commit 9cc708e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,9 +166,9 @@ The shutters are normally controlled by a 2411 Rademacher remote control. The re
python3 1-rx-install.py /dev/ttyUSB0
```

> :warning: The recording should ideally not take place in the vicinity of possible sources of interference, such as radio weather stations that also transmit on 433 MHz. The distance between the PC and the micro controller should also be maximized for the same reason (what the USB cable can offer). Also micro controller and receiver should not be next to each other. **Compare your setup with [this illustration](img/setup.png)**.
> :warning: The recording should ideally not take place in the vicinity of possible sources of interference, such as radio weather stations that also transmit on 433 MHz. The distance between the PC and the micro controller should also be maximized for the same reason (what the USB cable can offer). Also micro controller and receiver should not be next to each other. **Compare your setup with [this illustration](img/setup.jpg)**.
> :warning: The antenna of the receiver should be parallel to the left side of the remote control. Vertically, the antenna should be in the lower third to half of the remote control. The distance between the remote control and the antenna should be as small as possible (they can also touch each other). **Compare your placement with [this illustration](img/remote.png)**.
> :warning: The antenna of the receiver should be parallel to the left side of the remote control. Vertically, the antenna should be in the lower third of the remote control. The distance between the remote control and the antenna should be as small as possible (they can also touch each other). **Compare your placement with [this illustration](img/remote.png)**.
> :information_source: If the recording does not work even after multiple position changes, you can activate the *debug* settings in the config file and alter the *margin* value. For the changes to take effect, the install script must be rerun.
Expand Down Expand Up @@ -327,15 +327,15 @@ The shutters are normally controlled by a 2411 Rademacher remote control. The re

3. Run the sniffing install script and follow the given instructions.

> :warning: **A bug in mpremote can cause to a *UnicodeDecodeError* error!** The installation is still executed successfully. However, the subsequent outputs are not printed. Please switch to a different serial terminal software. Set the baud to 115200 and press the reset button on the micro controller.
> :warning: **A bug in mpremote can cause a *UnicodeDecodeError* error!** The installation is still executed successfully. However, the subsequent outputs are not printed. Please switch to a different serial terminal software. Set the baud to 115200 and press the reset button on the micro controller.

```shell
py 1-rx-install.py COM4
```

> :warning: The recording should ideally not take place in the vicinity of possible sources of interference, such as radio weather stations that also transmit on 433 MHz. The distance between the PC and the micro controller should also be maximized for the same reason (what the USB cable can offer). Also micro controller and receiver should not be next to each other. **Compare your setup with [this illustration](img/setup.png)**.
> :warning: The recording should ideally not take place in the vicinity of possible sources of interference, such as radio weather stations that also transmit on 433 MHz. The distance between the PC and the micro controller should also be maximized for the same reason (what the USB cable can offer). Also micro controller and receiver should not be next to each other. **Compare your setup with [this illustration](img/setup.jpg)**.

> :warning: The antenna of the receiver should be parallel to the left side of the remote control. Vertically, the antenna should be in the lower third to half of the remote control. The distance between the remote control and the antenna should be as small as possible (they can also touch each other). **Compare your placement with [this illustration](img/remote.png)**.
> :warning: The antenna of the receiver should be parallel to the left side of the remote control. Vertically, the antenna should be in the lower third of the remote control. The distance between the remote control and the antenna should be as small as possible (they can also touch each other). **Compare your placement with [this illustration](img/remote.png)**.

> :information_source: If the recording does not work even after multiple position changes, you can activate the *debug* settings in the config file and alter the *margin* value. For the changes to take effect, the install script must be rerun.

Expand Down Expand Up @@ -406,7 +406,7 @@ If you have a SDR on hand, such as an RTL-SDR, you can also sniff the ID by usin

4. Run the FernoPy install script.

> :warning: **A bug in mpremote can cause to a *UnicodeDecodeError* error!** The installation is still executed successfully. However, the subsequent outputs are not printed. Please switch to a different serial terminal software. Set the baud to 115200 and press the reset button on the micro controller.
> :warning: **A bug in mpremote can cause a *UnicodeDecodeError* error!** The installation is still executed successfully. However, the subsequent outputs are not printed. Please switch to a different serial terminal software. Set the baud to 115200 and press the reset button on the micro controller.

```sell
py 2-tx-install.py COM4
Expand Down
Binary file added img/setup.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions src/rx/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def tribit_to_block(bits, debug):
if conf['debug']:
print(f'\n+-------------- DEBUG Info --------------+\nData GPIO pin: {conf["rx_pin"]}\nEdges to be recorded: {conf["n_edges"]}\nSymbol length: {conf["symbol_length"]}µs\nSymbol detection margin: {conf["margin"]}µs\n+----------------------------------------+')

print(f'\n\n\n+-------------- Device ID Sniffer --------------+\n[!] Please read chapter 1.2 of the installation instructions before proceeding!\n[>] Selected data pin: GPIO {conf["rx_pin"]}\n\n[!] Position the remote. Press and hold the STOP button. Now hit ENTER to start the sniffing process.')
print(f'\n\n\n+-------------- Device ID Sniffer --------------+\n[!] Please read chapter 1.2 of the installation instructions before proceeding!\n[>] Selected data pin: GPIO {conf["rx_pin"]}\n\n[!] Position the remote. Press and hold the STOP button. Now hit ENTER to start the sniffing process.\n+----------------------------------------+')

ready = False
while not ready:
Expand Down Expand Up @@ -146,8 +146,8 @@ def tribit_to_block(bits, debug):
error, device_type, device_id = tribit_to_block(tribits, conf['debug'])
if error is '':
ready = True
print(f'[!] SUCCESS! Please proceed with the installation guide and add the type / id to the config.py file.\n[>] Device type: {device_type}\n[>] Device id: {device_id}\n+----------------------------------------+')
print(f'[!] SUCCESS! Please proceed with the installation guide and add the type / id to the config.py file.\n[>] Device type: {device_type}\n[>] Device id: {device_id}\n')
else:
print(f'[!] ERROR: {error} Please try again. Maybe reposition the remote/microcontroller.\n+----------------------------------------+')
print(f'[!] ERROR: {error} Please try again. Maybe reposition the remote/microcontroller.\n')
gc.collect()

0 comments on commit 9cc708e

Please sign in to comment.