Skip to content

Commit ddb4be1

Browse files
committed
Updated BACnet Smart Sensor (B-SS) device profile
1 parent f14b88d commit ddb4be1

File tree

4 files changed

+15
-37
lines changed

4 files changed

+15
-37
lines changed

README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,17 @@ starting point for your own projects.
2727

2828
A simple "Hello World" sample that can be used with any supported board boards and prints ["Hello BACnet-Stack"](./zephyr/samples/hello_bacnet_stack/README.rst) to the console.
2929

30-
## BACnet Application Profile Simple Sensor (B-SS)
30+
## BACnet Standardized Device Profiles
31+
32+
### Device Profile - BACnet Smart Actuator (B-SA)
33+
34+
A device application demonstrating configuration of a
35+
[BACnet Smart Actuator (B-SA) device profile](./zephyr/samples/profiles/b-sa/README.rst) that can be used with any supported board boards.
36+
37+
### Device Profile - BACnet Smart Sensor (B-SS)
3138

3239
A device application demonstrating configuration of a
33-
[BACnet B-SS (simple sensor) device profile](./zephyr/samples/profiles/b-ss/README.rst) that can be used with any supported board boards.
40+
[BACnet Smart Sensor (B-SS) device profile](./zephyr/samples/profiles/b-ss/README.rst) that can be used with any supported board boards.
3441

3542
# Coding Style and Guidelines
3643

zephyr/samples/profiles/b-ss/README.rst

Lines changed: 4 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ Overview
77
********
88

99
This is a simple application demonstrating configuration of a
10-
BACnet B-SS (simple sensor) device profile.
10+
BACnet Smart Sensor (B-SS) device profile.
1111

1212
Requirements
1313
************
1414

15-
* A board with Ethernet support, for instance: mimxrt1064_evk
15+
* A board with Ethernet support, for instance: nucleo_f429zi
1616

1717
Building and Running
1818
********************
@@ -22,35 +22,6 @@ the BACnet tree.
2222

2323
The sample can be built for several platforms.
2424

25+
Compile this sample for the `nucleo_f429zi` board:
2526

26-
QEMU testing
27-
************
28-
29-
The main logic of work can be found at the link
30-
https://docs.zephyrproject.org/3.0.0/guides/networking/qemu_setup.html
31-
32-
Steps to testing
33-
1 Load and make net-tools:
34-
git clone https://github.com/zephyrproject-rtos/net-tools
35-
cd net-tools
36-
make
37-
2 Run net-tools loops in two termitals:
38-
first: cd ~/net-tools && ./loop-socat.sh
39-
second: cd ~/net-tools && sudo ./loop-slip-tap.sh
40-
3 Configure prj.conf
41-
The net-tools creates and uses network 192.0.2.0/24 as `tap0` interface.
42-
Need change prj.conf:
43-
CONFIG_NET_CONFIG_MY_IPV4_ADDR="192.0.2.1"
44-
CONFIG_NET_CONFIG_PEER_IPV4_ADDR="192.0.2.2"
45-
4 Set BACNET_IFACE to tap0:
46-
export BACNET_IFACE=tap0
47-
5 Compile and run b-ss profile:
48-
west build -b qemu_x86 -p always -t run bacnet-stack/zephyr/samples/profiles/b-ss/
49-
6 Run bacnet-stack app tools as a test tool, like readprop:
50-
bacnet-stack/apps/readprop/bacrp --mac 192.0.2.1:47808 55 17 1 77
51-
here:
52-
17 - OBJECT_SCHEDULE
53-
1 - schedule index
54-
77 - PROP_OBJECT_NAME
55-
expected result - string:
56-
"SCHEDULE 1"
27+
west build -b nucleo_f429zi -p always bacnet/zephyr/samples/profiles/b-ss/

zephyr/samples/profiles/b-ss/sample.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
sample:
2-
name: BACnet Profile B-SS Sample
2+
name: BACnet Smart Sensor (B-SS) Sample
33

44
tests:
55
bacnet-stack.sample.profile.b-ss.bacdl_none:

zephyr/samples/profiles/b-ss/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ static void BACnet_Smart_Sensor_Task_Handler(void *context)
8484

8585
int main(void)
8686
{
87-
LOG_INF("*** BACnet Profile B-SS Sample ***");
87+
LOG_INF("*** BACnet Smart Sensor (B-SS) ***");
8888
LOG_INF("BACnet Stack Version " BACNET_VERSION_TEXT);
8989
LOG_INF("BACnet Stack Max APDU: %d", MAX_APDU);
9090
bacnet_basic_init_callback_set(BACnet_Smart_Sensor_Init_Handler, NULL);

0 commit comments

Comments
 (0)