nad-serial 0.0.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. nad_serial-0.0.1/.gitignore +1 -0
  2. nad_serial-0.0.1/.pre-commit-config.yaml +51 -0
  3. nad_serial-0.0.1/.prettierignore +1 -0
  4. nad_serial-0.0.1/.prettierrc.js +24 -0
  5. nad_serial-0.0.1/.yamllint +59 -0
  6. nad_serial-0.0.1/LICENSE.md +201 -0
  7. nad_serial-0.0.1/PKG-INFO +208 -0
  8. nad_serial-0.0.1/README.md +181 -0
  9. nad_serial-0.0.1/nad_serial/__init__.py +1085 -0
  10. nad_serial-0.0.1/nad_serial/_version.py +24 -0
  11. nad_serial-0.0.1/nad_serial/configs/README.md +133 -0
  12. nad_serial-0.0.1/nad_serial/configs/__init__.py +115 -0
  13. nad_serial-0.0.1/nad_serial/configs/amplifier.json +28 -0
  14. nad_serial-0.0.1/nad_serial/configs/c328.json +60 -0
  15. nad_serial-0.0.1/nad_serial/configs/c338.json +76 -0
  16. nad_serial-0.0.1/nad_serial/configs/c356.json +55 -0
  17. nad_serial-0.0.1/nad_serial/configs/c368.json +519 -0
  18. nad_serial-0.0.1/nad_serial/configs/c388.json +519 -0
  19. nad_serial-0.0.1/nad_serial/configs/c427.json +41 -0
  20. nad_serial-0.0.1/nad_serial/configs/dab.json +21 -0
  21. nad_serial-0.0.1/nad_serial/configs/device.json +37 -0
  22. nad_serial-0.0.1/nad_serial/configs/m15hd.json +2432 -0
  23. nad_serial-0.0.1/nad_serial/configs/m17.json +2388 -0
  24. nad_serial-0.0.1/nad_serial/configs/m51.json +38 -0
  25. nad_serial-0.0.1/nad_serial/configs/pg536m.json +41 -0
  26. nad_serial-0.0.1/nad_serial/configs/py.typed +0 -0
  27. nad_serial-0.0.1/nad_serial/configs/t175.json +2198 -0
  28. nad_serial-0.0.1/nad_serial/configs/t187.json +2631 -0
  29. nad_serial-0.0.1/nad_serial/configs/t755.json +1934 -0
  30. nad_serial-0.0.1/nad_serial/configs/t757.json +2348 -0
  31. nad_serial-0.0.1/nad_serial/configs/t758.json +2346 -0
  32. nad_serial-0.0.1/nad_serial/configs/t765.json +2207 -0
  33. nad_serial-0.0.1/nad_serial/configs/t775.json +2228 -0
  34. nad_serial-0.0.1/nad_serial/configs/t777.json +2659 -0
  35. nad_serial-0.0.1/nad_serial/configs/t778.json +2204 -0
  36. nad_serial-0.0.1/nad_serial/configs/t785.json +2228 -0
  37. nad_serial-0.0.1/nad_serial/configs/t787.json +2659 -0
  38. nad_serial-0.0.1/nad_serial/configs/tuner.json +64 -0
  39. nad_serial-0.0.1/nad_serial/configs/vxp.json +89 -0
  40. nad_serial-0.0.1/nad_serial/configs/xm.json +33 -0
  41. nad_serial-0.0.1/nad_serial/configs/zones.json +54 -0
  42. nad_serial-0.0.1/nad_serial/exceptions.py +33 -0
  43. nad_serial-0.0.1/nad_serial/helpers.py +135 -0
  44. nad_serial-0.0.1/nad_serial/py.typed +0 -0
  45. nad_serial-0.0.1/pyproject.toml +536 -0
  46. nad_serial-0.0.1/requirements.txt +2 -0
  47. nad_serial-0.0.1/requirements_test.txt +7 -0
  48. nad_serial-0.0.1/script/bootstrap +22 -0
  49. nad_serial-0.0.1/script/run-in-env.sh +30 -0
  50. nad_serial-0.0.1/script/setup +22 -0
  51. nad_serial-0.0.1/tests/__init__.py +1 -0
  52. nad_serial-0.0.1/tests/py.typed +0 -0
  53. nad_serial-0.0.1/tests/test_c356.py +12 -0
  54. nad_serial-0.0.1/tests/test_c368.py +12 -0
  55. nad_serial-0.0.1/tests/test_configs.py +387 -0
  56. nad_serial-0.0.1/tests/test_device.py +1 -0
  57. nad_serial-0.0.1/tests/test_helpers.py +382 -0
@@ -0,0 +1 @@
1
+ */_version.py
@@ -0,0 +1,51 @@
1
+ repos:
2
+ - repo: https://github.com/astral-sh/ruff-pre-commit
3
+ rev: v0.17.1
4
+ hooks:
5
+ - id: ruff-check
6
+ args:
7
+ - --fix
8
+ - id: ruff-format
9
+ files: ^((nad_serial|script|tests)/.+)?[^/]+\.(py|pyi)$
10
+ - repo: https://github.com/codespell-project/codespell
11
+ rev: v2.4.3
12
+ hooks:
13
+ - id: codespell
14
+ exclude_types: [pdf]
15
+ - repo: https://github.com/pre-commit/pre-commit-hooks
16
+ rev: v6.0.0
17
+ hooks:
18
+ - id: check-executables-have-shebangs
19
+ stages: [manual]
20
+ - id: check-json
21
+ - repo: https://github.com/adrienverge/yamllint.git
22
+ rev: v1.38.0
23
+ hooks:
24
+ - id: yamllint
25
+ - repo: https://github.com/rbubley/mirrors-prettier
26
+ rev: v3.6.2
27
+ hooks:
28
+ - id: prettier
29
+ additional_dependencies:
30
+ - prettier@3.6.2
31
+ - prettier-plugin-sort-json@4.2.0
32
+ - repo: local
33
+ hooks:
34
+ # Run mypy through our wrapper script in order to get the possible
35
+ # pyenv and/or virtualenv activated; it may not have been e.g. if
36
+ # committing from a GUI tool that was not launched from an activated
37
+ # shell.
38
+ - id: mypy
39
+ name: mypy
40
+ entry: script/run-in-env.sh mypy
41
+ language: script
42
+ require_serial: true
43
+ types: [python]
44
+ files: ^(nad_serial)/.+\.py$
45
+ - id: pylint
46
+ name: pylint
47
+ entry: script/run-in-env.sh pylint
48
+ language: script
49
+ require_serial: true
50
+ types: [python]
51
+ files: ^(nad_serial|tests)/.+\.py$
@@ -0,0 +1 @@
1
+ *.md
@@ -0,0 +1,24 @@
1
+ /** @type {import("prettier").Config} */
2
+ module.exports = {
3
+ overrides: [
4
+ {
5
+ files: "./**/*.json",
6
+ options: {
7
+ plugins: [require.resolve("prettier-plugin-sort-json")],
8
+ jsonRecursiveSort: true,
9
+ jsonSortOrder: JSON.stringify({ [/.*/]: "numeric" }),
10
+ },
11
+ },
12
+ {
13
+ files: ["nad_serial/configs/*.json"],
14
+ options: {
15
+ useTabs: true,
16
+ printWidth: 1,
17
+ },
18
+ },
19
+ {
20
+ files: "*.md",
21
+ options: { embeddedLanguageFormatting: "off" },
22
+ },
23
+ ],
24
+ };
@@ -0,0 +1,59 @@
1
+ rules:
2
+ braces:
3
+ level: error
4
+ min-spaces-inside: 0
5
+ max-spaces-inside: 1
6
+ min-spaces-inside-empty: -1
7
+ max-spaces-inside-empty: -1
8
+ brackets:
9
+ level: error
10
+ min-spaces-inside: 0
11
+ max-spaces-inside: 0
12
+ min-spaces-inside-empty: -1
13
+ max-spaces-inside-empty: -1
14
+ colons:
15
+ level: error
16
+ max-spaces-before: 0
17
+ max-spaces-after: 1
18
+ commas:
19
+ level: error
20
+ max-spaces-before: 0
21
+ min-spaces-after: 1
22
+ max-spaces-after: 1
23
+ comments:
24
+ level: error
25
+ require-starting-space: true
26
+ min-spaces-from-content: 1
27
+ comments-indentation:
28
+ level: error
29
+ document-end:
30
+ level: error
31
+ present: false
32
+ document-start:
33
+ level: error
34
+ present: false
35
+ empty-lines:
36
+ level: error
37
+ max: 1
38
+ max-start: 0
39
+ max-end: 1
40
+ hyphens:
41
+ level: error
42
+ max-spaces-after: 1
43
+ indentation:
44
+ level: error
45
+ spaces: 2
46
+ indent-sequences: true
47
+ check-multi-line-strings: false
48
+ key-duplicates:
49
+ level: error
50
+ line-length: disable
51
+ new-line-at-end-of-file:
52
+ level: error
53
+ new-lines:
54
+ level: error
55
+ type: unix
56
+ trailing-spaces:
57
+ level: error
58
+ truthy:
59
+ level: error
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright [yyyy] [name of copyright owner]
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
@@ -0,0 +1,208 @@
1
+ Metadata-Version: 2.5
2
+ Name: nad_serial
3
+ Version: 0.0.1
4
+ Summary: Library to control NAD amplifiers, tuners and receivers over serial (RS-232) or Ethernet (telnet).
5
+ Project-URL: Homepage, https://github.com/rrooggiieerr/nad_serial.py
6
+ Project-URL: Repository, https://github.com/rrooggiieerr/nad_serial.py
7
+ Project-URL: Documentation, https://github.com/rrooggiieerr/nad_serial.py#readme
8
+ Project-URL: Issues, https://github.com/rrooggiieerr/nad_serial.py/issues
9
+ Project-URL: Changelog, https://github.com/rrooggiieerr/nad_serial.py/releases
10
+ Project-URL: Funding, https://github.com/sponsors/rrooggiieerr
11
+ Author-email: Rogier van Staveren <rogier@batoid.com>
12
+ License-Expression: Apache-2.0
13
+ License-File: LICENSE.md
14
+ Keywords: amplifier,nad,receiver,rs232,serial,telnet,tuner
15
+ Classifier: Development Status :: 4 - Beta
16
+ Classifier: Framework :: AsyncIO
17
+ Classifier: Intended Audience :: Developers
18
+ Classifier: Operating System :: OS Independent
19
+ Classifier: Programming Language :: Python :: 3.14
20
+ Classifier: Topic :: Home Automation
21
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
22
+ Classifier: Typing :: Typed
23
+ Requires-Python: >=3.14
24
+ Requires-Dist: packaging>=23.1
25
+ Requires-Dist: serialx>=1.15.0
26
+ Description-Content-Type: text/markdown
27
+
28
+ # NAD Serial: Python library to control NAD amplifiers, tuners and receivers over serial (RS-232) or Ethernet (telnet)
29
+
30
+ ![Python][python-shield]
31
+ [![GitHub Release][releases-shield]][releases]
32
+ [![License][license-shield]][license]
33
+ [![Maintainer][maintainer-shield]][maintainer]
34
+ [![GitHub Sponsors][github-shield]][github]
35
+ [![PayPal][paypal-shield]][paypal]
36
+ [![BuyMeCoffee][buymecoffee-shield]][buymecoffee]
37
+ [![Patreon][patreon-shield]][patreon]
38
+
39
+ ## Introduction
40
+
41
+ NAD Serial lets you control **[NAD](https://nadelectronics.com/)** amplifiers, tuners and receivers
42
+ over serial (RS-232) or Ethernet (telnet).
43
+
44
+ ## Features
45
+
46
+ - Asynchronous, built on [serialx](https://github.com/puddly/serialx).
47
+ - Connects over serial (RS-232) or Ethernet (telnet).
48
+ - Detects the device model and build and loads the matching configuration.
49
+ - Detects the device type for models without configuration.
50
+ - Validates settings and values against the configuration before sending them.
51
+ - Read, set, increment and decrement any supported setting.
52
+ - Reads the source names on supported devices.
53
+ - Supports zones on multi-zone amplifiers and receivers.
54
+
55
+ ## Supported protocol
56
+
57
+ If your device follows the second generation NAD protocol (v2.x), it is supported by NAD Serial.
58
+ This protocol is used by NAD amplifiers, tuners and receivers with a serial (RS-232) or Ethernet
59
+ port.
60
+
61
+ The binary protocol that some NAD devices, like the D-series, use on TCP port 50001 is not
62
+ supported.
63
+
64
+ The serial and Ethernet commands are identical. All communication is plain ASCII text. Every
65
+ command and response has the format:
66
+
67
+ `<Prefix>.<Variable><Operator><Value>`
68
+
69
+ The prefix groups related variables, e.g. `Main`, `Zone2`, `Source1` or `Tuner`. Prefix and
70
+ variable together name a setting, e.g. `Main.Volume`. Every message is terminated by a carriage
71
+ return and/or line feed.
72
+
73
+ | Operator | Meaning | Example |
74
+ |---|---|---|
75
+ | `?` | Query the value | `Main.Volume?` |
76
+ | `=` | Set the value | `Main.Volume=-30` |
77
+ | `+` | Increment or cycle to the next value | `Main.Volume+` |
78
+ | `-` | Decrement or cycle to the previous value | `Main.Volume-` |
79
+
80
+ The device responds with the `=` operator and the resulting value, e.g. `Main.Volume=-30`.
81
+
82
+ ## Supported devices
83
+
84
+ The following devices are known to work:
85
+
86
+ **Receivers:**
87
+
88
+ - T755
89
+ - T757
90
+
91
+ Additionally, NAD Serial includes untested configuration files for the following devices:
92
+
93
+ **Receivers:**
94
+
95
+ - T758
96
+ - T765
97
+ - T775
98
+ - T777
99
+ - T778
100
+ - T785
101
+ - T787
102
+
103
+ **Surround preamplifiers:**
104
+
105
+ - M15HD
106
+ - M17
107
+ - T175
108
+ - T187
109
+
110
+ **Amplifiers:**
111
+
112
+ - C328
113
+ - C338
114
+ - C356
115
+ - C368
116
+ - C388
117
+
118
+ **Tuners:**
119
+
120
+ - C427
121
+
122
+ Other NAD devices that use the [supported protocol](#supported-protocol) should work too, with a
123
+ basic set of settings: power, model, version, volume, mute and source.
124
+
125
+ ## Connecting
126
+
127
+ ### USB to serial adapter
128
+
129
+ If your device has a serial port, use a USB to serial adapter to connect it. See the documentation
130
+ of your device for the location of the serial port and how to wire it.
131
+
132
+ The serial port uses 115200 baud, 8 data bits, no parity, 1 stop bit (8N1) and no flow control.
133
+
134
+ ### Ethernet
135
+
136
+ If your device has an Ethernet port use a network cable to connect your device to a router.
137
+
138
+ Use `socket://<ip address>:23` as the URL.
139
+
140
+ ### Serial to Ethernet/WiFi bridge
141
+
142
+ A serial to Ethernet/WiFi bridge is useful when the device is not close to your computer. Build your
143
+ own using an ESP32 and [esp-link](https://github.com/jeelabs/esp-link), or buy an off-the-shelf
144
+ product. Configure the bridge for 115200 baud, 8N1.
145
+
146
+ Use `socket://<ip address>:<port>` or `rfc2217://<ip address>:<port>` as the URL, depending on
147
+ which protocol the bridge supports.
148
+
149
+ ### ESPHome Serial Proxy
150
+
151
+ Install [ESPHome Serial Proxy](https://esphome.io/components/serial_proxy/) on an ESP32 and use
152
+ `esphome://<ip address>:<port>/?port_name=<port name>` as the URL.
153
+
154
+ ## Installation
155
+
156
+ Install NAD Serial with pip:
157
+
158
+ `pip3 install nad_serial`
159
+
160
+ ## Contribution and appreciation
161
+
162
+ Do you enjoy using NAD Serial? You can contribute or show your appreciation, in the
163
+ following ways.
164
+
165
+ ### Contribute your device model
166
+
167
+ Is your device supported by NAD Serial but not listed under [Supported devices](#supported-devices)? Let me
168
+ know your device model so I can improve the overview of supported devices.
169
+
170
+ Is there no configuration file for your device model yet, or is the configuration file incomplete or
171
+ incorrect? Create a [configuration file](nad_serial/configs/README.md) and submit a pull request
172
+ with the new or updated configuration file.
173
+
174
+ ### Star this GitHub page
175
+
176
+ Help other NAD device users find NAD Serial by starring this GitHub page. Click ⭐ Star on
177
+ the top right of the GitHub page.
178
+
179
+ ### Support my work
180
+
181
+ Please consider supporting my work through one of the following platforms. Your contribution is
182
+ greatly appreciated and keeps me motivated:
183
+
184
+ [![GitHub Sponsors][github-shield]][github]
185
+ [![PayPal][paypal-shield]][paypal]
186
+ [![BuyMeCoffee][buymecoffee-shield]][buymecoffee]
187
+ [![Patreon][patreon-shield]][patreon]
188
+
189
+ ### Hire me
190
+
191
+ If you're in need of a freelance Python developer for your project please contact me. You can find
192
+ my email address on [my GitHub profile](https://github.com/rrooggiieerr).
193
+
194
+ [python-shield]: https://img.shields.io/badge/python-3670A0?style=for-the-badge&logo=python&logoColor=ffdd54
195
+ [releases]: https://github.com/rrooggiieerr/nad_serial.py/releases
196
+ [releases-shield]: https://img.shields.io/github/v/release/rrooggiieerr/nad_serial.py?style=for-the-badge
197
+ [license]: ./LICENSE.md
198
+ [license-shield]: https://img.shields.io/github/license/rrooggiieerr/nad_serial.py?style=for-the-badge
199
+ [maintainer]: https://github.com/rrooggiieerr
200
+ [maintainer-shield]: https://img.shields.io/badge/MAINTAINER-%40rrooggiieerr-41BDF5?style=for-the-badge
201
+ [paypal]: https://paypal.me/seekingtheedge
202
+ [paypal-shield]: https://img.shields.io/badge/PayPal-00457C?style=for-the-badge&logo=paypal&logoColor=white
203
+ [buymecoffee]: https://www.buymeacoffee.com/rrooggiieerr
204
+ [buymecoffee-shield]: https://img.shields.io/badge/Buy%20Me%20a%20Coffee-ffdd00?style=for-the-badge&logo=buy-me-a-coffee&logoColor=black
205
+ [github]: https://github.com/sponsors/rrooggiieerr
206
+ [github-shield]: https://img.shields.io/badge/sponsor-30363D?style=for-the-badge&logo=GitHub-Sponsors&logoColor=ea4aaa
207
+ [patreon]: https://www.patreon.com/seekingtheedge/creators
208
+ [patreon-shield]: https://img.shields.io/badge/Patreon-F96854?style=for-the-badge&logo=patreon&logoColor=white