|
| 1 | +.. _b-asc_sample: |
| 2 | + |
| 3 | +BACnet Profile B-ASC Sample |
| 4 | +########################### |
| 5 | + |
| 6 | +Overview |
| 7 | +******** |
| 8 | + |
| 9 | +This is a simple application demonstrating configuration of a |
| 10 | +BACnet Application Specific Controller (B-ASC) device profile. |
| 11 | + |
| 12 | +L.4.3 BACnet Application Specific Controller (B-ASC) |
| 13 | +**************************************************** |
| 14 | + |
| 15 | +A B-ASC is a controller with limited resources relative to an |
| 16 | +Advanced Application Controller (B-AAC). |
| 17 | +A B-ASC is intended for use in a specific application |
| 18 | +and supports limited programmability. |
| 19 | + |
| 20 | +Data Sharing |
| 21 | +************ |
| 22 | + |
| 23 | +* Ability to provide the values of any of its BACnet objects |
| 24 | +* Ability to allow modification of some or all of its BACnet |
| 25 | + objects by another device |
| 26 | + |
| 27 | +Device and Network Management |
| 28 | +***************************** |
| 29 | + |
| 30 | +* Ability to respond to queries about its status |
| 31 | +* Ability to respond to requests for information about any of its objects |
| 32 | +* Ability to respond to communication control messages |
| 33 | + |
| 34 | +Requirements |
| 35 | +************ |
| 36 | + |
| 37 | +* A board with Ethernet support, for instance: nucleo_f429zi |
| 38 | + |
| 39 | +Building and Running |
| 40 | +******************** |
| 41 | + |
| 42 | +This sample can be found under :bacnet_file:`samples/profiles/b-asc` in |
| 43 | +the BACnet tree. |
| 44 | + |
| 45 | +The sample can be built for several platforms - use `west boards` to |
| 46 | +list the supported boards. |
| 47 | + |
| 48 | +Compile this sample for the `nucleo_f429zi` board: |
| 49 | + |
| 50 | + west build -b nucleo_f429zi -p always bacnet/zephyr/samples/profiles/b-asc/ |
| 51 | + |
| 52 | +Compile this sample for the `rpi_pico` board: |
| 53 | + |
| 54 | + west build -b rpi_pico -p always bacnet/zephyr/samples/profiles/b-asc/ |
| 55 | + |
| 56 | +Compile this sample for the `adafruit_grand_central_m4_express` board with |
| 57 | + |
| 58 | + west build -b adafruit_grand_central_m4_express -p always bacnet/zephyr/samples/profiles/b-asc/ |
| 59 | + |
| 60 | +Using the Shell |
| 61 | +*************** |
| 62 | + |
| 63 | +The shell is available on some boards via virtual communication port: |
| 64 | + |
| 65 | + picocom --baud 115200 /dev/ttyACM0 |
| 66 | + |
| 67 | + Terminal ready |
| 68 | + *** Booting Zephyr OS build v3.7.1 *** |
| 69 | + uart:~$ |
| 70 | + bacnet clear device devmem help history kernel net |
| 71 | + rem resize retval shell stats |
| 72 | + uart:~$ bacnet object list |
| 73 | + {"object-list": [ |
| 74 | + {"object-identifier":{"device":260127}}, |
| 75 | + {"object-identifier":{"analog-input":1}}, |
| 76 | + {"object-identifier":{"analog-output":1}}, |
| 77 | + {"object-identifier":{"analog-value":1}}, |
| 78 | + {"object-identifier":{"audit-log":1}}, |
| 79 | + {"object-identifier":{"binary-input":1}}, |
| 80 | + {"object-identifier":{"binary-output":1}}, |
| 81 | + {"object-identifier":{"binary-value":1}}, |
| 82 | + {"object-identifier":{"multi-state-input":1}}, |
| 83 | + {"object-identifier":{"multi-state-output":1}}, |
| 84 | + {"object-identifier":{"multi-state-value":1}}, |
| 85 | + {"object-identifier":{"network-port":1}}, |
| 86 | + {"object-identifier":{"calendar":1}}, |
| 87 | + {"object-identifier":{"integer-value":1}}, |
| 88 | + {"object-identifier":{"life-safety-point":1}}, |
| 89 | + {"object-identifier":{"load-control":1}}, |
| 90 | + {"object-identifier":{"lighting-output":1}}, |
| 91 | + {"object-identifier":{"channel":1}}, |
| 92 | + {"object-identifier":{"binary-lighting-output":1}}, |
| 93 | + {"object-identifier":{"color":1}}, |
| 94 | + {"object-identifier":{"color-temperature":1}}, |
| 95 | + {"object-identifier":{"file":1}}, |
| 96 | + {"object-identifier":{"structured-view":1}}, |
| 97 | + {"object-identifier":{"characterstring-value":1}}, |
| 98 | + {"object-identifier":{"time-value":1}}, |
| 99 | + {"object-identifier":{"timer":1}}], |
| 100 | + "object-list-size": 26} |
| 101 | + uart:~$ |
0 commit comments