Email us : sales@yumaworks.com

chassap1

Forum Replies Created

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • in reply to: How to send database to a device #18808
    chassap1
    Participant

    Thanks for the quick response. But unfortunately, I didn’t see any callbacks in my SIL being called. I need to capture the configuration and write it to the device. Thanks.

    in reply to: Error getting data from homemade SIL #18804
    chassap1
    Participant

    I got my readonly leaf to return data. I needed to add –module=DDC-DEMO-TSN-SWITCH-MIB.

    Now I’m trying to figure out how to figure out how to get-config from my readwrite leaf object.

    in reply to: Error getting data from homemade SIL #18802
    chassap1
    Participant

    Here is my get function. I was expecting the value 0x4DDC. Note: In my original post I used a get-config command. I tried just a get command and got same results. Its like it can’t find my leaf node. Is there any other initialization I need to do?

    /* put your static variables here */
    static int32 readOnlyObject = 0x4DDC;
    static int32 readwriteObject;

    /********************************************************************
    * FUNCTION u_DDC_DEMO_TSN_SWITCH_MIB_tsnSystem_systemReadOnlyObject_get
    *
    * Get database object callback for leaf systemReadOnlyObject
    * Path: /tsnSystem/systemReadOnlyObject
    * Fill in ‘dstval’ contents
    *
    * INPUTS:
    * see ncx/getcb.h for details (getcb_fn_t)
    *
    * RETURNS:
    * error status
    ********************************************************************/
    status_t u_DDC_DEMO_TSN_SWITCH_MIB_tsnSystem_systemReadOnlyObject_get (
    val_value_t *dstval)
    {
    status_t res = NO_ERR;
    int32 v_systemReadOnlyObject;

    if (LOGDEBUG) {
    log_debug(“\nEnter u_DDC_DEMO_TSN_SWITCH_MIB_tsnSystem_systemReadOnlyObject_get callback”);
    }

    /* set the v_systemReadOnlyObject var here, change zero */
    v_systemReadOnlyObject = readOnlyObject;
    VAL_INT(dstval) = v_systemReadOnlyObject;

    return res;

    } /* u_DDC_DEMO_TSN_SWITCH_MIB_tsnSystem_systemReadOnlyObject_get */

    • This reply was modified 3 years, 10 months ago by chassap1.
    in reply to: How to fix error unknown namespace #18788
    chassap1
    Participant

    thanks. looks like it worked.

Viewing 4 posts - 1 through 4 (of 4 total)