# Unable to read parameters

**URL:** <https://forum.genieacs.com/t/unable-to-read-parameters/1226>\
**Category:** Uncategorized\
**Created:** [November 24, 2020, 5:26am UTC](https://forum.genieacs.com/t/unable-to-read-parameters/1226 "2020-11-24T05:26:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cr4zsci](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/cr4zsci/32/341_2.png) [@cr4zsci](https://forum.genieacs.com/u/cr4zsci)\
**Post date:** [November 24, 2020, 5:26am UTC](https://forum.genieacs.com/t/unable-to-read-parameters/1226/1 "2020-11-24T05:26:22Z")

</div>

Hello. In the UI I see the device (I use for testing genieacs-sim)

> DeviceID.ID 202BC1-BM632w-000000  
> DeviceID.Manufacturer Huawei Technologies Co., Ltd.  
> DeviceID.OUI 202BC1  
> DeviceID.ProductClass BM632w  
> DeviceID.SerialNumber 000000

But i can’t read the parameters from device. Нere is the test script:

> log(“test script start”);  
> const s = declare(“DeviceID.SerialNumber”, {value: 1});  
> log(JSON.stringify(s));

In the logs I see

> … 202BC1-BM632w-000000: Script: test script start  
> … 202BC1-BM632w-000000: Script: {}

---

<div class="post-metadata">

**Author:** ![lavira](https://avatars.discourse-cdn.com/v4/letter/l/87869e/32.png) [@lavira](https://forum.genieacs.com/u/lavira)\
**Post date:** [November 24, 2020, 8:40am UTC](https://forum.genieacs.com/t/unable-to-read-parameters/1226/2 "2020-11-24T08:40:08Z")

</div>

`log(JSON.stringify(s.value));`

---

<div class="post-metadata">

**Author:** ![akcoder](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.genieacs.com/akcoder/32/11_2.png) [@akcoder](https://forum.genieacs.com/u/akcoder)\
**Post date:** [November 24, 2020, 4:59pm UTC](https://forum.genieacs.com/t/unable-to-read-parameters/1226/3 "2020-11-24T16:59:02Z")

</div>

```auto
const s = declare(“DeviceID.SerialNumber”, {value: 1});

```

The whole DeviceID structure is one created by GenieACS for internal purposes, it does not exist on the device. Doing this `const s = declare("DeviceID.SerialNumber").value[0];` will allow you to read the serial number the device has sent over neutral of whether the device is using TR-069 or TR-181.

The {value: 1} parameter also tells GenieACS that you wish to refresh that value if its copy is older than the value given. The value is in Unix epoch.
