Project

General

Profile

Virtual transceiver » History » Version 1

laforge, 01/02/2022 05:07 PM

1 1 laforge
h1. Virtual Transceiver Driver
2
3
{{>toc}}
4
5
The virtual transceiver driver allows to create groups of transceivers which can interact with each other.
6
7
h2. Kernel configuration
8
9
To enable the driver, set the config option
10
11
<pre>
12
CONFIG_DECT_VTRX=y/m
13
</pre>
14
15
The module is called @dect_vtrx@.
16
17
h2. Driver Configuration
18
19
Configuration of the driver is done through a sysfs interface. The driver registers a set of files under @/sys/class/dect/@, which are used to add or remove transceiver groups or transceivers and configure transceiver parameters.
20
21
h3. Groups
22
23
Groups are containers for transceivers, only transceivers contained in the same group can communicate with each other.
24
When loaded, the driver creates a single group called @group-1@. New groups can be created by executing
25
26
<pre>
27
echo group-name > /sys/class/dect/new-group
28
</pre>
29
30
Each group registers a directory named like the group in ''/sys/class/dect/''.
31
32
h3. Transceivers
33
34
New transceivers can be create by executing
35
36
<pre>
37
echo > /sys/class/dect/group-name/new_trx
38
</pre>
39
40
A unique name is assigned to newly created transceivers automatically. For each transceiver, a directory named like the transceiver is created in @/sys/class/dect/group-name@. This directory contains the following files:
41
42
 * @remove@: remove the transceiver
43
 * @tx_power@: transmit power in dBm
44
 * @pos_x@: position of the transceiver on the x-axis
45
 * @pos_y@: position of the transceiver on the y-axis
46
47
When receiving a frame from the transceiver, the received signal strength is calculated from the transmit power and the distance between the two transceivers. The frame received with the strongest signal strength is received by the transceiver. Interference is currently not simulated.
Add picture from clipboard (Maximum size: 48.8 MB)