sun_phy
A Python implementation of 802.15.4g LR-WPANs SUN PHYs : MR-FSK, MR-OFDM and MR-O-QPSK
Installation
pip install sun-phy
Usage
MR-FSK
from sun_phy import Mr_fsk_modulator
modulator = Mr_fsk_modulator(
# Set these parameters
phyMRFSKSFD=0,
phyFSKPreambleLength=4,
modulation='2FSK',
phyFSKFECEnabled=True,
phyFSKFECScheme=0,
macFCSType=0,
phyFSKScramblePSDU=True,
phyFSKFECInterleavingRSC=False)
# The message can also be sent as a numpy array of bytes or bits
I, Q, f = modulator.message_to_IQ(b'my message')
I, Q, f = modulator.mode_switch_to_IQ(
# Set these parameters
modeSwitchParameterEntry=0,
new_mode_fec=0)
MR-OFDM
from sun_phy import Mr_ofdm_modulator
modulator = Mr_ofdm_modulator(
# Set these parameters
MCS=3,
OFDM_Option=2,
phyOFDMInterleaving=0,
scrambler=0,
verbose=False # Verbose True enables printing of debugging info
)
# Similarly to MR-FSK, the message can by a byte or bits array
I, Q, f = modulator.message_to_IQ(b'my message')
MR-O-QPSK
from sun_phy import Mr_o_qpsk_modulator, Frequency_band
modulator = Mr_o_qpsk_modulator(
# Set these parameters
frequency_band=Frequency_band.Band_470MHz,
rate_mode=0,
spreading_mode=0)
I, Q, f = modulator.message_to_IQ(b'my message')
Metadata
Release files for sun-phy 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sun_phy-0.1.0.tar.gz | 48.1 kB | Without provenance | Details for sun_phy-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sun_phy-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for sun_phy-0.1.0-py3-none-any.whl |
Total release size: 106.2 kB
Release files / sun_phy-0.1.0.tar.gz
| Download URL | sun_phy-0.1.0.tar.gz |
|---|---|
| Size | 48.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b5452feb5e40044eda94ecef729073e45e85df05ace412cd47eb715f2eb6079a
|
|
BLAKE2b-256 checksum How to use checksums |
de94a0c02d8509f112d40916e0a99647cca10adb5197605cdbd7f7db39c7a38d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.8
|
Release files / sun_phy-0.1.0-py3-none-any.whl
| Download URL | sun_phy-0.1.0-py3-none-any.whl |
|---|---|
| Size | 58.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
668485d8f4a9a6bec216a07b3c3aea8d0d7d6e0c0174c8a37abe1880b303ecc3
|
|
BLAKE2b-256 checksum How to use checksums |
a62dbfff3087ebd422d87abd361e60895a88b2d092e388d90c4eb158ecd1229a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.8
|
Security for sun-phy 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.