|
SmartMeshSDK
|
Public class for the HART Mote connector, over Serial. More...
Public Member Functions | |
| def | dn_setParameter_txPower |
| The setParameter<txPower> command sets the mote conducted RF output power. More... | |
| def | dn_setParameter_joinDutyCycle |
| The setParameter<joinDutyCycle> command allows the microprocessor to control the join duty cycle the ratio of active listen time to doze time (a low-power radio state) during the period when the mote is searching for the network. More... | |
| def | dn_setParameter_batteryLife |
| The setParameter<batteryLife> command allows the microprocessor to update the remaining battery life information that the mote reports to WirelessHART Gateway in Command 778. More... | |
| def | dn_setParameter_service |
| The setParameter<service> command is used to request new device-originated bandwidth services and modify existing device-initiated services (now called "Timetables" in WirelessHART 7.4).Calling thiscommand updates the motes internal service table, which later initiates a request to the network manager for bandwidth allocation. More... | |
| def | dn_setParameter_hartDeviceStatus |
| The setParameter<hartDeviceStatus> command sets the current status of a WirelessHART device. More... | |
| def | dn_setParameter_hartDeviceInfo |
| The setParameter<hartDeviceInfo> command is used to set HART device information that the mote passes to gateway during join. More... | |
| def | dn_setParameter_eventMask |
| The setParameter<eventMask> command allows the microprocessor to subscribe to the types of events that may be sent in the motes events notification message. More... | |
| def | dn_setParameter_writeProtect |
| The setParameter<writeProtect> command allows the microprocessor to enable or disable access to selected WirelessHART commands via wireless or the hartPayload command. More... | |
| def | dn_setParameter_lock |
| The setParameter<lock> command locks/unlocks select HART commands (ones that affect the configuration changed flag) to a specific master (GW or serial maintenance port) to prevent the other master from changing it. More... | |
| def | dn_getParameter_joinDutyCycle |
| The getParameter<joinDutyCycle> command return mote's join duty cycle, which determines the percentage of time the mote spends in radio receive mode while searching for network. More... | |
| def | dn_getParameter_service |
| The getParameter<service> command retrieves information about the service allocation that is currently available to the field device. More... | |
| def | dn_getParameter_moteInfo |
| The getParameter<moteInfo> command returns static information about the motes hardware and software. More... | |
| def | dn_getParameter_networkInfo |
| The getParameter<networkInfo> command may be used to retrieve the mote's network-related parameters. More... | |
| def | dn_getParameter_moteStatus |
| The getParameter<moteStatus> command is used to retrieve the mote's state and frequently changing information. More... | |
| def | dn_getParameter_time |
| The getParameter<time> command is used to request the current time on the mote. More... | |
| def | dn_getParameter_charge |
| The getParameter<charge> command retrieves estimated charge consumption of the mote since the last reset, as well as the mote uptime and last measured temperature. More... | |
| def | dn_getParameter_testRadioRxStats |
| The getParameter<testRadioRxStats> command retrieves statistics for the latest radio reception test performed using the testRadioRx command. More... | |
| def | dn_getParameter_lock |
| The getParameter<lock> command returns the current (RAM resident) lock code and locking master. More... | |
| def | dn_setNVParameter_macAddress |
| The setNVParameter<macAddress> command may be used to supersede the factory-configured MAC address of the mote. More... | |
| def | dn_setNVParameter_joinKey |
| The setNVParameter<joinKey> command may be used to set the join key. More... | |
| def | dn_setNVParameter_networkId |
| The setNVParameter<networkId> command may be used to set the persistent Network ID of the mote. More... | |
| def | dn_setNVParameter_txPower |
| The setNVParameter<txPower> command sets the mote output power. More... | |
| def | dn_setNVParameter_powerInfo |
| The setNVParameter<powerInfo> command specifies the average current that is available to the mote. More... | |
| def | dn_setNVParameter_ttl |
| The setNVParameter<ttl> command sets the mote's persistent packet Time To Live (TTL) value. More... | |
| def | dn_setNVParameter_hartAntennaGain |
| The setNVParameter<hartAntennaGain> command stores value of the antenna gain in the mote's persistent storage.This value is added to the conducted output power of the mote when replying to HART command 797 (Write Radio Power Output) and to HART command 798 (Read Radio Output Power). More... | |
| def | dn_setNVParameter_OTAPlockout |
| The setNVParameter<OTAPlockout> command specifies whether the mote's firmware can be updated over the air. More... | |
| def | dn_setNVParameter_hrCounterMode |
| The setNVParameter<hrCounterMode> command may be used to control how the mote increments statistics counters reported via HART health reports. More... | |
| def | dn_setNVParameter_autojoin |
| The setNVParameter<autojoin> command allows the microprocessor to change between automatic and manual joining by the mote's networking stack. More... | |
| def | dn_setNVParameter_hartCompliantMode |
| The setNVParameter<hartCompliantMode> command may be used to force strict compliance to HART specification requirements, specifically: More... | |
| def | dn_setNVParameter_lock |
| The setNVParameter<lock> command persistently locks/unlocks select HART commands (ones that affect the configuration changed flag) to a specific master (GW or serial maintenance port) to prevent the other master from changing it. More... | |
| def | dn_setNVParameter_euCompliantMode |
| The setNVParameter<euCompliantMode> command may be used to enforce EN 300 328 duty cycle limits based on output power. More... | |
| def | dn_getNVParameter_macAddress |
| The getNVParameter<macAddress> command returns the MAC address stored in mote's persistent storage (i.e. More... | |
| def | dn_getNVParameter_networkId |
| The getNVParameter<networkId> command returns the Network ID stored in mote's persistent storage. More... | |
| def | dn_getNVParameter_txPower |
| The getNVParameter<txPower> command returns the transmit power value stored in mote's persistent storage. More... | |
| def | dn_getNVParameter_powerInfo |
| The getNVParameter<powerInfo> command returns the power supply information stored in mote's persistent storage. More... | |
| def | dn_getNVParameter_ttl |
| The getNVParameter<ttl> command reads the Time To Live parameter from the mote's persistent storage. More... | |
| def | dn_getNVParameter_HARTantennaGain |
| The getNVParameter<HARTantennaGain> command reads the antenna gain value from the mote's persistent storage. More... | |
| def | dn_getNVParameter_OTAPlockout |
| The getNVParameter<OTAPlockout> command reads the OTAP lockout setting from the motes persistent storage. More... | |
| def | dn_getNVParameter_hrCounterMode |
| The getNVParameter<hrCounterMode> command may be used to retrieve the health report counter mode that is used by devices. More... | |
| def | dn_getNVParameter_autojoin |
| The getNVParameter<autojoin> command returns the autojoin status stored in mote's persistent storage (i.e. More... | |
| def | dn_getNVParameter_hartCompliantMode |
| The getNVParameter<hartCompliantMode> command may be used to retrieve the HART compliance mode that is used by devices.This mode controls strict compliance to HART specification requirements, specifically: More... | |
| def | dn_getNVParameter_lock |
| The getNVParameter < lock > command returns the persisted lock code and locking master (those to be used after reset). More... | |
| def | dn_getNVParameter_euCompliantMode |
| The getNVParameter<euCompliantMode> command may be used to retrieve the EN 300 328 compliance mode that is used by devices. More... | |
| def | dn_send |
| The send command allows a serial device to send a packet into the network through the mote's serial port. More... | |
| def | dn_join |
| The join command requests that a mote start searching for the network and attempt to join. More... | |
| def | dn_disconnect |
| The disconnect command requests that the mote disconnect from the network. More... | |
| def | dn_reset |
| Upon receiving this command, the mote resets itself after a short delay. More... | |
| def | dn_lowPowerSleep |
| The lowPowerSleep command shuts down all peripherals and places the mote in deep sleep mode. More... | |
| def | dn_hartPayload |
| The hartPayload command allows the microprocessor to forward a HART payload to the mote. More... | |
| def | dn_testRadioTx |
| The testRadioTx command initiates transmission over the radio. More... | |
| def | dn_testRadioRx |
| The testRadioRx command clears all previously collected statistics and initiates a test of radio reception for the specified channel and duration. More... | |
| def | dn_clearNV |
| The clearNV command resets the motes Non-Volatile (NV) memory to its factory-default state. More... | |
| def | dn_search |
| The search command causes the mote to listen for network advertisements and notify the microprocessor about each advertisement it hears. More... | |
| def | dn_testRadioTxExt |
| The testRadioTxExt command allows the microprocessor to initiate a radio transmission test. More... | |
| def | dn_testRadioRxExt |
| The testRadioRxExt command clears all previously collected statistics and initiates a test of radio reception for the specified channel and duration. More... | |
| def | dn_zeroize |
| The zeroize (zeroise) command erases flash area that is used to store configuration parameters, such as join keys. More... | |
| def | dn_fileWrite |
| The fileWrite command may be used to read data stored in the scratchpad file in the mote filesystem. More... | |
| def | dn_fileRead |
| The fileRead command may be used to read data stored in the scratchpad file in the mote filesystem. More... | |
| def | dn_fileOpen |
| The fileOpen command may be used to open the scratchpad file in the mote filesystem. More... | |
| def | getNotification |
| Get a notification from the notification queue, and returns it properly formatted. More... | |
Static Public Attributes | |
| tuple | Tuple_dn_setParameter_txPower = collections.namedtuple("Tuple_dn_setParameter_txPower", ['RC']) |
| The named tuple returned by the dn_setParameter_txPower() function. More... | |
| tuple | Tuple_dn_setParameter_joinDutyCycle = collections.namedtuple("Tuple_dn_setParameter_joinDutyCycle", ['RC']) |
| The named tuple returned by the dn_setParameter_joinDutyCycle() function. More... | |
| tuple | Tuple_dn_setParameter_batteryLife = collections.namedtuple("Tuple_dn_setParameter_batteryLife", ['RC']) |
| The named tuple returned by the dn_setParameter_batteryLife() function. More... | |
| tuple | Tuple_dn_setParameter_service = collections.namedtuple("Tuple_dn_setParameter_service", ['RC', 'numServices']) |
| The named tuple returned by the dn_setParameter_service() function. More... | |
| tuple | Tuple_dn_setParameter_hartDeviceStatus = collections.namedtuple("Tuple_dn_setParameter_hartDeviceStatus", ['RC']) |
| The named tuple returned by the dn_setParameter_hartDeviceStatus() function. More... | |
| tuple | Tuple_dn_setParameter_hartDeviceInfo = collections.namedtuple("Tuple_dn_setParameter_hartDeviceInfo", ['RC']) |
| The named tuple returned by the dn_setParameter_hartDeviceInfo() function. More... | |
| tuple | Tuple_dn_setParameter_eventMask = collections.namedtuple("Tuple_dn_setParameter_eventMask", ['RC']) |
| The named tuple returned by the dn_setParameter_eventMask() function. More... | |
| tuple | Tuple_dn_setParameter_writeProtect = collections.namedtuple("Tuple_dn_setParameter_writeProtect", ['RC']) |
| The named tuple returned by the dn_setParameter_writeProtect() function. More... | |
| tuple | Tuple_dn_setParameter_lock = collections.namedtuple("Tuple_dn_setParameter_lock", ['RC']) |
| The named tuple returned by the dn_setParameter_lock() function. More... | |
| tuple | Tuple_dn_getParameter_joinDutyCycle = collections.namedtuple("Tuple_dn_getParameter_joinDutyCycle", ['RC', 'joinDutyCycle']) |
| The named tuple returned by the dn_getParameter_joinDutyCycle() function. More... | |
| tuple | Tuple_dn_getParameter_service = collections.namedtuple("Tuple_dn_getParameter_service", ['RC', 'serviceId', 'serviceState', 'serviceFlags', 'appDomain', 'destAddr', 'time']) |
| The named tuple returned by the dn_getParameter_service() function. More... | |
| tuple | Tuple_dn_getParameter_moteInfo = collections.namedtuple("Tuple_dn_getParameter_moteInfo", ['RC', 'apiVersion', 'serialNum', 'hwModel', 'hwRev', 'swMajorRev', 'swMinorRev', 'swPatch', 'swBuild']) |
| The named tuple returned by the dn_getParameter_moteInfo() function. More... | |
| tuple | Tuple_dn_getParameter_networkInfo = collections.namedtuple("Tuple_dn_getParameter_networkInfo", ['RC', 'macAddress', 'moteId', 'networkId']) |
| The named tuple returned by the dn_getParameter_networkInfo() function. More... | |
| tuple | Tuple_dn_getParameter_moteStatus = collections.namedtuple("Tuple_dn_getParameter_moteStatus", ['RC', 'state', 'moteStateReason', 'changeCounter', 'numParents', 'moteAlarms', 'statusFlags']) |
| The named tuple returned by the dn_getParameter_moteStatus() function. More... | |
| tuple | Tuple_dn_getParameter_time = collections.namedtuple("Tuple_dn_getParameter_time", ['RC', 'utcTime', 'asn', 'asnOffset']) |
| The named tuple returned by the dn_getParameter_time() function. More... | |
| tuple | Tuple_dn_getParameter_charge = collections.namedtuple("Tuple_dn_getParameter_charge", ['RC', 'charge', 'uptime', 'temperature', 'fractionalTemp']) |
| The named tuple returned by the dn_getParameter_charge() function. More... | |
| tuple | Tuple_dn_getParameter_testRadioRxStats = collections.namedtuple("Tuple_dn_getParameter_testRadioRxStats", ['RC', 'rxOk', 'rxFailed']) |
| The named tuple returned by the dn_getParameter_testRadioRxStats() function. More... | |
| tuple | Tuple_dn_getParameter_lock = collections.namedtuple("Tuple_dn_getParameter_lock", ['RC', 'code', 'master']) |
| The named tuple returned by the dn_getParameter_lock() function. More... | |
| tuple | Tuple_dn_setNVParameter_macAddress = collections.namedtuple("Tuple_dn_setNVParameter_macAddress", ['RC']) |
| The named tuple returned by the dn_setNVParameter_macAddress() function. More... | |
| tuple | Tuple_dn_setNVParameter_joinKey = collections.namedtuple("Tuple_dn_setNVParameter_joinKey", ['RC']) |
| The named tuple returned by the dn_setNVParameter_joinKey() function. More... | |
| tuple | Tuple_dn_setNVParameter_networkId = collections.namedtuple("Tuple_dn_setNVParameter_networkId", ['RC']) |
| The named tuple returned by the dn_setNVParameter_networkId() function. More... | |
| tuple | Tuple_dn_setNVParameter_txPower = collections.namedtuple("Tuple_dn_setNVParameter_txPower", ['RC']) |
| The named tuple returned by the dn_setNVParameter_txPower() function. More... | |
| tuple | Tuple_dn_setNVParameter_powerInfo = collections.namedtuple("Tuple_dn_setNVParameter_powerInfo", ['RC']) |
| The named tuple returned by the dn_setNVParameter_powerInfo() function. More... | |
| tuple | Tuple_dn_setNVParameter_ttl = collections.namedtuple("Tuple_dn_setNVParameter_ttl", ['RC']) |
| The named tuple returned by the dn_setNVParameter_ttl() function. More... | |
| tuple | Tuple_dn_setNVParameter_hartAntennaGain = collections.namedtuple("Tuple_dn_setNVParameter_hartAntennaGain", ['RC']) |
| The named tuple returned by the dn_setNVParameter_hartAntennaGain() function. More... | |
| tuple | Tuple_dn_setNVParameter_OTAPlockout = collections.namedtuple("Tuple_dn_setNVParameter_OTAPlockout", ['RC']) |
| The named tuple returned by the dn_setNVParameter_OTAPlockout() function. More... | |
| tuple | Tuple_dn_setNVParameter_hrCounterMode = collections.namedtuple("Tuple_dn_setNVParameter_hrCounterMode", ['RC']) |
| The named tuple returned by the dn_setNVParameter_hrCounterMode() function. More... | |
| tuple | Tuple_dn_setNVParameter_autojoin = collections.namedtuple("Tuple_dn_setNVParameter_autojoin", ['RC', 'nvParamId']) |
| The named tuple returned by the dn_setNVParameter_autojoin() function. More... | |
| tuple | Tuple_dn_setNVParameter_hartCompliantMode = collections.namedtuple("Tuple_dn_setNVParameter_hartCompliantMode", ['RC']) |
| The named tuple returned by the dn_setNVParameter_hartCompliantMode() function. More... | |
| tuple | Tuple_dn_setNVParameter_lock = collections.namedtuple("Tuple_dn_setNVParameter_lock", ['RC']) |
| The named tuple returned by the dn_setNVParameter_lock() function. More... | |
| tuple | Tuple_dn_setNVParameter_euCompliantMode = collections.namedtuple("Tuple_dn_setNVParameter_euCompliantMode", ['RC']) |
| The named tuple returned by the dn_setNVParameter_euCompliantMode() function. More... | |
| tuple | Tuple_dn_getNVParameter_macAddress = collections.namedtuple("Tuple_dn_getNVParameter_macAddress", ['RC', 'macAddr']) |
| The named tuple returned by the dn_getNVParameter_macAddress() function. More... | |
| tuple | Tuple_dn_getNVParameter_networkId = collections.namedtuple("Tuple_dn_getNVParameter_networkId", ['RC', 'networkId']) |
| The named tuple returned by the dn_getNVParameter_networkId() function. More... | |
| tuple | Tuple_dn_getNVParameter_txPower = collections.namedtuple("Tuple_dn_getNVParameter_txPower", ['RC', 'txPower']) |
| The named tuple returned by the dn_getNVParameter_txPower() function. More... | |
| tuple | Tuple_dn_getNVParameter_powerInfo = collections.namedtuple("Tuple_dn_getNVParameter_powerInfo", ['RC', 'powerSource', 'dischargeCur', 'dischargeTime', 'recoverTime']) |
| The named tuple returned by the dn_getNVParameter_powerInfo() function. More... | |
| tuple | Tuple_dn_getNVParameter_ttl = collections.namedtuple("Tuple_dn_getNVParameter_ttl", ['RC', 'timeToLive']) |
| The named tuple returned by the dn_getNVParameter_ttl() function. More... | |
| tuple | Tuple_dn_getNVParameter_HARTantennaGain = collections.namedtuple("Tuple_dn_getNVParameter_HARTantennaGain", ['RC', 'antennaGain']) |
| The named tuple returned by the dn_getNVParameter_HARTantennaGain() function. More... | |
| tuple | Tuple_dn_getNVParameter_OTAPlockout = collections.namedtuple("Tuple_dn_getNVParameter_OTAPlockout", ['RC', 'otapLockout']) |
| The named tuple returned by the dn_getNVParameter_OTAPlockout() function. More... | |
| tuple | Tuple_dn_getNVParameter_hrCounterMode = collections.namedtuple("Tuple_dn_getNVParameter_hrCounterMode", ['RC', 'hrCounterMode']) |
| The named tuple returned by the dn_getNVParameter_hrCounterMode() function. More... | |
| tuple | Tuple_dn_getNVParameter_autojoin = collections.namedtuple("Tuple_dn_getNVParameter_autojoin", ['RC', 'nvParamId', 'autojoin']) |
| The named tuple returned by the dn_getNVParameter_autojoin() function. More... | |
| tuple | Tuple_dn_getNVParameter_hartCompliantMode = collections.namedtuple("Tuple_dn_getNVParameter_hartCompliantMode", ['RC', 'hartCompliantMode']) |
| The named tuple returned by the dn_getNVParameter_hartCompliantMode() function. More... | |
| tuple | Tuple_dn_getNVParameter_lock = collections.namedtuple("Tuple_dn_getNVParameter_lock", ['RC', 'code', 'master']) |
| The named tuple returned by the dn_getNVParameter_lock() function. More... | |
| tuple | Tuple_dn_getNVParameter_euCompliantMode = collections.namedtuple("Tuple_dn_getNVParameter_euCompliantMode", ['RC', 'euCompliantMode']) |
| The named tuple returned by the dn_getNVParameter_euCompliantMode() function. More... | |
| tuple | Tuple_dn_send = collections.namedtuple("Tuple_dn_send", ['RC']) |
| The named tuple returned by the dn_send() function. More... | |
| tuple | Tuple_dn_join = collections.namedtuple("Tuple_dn_join", ['RC']) |
| The named tuple returned by the dn_join() function. More... | |
| tuple | Tuple_dn_disconnect = collections.namedtuple("Tuple_dn_disconnect", ['RC']) |
| The named tuple returned by the dn_disconnect() function. More... | |
| tuple | Tuple_dn_reset = collections.namedtuple("Tuple_dn_reset", ['RC']) |
| The named tuple returned by the dn_reset() function. More... | |
| tuple | Tuple_dn_lowPowerSleep = collections.namedtuple("Tuple_dn_lowPowerSleep", ['RC']) |
| The named tuple returned by the dn_lowPowerSleep() function. More... | |
| tuple | Tuple_dn_hartPayload = collections.namedtuple("Tuple_dn_hartPayload", ['RC', 'payloadLen', 'payload']) |
| The named tuple returned by the dn_hartPayload() function. More... | |
| tuple | Tuple_dn_testRadioTx = collections.namedtuple("Tuple_dn_testRadioTx", ['RC']) |
| The named tuple returned by the dn_testRadioTx() function. More... | |
| tuple | Tuple_dn_testRadioRx = collections.namedtuple("Tuple_dn_testRadioRx", ['RC']) |
| The named tuple returned by the dn_testRadioRx() function. More... | |
| tuple | Tuple_dn_clearNV = collections.namedtuple("Tuple_dn_clearNV", ['RC']) |
| The named tuple returned by the dn_clearNV() function. More... | |
| tuple | Tuple_dn_search = collections.namedtuple("Tuple_dn_search", ['RC']) |
| The named tuple returned by the dn_search() function. More... | |
| tuple | Tuple_dn_testRadioTxExt = collections.namedtuple("Tuple_dn_testRadioTxExt", ['RC']) |
| The named tuple returned by the dn_testRadioTxExt() function. More... | |
| tuple | Tuple_dn_testRadioRxExt = collections.namedtuple("Tuple_dn_testRadioRxExt", ['RC']) |
| The named tuple returned by the dn_testRadioRxExt() function. More... | |
| tuple | Tuple_dn_zeroize = collections.namedtuple("Tuple_dn_zeroize", ['RC']) |
| The named tuple returned by the dn_zeroize() function. More... | |
| tuple | Tuple_dn_fileWrite = collections.namedtuple("Tuple_dn_fileWrite", ['RC', 'length']) |
| The named tuple returned by the dn_fileWrite() function. More... | |
| tuple | Tuple_dn_fileRead = collections.namedtuple("Tuple_dn_fileRead", ['RC', 'descriptor', 'offset', 'length', 'data']) |
| The named tuple returned by the dn_fileRead() function. More... | |
| tuple | Tuple_dn_fileOpen = collections.namedtuple("Tuple_dn_fileOpen", ['RC', 'descriptor']) |
| The named tuple returned by the dn_fileOpen() function. More... | |
| dictionary | notifTupleTable = {} |
| Dictionary of all notification tuples. More... | |
| string | TIMEINDICATION = "timeIndication" |
| TIMEINDICATION notification. More... | |
| string | SERVICEINDICATION = "serviceIndication" |
| SERVICEINDICATION notification. More... | |
| string | EVENTS = "events" |
| EVENTS notification. More... | |
| string | DATARECEIVED = "dataReceived" |
| DATARECEIVED notification. More... | |
| string | ADVRECEIVED = "advReceived" |
| ADVRECEIVED notification. More... | |
| string | SUSPENDSTARTED = "suspendStarted" |
| SUSPENDSTARTED notification. More... | |
Public class for the HART Mote connector, over Serial.
| def SmartMeshSDK.HartMoteConnector.HartMoteConnector.HartMoteConnector.dn_clearNV | ( | self | ) |
The clearNV command resets the motes Non-Volatile (NV) memory to its factory-default state.
Refer to the WirelessHART User Guide for table of default values. Note that since this command clears the mote's security join counter, the corresponding manager's Access Control List (ACL) entry may need to be cleared as well to allow joining.
| def SmartMeshSDK.HartMoteConnector.HartMoteConnector.HartMoteConnector.dn_disconnect | ( | self | ) |
The disconnect command requests that the mote disconnect from the network.
The mote will send an indication to its network neighbors that it is about to become unavailable. Just after the mote disconnects, it sends the microprocessor an events packet with the disconnected bit set, indicating it will reset. This command is only valid in when the mote is in the Connected or Operational state (see Mote State).
The OEM microprocessor should disconnect from the network if the device is going to power down, reset, or otherwise be unavailable for a long period.
A mote will reset itself after having sent the disconnect notification to the OEM microprocessor. The microprocessor should wait to acknowledge the boot event before shutting down.
| def SmartMeshSDK.HartMoteConnector.HartMoteConnector.HartMoteConnector.dn_fileOpen | ( | self, | |
| name, | |||
| options, | |||
| size, | |||
| mode | |||
| ) |
The fileOpen command may be used to open the scratchpad file in the mote filesystem.
| name | 12-byte field formatted as a hex. There is no restriction on the value of this field. |
| options | 1-byte field formatted as a int. This field can only take one of the following values:
|
| size | 2-byte field formatted as a int. There is no restriction on the value of this field. |
| mode | 1-byte field formatted as a int. This field can only take one of the following values:
|
| def SmartMeshSDK.HartMoteConnector.HartMoteConnector.HartMoteConnector.dn_fileRead | ( | self, | |
| descriptor, | |||
| offset, | |||
| length | |||
| ) |
The fileRead command may be used to read data stored in the scratchpad file in the mote filesystem.
The size of the data read is limited by the size of a serial API transaction.
| descriptor | 4-byte field formatted as a ints. There is no restriction on the value of this field. |
| offset | 2-byte field formatted as a int. There is no restriction on the value of this field. |
| length | 1-byte field formatted as a int. There is no restriction on the value of this field. |
| def SmartMeshSDK.HartMoteConnector.HartMoteConnector.HartMoteConnector.dn_fileWrite | ( | self, | |
| descriptor, | |||
| offset, | |||
| length, | |||
| data | |||
| ) |
The fileWrite command may be used to read data stored in the scratchpad file in the mote filesystem.
The size of the data read is limited by the size of a serial API transaction.
| descriptor | 4-byte field formatted as a ints. There is no restriction on the value of this field. |
| offset | 2-byte field formatted as a int. There is no restriction on the value of this field. |
| length | 1-byte field formatted as a int. There is no restriction on the value of this field. |
| data | None-byte field formatted as a hex. There is no restriction on the value of this field. |
| def SmartMeshSDK.HartMoteConnector.HartMoteConnector.HartMoteConnector.dn_getNVParameter_autojoin | ( | self, | |
| reserved, | |||
| nvParamId | |||
| ) |
The getNVParameter<autojoin> command returns the autojoin status stored in mote's persistent storage (i.e.
set with setNVParameter<autojoin>). Autojoin can be used to cause a mote in slave mode to join on its own when booted.
| reserved | 4-byte field formatted as a int. There is no restriction on the value of this field. |
| nvParamId | 1-byte field formatted as a int. There is no restriction on the value of this field. |
| def SmartMeshSDK.HartMoteConnector.HartMoteConnector.HartMoteConnector.dn_getNVParameter_euCompliantMode | ( | self | ) |
The getNVParameter<euCompliantMode> command may be used to retrieve the EN 300 328 compliance mode that is used by devices.
When enabled, the mote may skip some transmit opportunities to remain within average power limits. Motes below +10 dBm radiated power do not need to duty cycle to meet EN 300 328 requirements.
Note: This parameter is available in devices running mote software >=1.2.x
| def SmartMeshSDK.HartMoteConnector.HartMoteConnector.HartMoteConnector.dn_getNVParameter_HARTantennaGain | ( | self | ) |
The getNVParameter<HARTantennaGain> command reads the antenna gain value from the mote's persistent storage.
This value is added to conducted output power of the Dust mote when replying to HART command 797 (Write Radio Power Output) and to HART command 798 (Read Radio Output Power).
| def SmartMeshSDK.HartMoteConnector.HartMoteConnector.HartMoteConnector.dn_getNVParameter_hartCompliantMode | ( | self | ) |
The getNVParameter<hartCompliantMode> command may be used to retrieve the HART compliance mode that is used by devices.This mode controls strict compliance to HART specification requirements, specifically:
Note: This parameter is available in devices running mote software >= 1.1.0
| def SmartMeshSDK.HartMoteConnector.HartMoteConnector.HartMoteConnector.dn_getNVParameter_hrCounterMode | ( | self | ) |
The getNVParameter<hrCounterMode> command may be used to retrieve the health report counter mode that is used by devices.
This mode controls how the mote deals with statistics counters when they reach their maximum value.
Note: This parameter is available in devices running mote software >=1.1.0
| def SmartMeshSDK.HartMoteConnector.HartMoteConnector.HartMoteConnector.dn_getNVParameter_lock | ( | self | ) |
The getNVParameter < lock > command returns the persisted lock code and locking master (those to be used after reset).
To determine the current lock status, use the getParameter<lock> command.Note: This parameter is available in devices running mote software >= 1.1.0
| def SmartMeshSDK.HartMoteConnector.HartMoteConnector.HartMoteConnector.dn_getNVParameter_macAddress | ( | self | ) |
The getNVParameter<macAddress> command returns the MAC address stored in mote's persistent storage (i.e.
set with setNVParameter<macAddress>).
This command returns<PHONE_NUMBER>000000 if the macAddress has not been set previously - the mote will use its hardware MAC in this case, but it is not displayed with this command.
| def SmartMeshSDK.HartMoteConnector.HartMoteConnector.HartMoteConnector.dn_getNVParameter_networkId | ( | self | ) |
The getNVParameter<networkId> command returns the Network ID stored in mote's persistent storage.
| def SmartMeshSDK.HartMoteConnector.HartMoteConnector.HartMoteConnector.dn_getNVParameter_OTAPlockout | ( | self | ) |
The getNVParameter<OTAPlockout> command reads the OTAP lockout setting from the motes persistent storage.
OTAP lockout specifies whether the mote can be Over-The-Air-Programmed (OTAP).
| def SmartMeshSDK.HartMoteConnector.HartMoteConnector.HartMoteConnector.dn_getNVParameter_powerInfo | ( | self | ) |
The getNVParameter<powerInfo> command returns the power supply information stored in mote's persistent storage.
| def SmartMeshSDK.HartMoteConnector.HartMoteConnector.HartMoteConnector.dn_getNVParameter_ttl | ( | self | ) |
The getNVParameter<ttl> command reads the Time To Live parameter from the mote's persistent storage.
Time To Live is used when the mote sends a packet into the network, and specifies the maximum number of hops the packet may traverse before it is discarded from the network.
| def SmartMeshSDK.HartMoteConnector.HartMoteConnector.HartMoteConnector.dn_getNVParameter_txPower | ( | self | ) |
The getNVParameter<txPower> command returns the transmit power value stored in mote's persistent storage.
| def SmartMeshSDK.HartMoteConnector.HartMoteConnector.HartMoteConnector.dn_getParameter_charge | ( | self | ) |
The getParameter<charge> command retrieves estimated charge consumption of the mote since the last reset, as well as the mote uptime and last measured temperature.
| def SmartMeshSDK.HartMoteConnector.HartMoteConnector.HartMoteConnector.dn_getParameter_joinDutyCycle | ( | self | ) |
The getParameter<joinDutyCycle> command return mote's join duty cycle, which determines the percentage of time the mote spends in radio receive mode while searching for network.
The value of join duty cycle is expressed in increments of 1/255th of 100%, where 0 corresponds to 0% and 255 corresponds to 100%.
| def SmartMeshSDK.HartMoteConnector.HartMoteConnector.HartMoteConnector.dn_getParameter_lock | ( | self | ) |
The getParameter<lock> command returns the current (RAM resident) lock code and locking master.
To determine what the lock status will be after reset, use the getNVParameter<lock> command.Note: This parameter is available in devices running mote software >= 1.1.0
| def SmartMeshSDK.HartMoteConnector.HartMoteConnector.HartMoteConnector.dn_getParameter_moteInfo | ( | self | ) |
The getParameter<moteInfo> command returns static information about the motes hardware and software.
Note that network state-related information about the mote may be retrieved using getParameter<networkInfo>.
| def SmartMeshSDK.HartMoteConnector.HartMoteConnector.HartMoteConnector.dn_getParameter_moteStatus | ( | self | ) |
The getParameter<moteStatus> command is used to retrieve the mote's state and frequently changing information.
Note that static information about the state of the mote hardware and software may be retrieved using getParameter<moteInfo>.
| def SmartMeshSDK.HartMoteConnector.HartMoteConnector.HartMoteConnector.dn_getParameter_networkInfo | ( | self | ) |
The getParameter<networkInfo> command may be used to retrieve the mote's network-related parameters.
Note that static information about the motes hardware and software may be retrieved using getParameter<moteInfo>.
| def SmartMeshSDK.HartMoteConnector.HartMoteConnector.HartMoteConnector.dn_getParameter_service | ( | self, | |
| serviceId | |||
| ) |
The getParameter<service> command retrieves information about the service allocation that is currently available to the field device.
Services (now called "Timetables" in WirelessHART 7.4) in the range 0x00-7F are those requested by the device, and those in the range 0x80-FF are assigned independently by the network manager.
| serviceId | 1-byte field formatted as a int. There is no restriction on the value of this field. |
| def SmartMeshSDK.HartMoteConnector.HartMoteConnector.HartMoteConnector.dn_getParameter_testRadioRxStats | ( | self | ) |
The getParameter<testRadioRxStats> command retrieves statistics for the latest radio reception test performed using the testRadioRx command.
The statistics show the number of good and bad packets (CRC failures) received during the test.
| def SmartMeshSDK.HartMoteConnector.HartMoteConnector.HartMoteConnector.dn_getParameter_time | ( | self | ) |
The getParameter<time> command is used to request the current time on the mote.
| def SmartMeshSDK.HartMoteConnector.HartMoteConnector.HartMoteConnector.dn_hartPayload | ( | self, | |
| payloadLen, | |||
| payload | |||
| ) |
The hartPayload command allows the microprocessor to forward a HART payload to the mote.
The format of the command must be as follows
16-bit command number | data length | data
The reply (if any) will be in the form of a HART response and sent in the payload of the acknowledgement. The RC_INVALID_VALUE response means that the hartPayload command was given a HART command that the mote does not terminate.
| payloadLen | 1-byte field formatted as a int. There is no restriction on the value of this field. |
| payload | None-byte field formatted as a hex. There is no restriction on the value of this field. |
| def SmartMeshSDK.HartMoteConnector.HartMoteConnector.HartMoteConnector.dn_join | ( | self | ) |
The join command requests that a mote start searching for the network and attempt to join.
The mote must be in the Idle state or the Promiscuous Listen state (see search) for this command to be valid. The join time is partly determined by the join duty cycle. For guidance on setting the join duty cycle, see setParameter<joinDutyCycle>.
| def SmartMeshSDK.HartMoteConnector.HartMoteConnector.HartMoteConnector.dn_lowPowerSleep | ( | self | ) |
The lowPowerSleep command shuts down all peripherals and places the mote in deep sleep mode.
The lowPowerSleep command may be issued at any time and will cause the mote to interrupt all in-progress network operation. The command executes after the mote sends its response. The mote enters deep sleep within two seconds after the command executes.
The OEM microprocessor should put the mote into low power sleep when the mote needs to be offline for an extended period of time. In most cases, this will result in a lower current state of the mote than simply asserting /RST without putting the mote in low power sleep. To achieve a graceful disconnect, use the disconnect command before using the lowPowerSleep command. The mote can only be awakened from low power sleep by asserting a non-maskable interrupt, such as the /RST control line. For power consumption information, refer to the mote product datasheet.
| def SmartMeshSDK.HartMoteConnector.HartMoteConnector.HartMoteConnector.dn_reset | ( | self | ) |
Upon receiving this command, the mote resets itself after a short delay.
The mote will always send a response packet before initiating the reset. To force the mote to gracefully leave the network, use the disconnect command.
| def SmartMeshSDK.HartMoteConnector.HartMoteConnector.HartMoteConnector.dn_search | ( | self | ) |
The search command causes the mote to listen for network advertisements and notify the microprocessor about each advertisement it hears.
This is referred to as the Promiscuous Listen state. Notifications are sent using the advReceived notification. The search command may only be issued prior to join. The mote stays in listen mode until the join command is received or the mote is reset.
| def SmartMeshSDK.HartMoteConnector.HartMoteConnector.HartMoteConnector.dn_send | ( | self, | |
| tranType, | |||
| tranDir, | |||
| destAddr, | |||
| serviceId, | |||
| appDomain, | |||
| priority, | |||
| reserved, | |||
| seqNum, | |||
| payloadLen, | |||
| payload | |||
| ) |
The send command allows a serial device to send a packet into the network through the mote's serial port.
The mote forwards the packet to the network upon receiving it. The microprocessor must not attempt to send data at a rate that exceeds its allocated bandwidth. For a WirelessHART device, the payload of the packet must include the status byte and the extended status byte, followed by one or more sets of HART commands up to the maximum send payload size, as follows:
Request: Status|Extended Status|Cmd1|Length1|Data1|Cmd2|Length2|Data2... Response: Status|Extended Status|Cmd1|Length1(includes response code)|RC1|Data1|Cmd2|Length2|RC2|Data2...
Prior to sending the payload into the network, the mote caches the value of Status and Extended Status to use in packets it originates locally. The send command is only valid when the mote is in the Operational state. If the mote receives this command when it is not in the Operational state, it returns the error RC_INV_STATE. Note: The serial device can receive a request while the mote is in the process of transition from the Connected state to the Operational state.
| tranType | 1-byte field formatted as a bool. This field can only take one of the following values:
|
| tranDir | 1-byte field formatted as a bool. This field can only take one of the following values:
|
| destAddr | 2-byte field formatted as a hex. There is no restriction on the value of this field. |
| serviceId | 1-byte field formatted as a int. There is no restriction on the value of this field. |
| appDomain | 1-byte field formatted as a int. This field can only take one of the following values:
|
| priority | 1-byte field formatted as a int. This field can only take one of the following values:
|
| reserved | 2-byte field formatted as a int. There is no restriction on the value of this field. |
| seqNum | 1-byte field formatted as a int. There is no restriction on the value of this field. |
| payloadLen | 1-byte field formatted as a int. There is no restriction on the value of this field. |
| payload | None-byte field formatted as a hex. There is no restriction on the value of this field. |
| def SmartMeshSDK.HartMoteConnector.HartMoteConnector.HartMoteConnector.dn_setNVParameter_autojoin | ( | self, | |
| reserved, | |||
| nvParamId, | |||
| autojoin | |||
| ) |
The setNVParameter<autojoin> command allows the microprocessor to change between automatic and manual joining by the mote's networking stack.
In manual mode, an explicit join command from the application is required to initiate joining. This setting is persistent and takes effect after mote reset. (Available Mote >= 1.1) Note that auto join mode must not be set if the application is also configured to join (e.g combining 'auto join' with 'master' mode will result in mote not joining).
| reserved | 4-byte field formatted as a int. There is no restriction on the value of this field. |
| nvParamId | 1-byte field formatted as a int. There is no restriction on the value of this field. |
| autojoin | 1-byte field formatted as a int. There is no restriction on the value of this field. |
| def SmartMeshSDK.HartMoteConnector.HartMoteConnector.HartMoteConnector.dn_setNVParameter_euCompliantMode | ( | self, | |
| euCompliantMode | |||
| ) |
The setNVParameter<euCompliantMode> command may be used to enforce EN 300 328 duty cycle limits based on output power.
This may cause the mote to skip some transmit opportunities to remain within average power limits. Motes below +10 dBm radiated power do not need to duty cycle to meet EN 300 328 requirements.
Note: This parameter is available in version>=1.2.x
| euCompliantMode | 1-byte field formatted as a int. There is no restriction on the value of this field. |
| def SmartMeshSDK.HartMoteConnector.HartMoteConnector.HartMoteConnector.dn_setNVParameter_hartAntennaGain | ( | self, | |
| antennaGain | |||
| ) |
The setNVParameter<hartAntennaGain> command stores value of the antenna gain in the mote's persistent storage.This value is added to the conducted output power of the mote when replying to HART command 797 (Write Radio Power Output) and to HART command 798 (Read Radio Output Power).
The antenna gain should take into account both the gain of the antenna and any loss (for example, attenuation from a long coax cable) between the mote and the antenna. By default, this value is 2, assuming a +2 dBi antenna gain. To change the transmit power immediately, use the write RAM option of this command.
| antennaGain | 1-byte field formatted as a ints. There is no restriction on the value of this field. |
| def SmartMeshSDK.HartMoteConnector.HartMoteConnector.HartMoteConnector.dn_setNVParameter_hartCompliantMode | ( | self, | |
| hartCompliantMode | |||
| ) |
The setNVParameter<hartCompliantMode> command may be used to force strict compliance to HART specification requirements, specifically:
Note: This parameter is referred to as compliantMode in documentation for versions 1.1.x, and hartCompliantMode in >=1.2.x, but the parameter ID is the same in both versions. The corresponding CLI command is called mset compliantMode in 1.1.x, and mset hartCompliantMode in >=1.2.x
| hartCompliantMode | 1-byte field formatted as a int. There is no restriction on the value of this field. |
| def SmartMeshSDK.HartMoteConnector.HartMoteConnector.HartMoteConnector.dn_setNVParameter_hrCounterMode | ( | self, | |
| hrCounterMode | |||
| ) |
The setNVParameter<hrCounterMode> command may be used to control how the mote increments statistics counters reported via HART health reports.
The two options are "saturating" (i.e. stop counting at maximum value) and "rollover" (i.e. continue counting through rollover). The default value of "saturating" is required for compatibility with Dust Wireless HART managers. This parameter takes effect upon mote reset.
Note: This parameter is available in devices running mote software >=1.1.0
| hrCounterMode | 1-byte field formatted as a int. This field can only take one of the following values:
|
| def SmartMeshSDK.HartMoteConnector.HartMoteConnector.HartMoteConnector.dn_setNVParameter_joinKey | ( | self, | |
| joinKey | |||
| ) |
The setNVParameter<joinKey> command may be used to set the join key.
Upon receiving this request, the mote stores the new join key in its persistent storage. Using the write RAM option will only have an effect if the command is called while the mote is in Idle state. Otherwise, the new value will be used after the next mote boot.
| joinKey | 16-byte field formatted as a hex. There is no restriction on the value of this field. |
| def SmartMeshSDK.HartMoteConnector.HartMoteConnector.HartMoteConnector.dn_setNVParameter_lock | ( | self, | |
| code, | |||
| master | |||
| ) |
The setNVParameter<lock> command persistently locks/unlocks select HART commands (ones that affect the configuration changed flag) to a specific master (GW or serial maintenance port) to prevent the other master from changing it.
This command is intended for use when the lock persists through power cycle or reset. For temporary locking, use the setParameter<lock> command. Bit 7 in the flags field of the API header (see Packet Format) should be set (store in NV & RAM) when calling this command.Note: This parameter is available in devices running mote software >= 1.1.0
| code | 1-byte field formatted as a int. There is no restriction on the value of this field. |
| master | 2-byte field formatted as a int. There is no restriction on the value of this field. |
| def SmartMeshSDK.HartMoteConnector.HartMoteConnector.HartMoteConnector.dn_setNVParameter_macAddress | ( | self, | |
| macAddr | |||
| ) |
The setNVParameter<macAddress> command may be used to supersede the factory-configured MAC address of the mote.
| macAddr | 8-byte field formatted as a hex. There is no restriction on the value of this field. |
| def SmartMeshSDK.HartMoteConnector.HartMoteConnector.HartMoteConnector.dn_setNVParameter_networkId | ( | self, | |
| networkId | |||
| ) |
The setNVParameter<networkId> command may be used to set the persistent Network ID of the mote.
The networkId is used to separate networks, and can be set during manufacturing or in the field.The mote reads this value from persistent storage at boot time. Note: while the mote is in Idle state, it is possible to update the value of mote's in-RAM Network ID by using the RAM flag in the header of this command. This avoids the extra reset that is needed to start using the Network ID. Network ID can also be set over the air using HART command 773 in a WirelessHART-compliant network.
As of version 1.1.1, a network ID of 0xFFFF can be used to indicate that the mote should join the first network heard.
0xFFFF is never used over the air as a valid HART network ID - do not set the Manager's network ID to 0xFFFF.
| networkId | 2-byte field formatted as a int. There is no restriction on the value of this field. |
| def SmartMeshSDK.HartMoteConnector.HartMoteConnector.HartMoteConnector.dn_setNVParameter_OTAPlockout | ( | self, | |
| otapLockout | |||
| ) |
The setNVParameter<OTAPlockout> command specifies whether the mote's firmware can be updated over the air.
Over-The-Air-Programming (OTAP) is allowed by default. The mote reads the OTAPlockout value from persistent storage at boot time. To change the value used currently, this command may be issued with RAM option.
Dust Networks recommends that OEMs allow their devices to receive firmware updates, either by leaving the OTAPlockout parameter at its default value, or by making OTAPlockout settable using a WirelessHART command that is available both over the air and through its wired maintenance port. OEMs have the option of making such a command password protected.
| otapLockout | 1-byte field formatted as a int. This field can only take one of the following values:
|
| def SmartMeshSDK.HartMoteConnector.HartMoteConnector.HartMoteConnector.dn_setNVParameter_powerInfo | ( | self, | |
| powerSource, | |||
| dischargeCur, | |||
| dischargeTime, | |||
| recoverTime | |||
| ) |
The setNVParameter<powerInfo> command specifies the average current that is available to the mote.
Using the write RAM option will only have an effect if the command is called while the mote is in Idle state. Otherwise, the new value will be used after the next mote boot.
| powerSource | 1-byte field formatted as a int. This field can only take one of the following values:
|
| dischargeCur | 2-byte field formatted as a int. There is no restriction on the value of this field. |
| dischargeTime | 4-byte field formatted as a int. There is no restriction on the value of this field. |
| recoverTime | 4-byte field formatted as a int. There is no restriction on the value of this field. |
| def SmartMeshSDK.HartMoteConnector.HartMoteConnector.HartMoteConnector.dn_setNVParameter_ttl | ( | self, | |
| timeToLive | |||
| ) |
The setNVParameter<ttl> command sets the mote's persistent packet Time To Live (TTL) value.
TTL specifies the maximum number of hops a packet may traverse before it is discarded from the network. A mote sets the initial value of the TTL field in the packets it generates to this value.The mote reads the value from persistent storage at boot time. To change the TTL used currently, this command may be issued with the RAM option.
The mote defaults TTL to 127. For compliant devices, the HART specification currently defaults to 32, but this will change to 249 in spec version 7.4, as will the mote default. We suggest not changing the mote default unless HART specifically raises it as a compliance issue when you submit your device for testing.
| timeToLive | 1-byte field formatted as a int. There is no restriction on the value of this field. |
| def SmartMeshSDK.HartMoteConnector.HartMoteConnector.HartMoteConnector.dn_setNVParameter_txPower | ( | self, | |
| txPower | |||
| ) |
The setNVParameter<txPower> command sets the mote output power.
Refer to product datasheets for supported RF output power values. For example, if the mote has a typical RF output power of +8 dBm when the Power Amplifier (PA) is enabled, then set the txPower parameter to 8 to enable the PA. Similarly, if the mote has a typical RF output power of -2 dBm when the PA is disabled, then set the txPower parameter to -2 to turn off the PA. This command may be issued at any time and takes effect at the next mote boot. To change the transmit power immediately, use the write RAM option of this command, which can also be used at any time.
| txPower | 1-byte field formatted as a ints. There is no restriction on the value of this field. |
| def SmartMeshSDK.HartMoteConnector.HartMoteConnector.HartMoteConnector.dn_setParameter_batteryLife | ( | self, | |
| batteryLife, | |||
| powerStatus | |||
| ) |
The setParameter<batteryLife> command allows the microprocessor to update the remaining battery life information that the mote reports to WirelessHART Gateway in Command 778.
This parameter must be set during the Idle state prior to joining, and should be updated periodically throughout operation.This parameter is only used in WirelessHART-compliant devices.
Command 778 is deprecated in version 7.4 of the HART specification as most existing gateways do not use battery life information.
| batteryLife | 2-byte field formatted as a int. There is no restriction on the value of this field. |
| powerStatus | 1-byte field formatted as a int. This field can only take one of the following values:
|
| def SmartMeshSDK.HartMoteConnector.HartMoteConnector.HartMoteConnector.dn_setParameter_eventMask | ( | self, | |
| eventMask | |||
| ) |
The setParameter<eventMask> command allows the microprocessor to subscribe to the types of events that may be sent in the motes events notification message.
This command may be called at any time and takes effect at the next event notification. The mote includes an event in the notification message if the corresponding bit in <eventMask> is set to 1, and excludes the event if the bit is set to 0. At mote reset, the default value of <eventMask> is 1 for all events.
New event type may be added in future revisions of mote software. It is recommended that the client code only subscribe to known events and gracefully ignore all unknown events.
| eventMask | 4-byte field formatted as a int. There is no restriction on the value of this field. |
| def SmartMeshSDK.HartMoteConnector.HartMoteConnector.HartMoteConnector.dn_setParameter_hartDeviceInfo | ( | self, | |
| hartCmd0, | |||
| hartCmd20 | |||
| ) |
The setParameter<hartDeviceInfo> command is used to set HART device information that the mote passes to gateway during join.
This command must be issued prior to join. This command is only required for WirelessHART-compliant devices.Note that the contents of this command are not validated by mote.
| hartCmd0 | 22-byte field formatted as a hex. There is no restriction on the value of this field. |
| hartCmd20 | 32-byte field formatted as a hex. There is no restriction on the value of this field. |
| def SmartMeshSDK.HartMoteConnector.HartMoteConnector.HartMoteConnector.dn_setParameter_hartDeviceStatus | ( | self, | |
| hartDevStatus | |||
| ) |
The setParameter<hartDeviceStatus> command sets the current status of a WirelessHART device.
The value passed in this parameter is used in all subsequent WirelessHART communications between the mote and the manager. This command is only required for WirelessHART-compliant devices. Refer to the HART Command Specifications for the appropriate value to use.
| hartDevStatus | 1-byte field formatted as a int. There is no restriction on the value of this field. |
| def SmartMeshSDK.HartMoteConnector.HartMoteConnector.HartMoteConnector.dn_setParameter_joinDutyCycle | ( | self, | |
| dutyCycle | |||
| ) |
The setParameter<joinDutyCycle> command allows the microprocessor to control the join duty cycle the ratio of active listen time to doze time (a low-power radio state) during the period when the mote is searching for the network.
The default duty cycle enables the mote to join the network at a reasonable rate without using excessive battery power. If you desire a faster join time at the cost of higher power consumption, use the setParameter<joinDutyCycle> command to increase the join duty cycle up to 100%. Note that the setParameter<joinDutyCycle> command is not persistent and stays in effect only until reset. For power consumption information, refer to the mote product datasheet.
This command may be issued multiple times during the joining process. This command is only effective when the mote is in the Idle and Searching states.
| dutyCycle | 1-byte field formatted as a int. There is no restriction on the value of this field. |
| def SmartMeshSDK.HartMoteConnector.HartMoteConnector.HartMoteConnector.dn_setParameter_lock | ( | self, | |
| code, | |||
| master | |||
| ) |
The setParameter<lock> command locks/unlocks select HART commands (ones that affect the configuration changed flag) to a specific master (GW or serial maintenance port) to prevent the other master from changing it.
This command is intended for use when the lock is temporary, i.e. it does not persist through power cycle or reset. For nonvolatile locking, use the setNVParameter<lock> command.Note: This parameter is available in devices running mote software >= 1.1.0
| code | 1-byte field formatted as a int. There is no restriction on the value of this field. |
| master | 2-byte field formatted as a int. There is no restriction on the value of this field. |
| def SmartMeshSDK.HartMoteConnector.HartMoteConnector.HartMoteConnector.dn_setParameter_service | ( | self, | |
| serviceId, | |||
| serviceReqFlags, | |||
| appDomain, | |||
| destAddr, | |||
| time | |||
| ) |
The setParameter<service> command is used to request new device-originated bandwidth services and modify existing device-initiated services (now called "Timetables" in WirelessHART 7.4).Calling thiscommand updates the motes internal service table, which later initiates a request to the network manager for bandwidth allocation.
A subsequent serviceIndication notification will be sent indicating the response from the network manager. The getParameter<service> command may be used to read the service table, including the state of the service request.
The setParameter<service> command may be sent at any time. If the network manager rejects a service request, the microprocessor can try again by re-issuing the setParameter<service> command.
To delete a service, set the time field of the desired service to zero. Service request flags, application domain, and destination address are ignored by the mote when time equals zero.
Normally all service requests are compared against the power limits set with the setNVParameter<powerInfo> command. Services that would cause the device to exceed its power budget are denied.In Manager 4.1.1, a service request of 1 ms will result in the manager respecting the power limit for publish services, but will allow a block-transfer service requests (see the SmartMesh WirelessHART User's Guide section on Services)that would result in a fast pipe being activated.
| serviceId | 1-byte field formatted as a int. There is no restriction on the value of this field. |
| serviceReqFlags | 1-byte field formatted as a int. There is no restriction on the value of this field. |
| appDomain | 1-byte field formatted as a int. This field can only take one of the following values:
|
| destAddr | 2-byte field formatted as a hex. There is no restriction on the value of this field. |
| time | 4-byte field formatted as a int. There is no restriction on the value of this field. |
| def SmartMeshSDK.HartMoteConnector.HartMoteConnector.HartMoteConnector.dn_setParameter_txPower | ( | self, | |
| txPower | |||
| ) |
The setParameter<txPower> command sets the mote conducted RF output power.
Refer to product datasheets for supported RF output power values. For example, if the mote has a typical RF output power of +8 dBm when the Power Amplifier (PA) is enabled, set the txPower parameter to 8 to enable the PA. Similarly, if the mote has a typical RF output power of -2 dBm when the PA is disabled, then set the txPower parameter to -2 to turn off the PA. Note that this value is the RF output power coming out of the mote and not the radiated power coming out of the antenna. This command may be issued at any time and takes effect upon the next transmission.
| txPower | 1-byte field formatted as a ints. There is no restriction on the value of this field. |
| def SmartMeshSDK.HartMoteConnector.HartMoteConnector.HartMoteConnector.dn_setParameter_writeProtect | ( | self, | |
| writeProtect | |||
| ) |
The setParameter<writeProtect> command allows the microprocessor to enable or disable access to selected WirelessHART commands via wireless or the hartPayload command.
Refer to the SmartMesh WirelessHART User's Guide for the list of affected commands. If writeProtect is enabled and the mote receives any of these commands (either via wireless connection or via the hartPayload command), the command will have no effect, and the mote will return RC_7 (In Write Protect Mode). At mote boot, writeProtect is set to 0 (writes allowed). The current status of writeProtect may be read via the getParameter<moteStatus> command. This command is for WirelessHART-compliant devices only.
| writeProtect | 1-byte field formatted as a int. This field can only take one of the following values:
|
| def SmartMeshSDK.HartMoteConnector.HartMoteConnector.HartMoteConnector.dn_testRadioRx | ( | self, | |
| channel, | |||
| time | |||
| ) |
The testRadioRx command clears all previously collected statistics and initiates a test of radio reception for the specified channel and duration.
During the test, the mote keeps statistics about the number of packets received (with and without error). The test results may be retrieved using the getParameter<testRadioRxStats> command. The mote must be reset (either hardware or software reset) after radio tests are complete and prior to joining.
Channel numbering is 0-15, corresponding to IEEE 2.4 GHz channels 11-26.
Note: this command is deprecated and should not be used in new designs. The replacement command is testRadioRxExt.
| channel | 1-byte field formatted as a int. There is no restriction on the value of this field. |
| time | 2-byte field formatted as a int. There is no restriction on the value of this field. |
| def SmartMeshSDK.HartMoteConnector.HartMoteConnector.HartMoteConnector.dn_testRadioRxExt | ( | self, | |
| channelMask, | |||
| time, | |||
| stationId | |||
| ) |
The testRadioRxExt command clears all previously collected statistics and initiates a test of radio reception for the specified channel and duration.
During the test, the mote keeps statistics about the number of packets received (with and without error). The test results may be retrieved using the getParameter<testRadioRxStats> command.The mote must be reset (either hardware or software reset) after radio tests are complete and prior to joining.
Station ID is available in IP mote >= 1.4, and WirelessHART mote >= 1.1.2. The station ID is a user selectable value used to isolate traffic if multiple tests are running in the same radio space. It must be set to match the station ID used by the transmitter.
Channel numbering is 0-15, corresponding to IEEE 2.4 GHz channels 11-26.
| channelMask | 2-byte field formatted as a hex. There is no restriction on the value of this field. |
| time | 2-byte field formatted as a int. There is no restriction on the value of this field. |
| stationId | 1-byte field formatted as a int. There is no restriction on the value of this field. |
| def SmartMeshSDK.HartMoteConnector.HartMoteConnector.HartMoteConnector.dn_testRadioTx | ( | self, | |
| channel, | |||
| numPackets | |||
| ) |
The testRadioTx command initiates transmission over the radio.
This command may only be issued prior to the mote joining the network. While executing this command the mote sends numPackets packets. Each packet consists of a payload of up to 125 bytes, and a 2-byte 802.15.4 CRC at the end. Bytes 0 and 1 contain the packet number (in big-endian format) that increments with every packet transmitted. Bytes 2..N contain a counter (from 0..N-2) that increments with every byte inside payload. Transmissions occur on the specified channel.
If number of packets parameter is set to 0x00, the mote will generate an unmodulatedtest tone on the selected channel. The test tone can only be stopped by resetting themote.
Channel numbering is 0-15, corresponding to IEEE 2.4 GHz channels 11-26.
Note: this command is deprecated and should not be used in new designs. The replacement command is testRadioTxExt.
| channel | 1-byte field formatted as a int. There is no restriction on the value of this field. |
| numPackets | 2-byte field formatted as a int. There is no restriction on the value of this field. |
| def SmartMeshSDK.HartMoteConnector.HartMoteConnector.HartMoteConnector.dn_testRadioTxExt | ( | self, | |
| testType, | |||
| chanMask, | |||
| repeatCnt, | |||
| txPower, | |||
| seqSize, | |||
| pkLen_1, | |||
| delay_1, | |||
| pkLen_2, | |||
| delay_2, | |||
| pkLen_3, | |||
| delay_3, | |||
| pkLen_4, | |||
| delay_4, | |||
| pkLen_5, | |||
| delay_5, | |||
| pkLen_6, | |||
| delay_6, | |||
| pkLen_7, | |||
| delay_7, | |||
| pkLen_8, | |||
| delay_8, | |||
| pkLen_9, | |||
| delay_9, | |||
| pkLen_10, | |||
| delay_10, | |||
| stationId | |||
| ) |
The testRadioTxExt command allows the microprocessor to initiate a radio transmission test.
This command may only be issued prior to the mote joining the network. Three types of transmission tests are supported:
In a packet transmission test, the mote generates a repeatCnt number of packet sequences. Each sequence consists of up to 10 packets with configurable size and delays. Each packet starts with a PHY preamble (5 bytes), followed by a PHY length field (1 byte), followed by data payload of up to 125 bytes, and finally a 2-byte 802.15.4 CRC at the end. Byte 0 of the payload contains stationId of the sender. Bytes 1 and 2 contain the packet number (in big-endian format) that increments with every packet transmitted. Bytes 3..N contain a counter (from 0..N-3) that increments with every byte inside payload. Transmissions occur on the set of channels defined by chanMask , selected inpseudo-randomorder.
In a continuous modulation test, the mote generates continuous pseudo-random modulated signal, centered at the specified channel. The test is stopped by resetting the mote.
In a continuous wave test, the mote generates an unmodulated tone, centered at the specified channel. The test tone is stopped by resetting the mote.
The testRadioTxExt command may only be issued when the mote is in Idle mode, prior to its joining the network. The mote must be reset (either hardware or software reset) after radio tests are complete and prior to joining.
The station ID is a user selectable value. It is used in packet tests so that a receiver can identify packets from this device in cases where there may be multiple tests running in the same radio space. This field is not used for CM or CW tests. See testRadioRX (SmartMesh IP) or testRadioRxExt (SmartMesh WirelessHART).
Channel numbering is 0-15, corresponding to IEEE 2.4 GHz channels 11-26.
| testType | 1-byte field formatted as a int. This field can only take one of the following values:
|
| chanMask | 2-byte field formatted as a hex. There is no restriction on the value of this field. |
| repeatCnt | 2-byte field formatted as a int. There is no restriction on the value of this field. |
| txPower | 1-byte field formatted as a ints. There is no restriction on the value of this field. |
| seqSize | 1-byte field formatted as a int. This field can only take one of the following values:
|
| pkLen_1 | 1-byte field formatted as a int. There is no restriction on the value of this field. |
| delay_1 | 2-byte field formatted as a int. There is no restriction on the value of this field. |
| pkLen_2 | 1-byte field formatted as a int. There is no restriction on the value of this field. |
| delay_2 | 2-byte field formatted as a int. There is no restriction on the value of this field. |
| pkLen_3 | 1-byte field formatted as a int. There is no restriction on the value of this field. |
| delay_3 | 2-byte field formatted as a int. There is no restriction on the value of this field. |
| pkLen_4 | 1-byte field formatted as a int. There is no restriction on the value of this field. |
| delay_4 | 2-byte field formatted as a int. There is no restriction on the value of this field. |
| pkLen_5 | 1-byte field formatted as a int. There is no restriction on the value of this field. |
| delay_5 | 2-byte field formatted as a int. There is no restriction on the value of this field. |
| pkLen_6 | 1-byte field formatted as a int. There is no restriction on the value of this field. |
| delay_6 | 2-byte field formatted as a int. There is no restriction on the value of this field. |
| pkLen_7 | 1-byte field formatted as a int. There is no restriction on the value of this field. |
| delay_7 | 2-byte field formatted as a int. There is no restriction on the value of this field. |
| pkLen_8 | 1-byte field formatted as a int. There is no restriction on the value of this field. |
| delay_8 | 2-byte field formatted as a int. There is no restriction on the value of this field. |
| pkLen_9 | 1-byte field formatted as a int. There is no restriction on the value of this field. |
| delay_9 | 2-byte field formatted as a int. There is no restriction on the value of this field. |
| pkLen_10 | 1-byte field formatted as a int. There is no restriction on the value of this field. |
| delay_10 | 2-byte field formatted as a int. There is no restriction on the value of this field. |
| stationId | 1-byte field formatted as a int. There is no restriction on the value of this field. |
| def SmartMeshSDK.HartMoteConnector.HartMoteConnector.HartMoteConnector.dn_zeroize | ( | self | ) |
The zeroize (zeroise) command erases flash area that is used to store configuration parameters, such as join keys.
This command is intended to satisfy the zeroization requirement of the FIPS-140 standard. After the command executes, the mote should be reset. Available in mote >= 1.1.x
The zeroize command will render the mote inoperable. It must be re-programmed via SPI or JTAG in order to be useable.
| def SmartMeshSDK.HartMoteConnector.HartMoteConnector.HartMoteConnector.getNotification | ( | self, | |
timeoutSec = -1 |
|||
| ) |
Get a notification from the notification queue, and returns it properly formatted.
| NotificationError | if unknown notification. |
|
static |
ADVRECEIVED notification.
The advReceived notification notifies the microprocessor each time the mote receives an advertisement packet while in promiscuous listen mode. The command contains information about the advertisement, including the Network ID, Mote ID, RSSI, and join priority (hop depth). Note that advReceived notifications are sent only if the mote has been placed in listen mode using the search command (see search).
Formatted as a Tuple_advReceived named tuple. It contains the following fields:
netId
2-byte field formatted as a int.moteid
2-byte field formatted as a hex.rssi
1-byte field formatted as a ints.joinPri
1-byte field formatted as a int.
|
static |
DATARECEIVED notification.
The dataReceived notification notifies the microprocessor that a packet was received.When the microprocessor receives a reliable dataReceived request, in addition to acknowledging the request with a dataReceived response it must also respond using the send command.
Formatted as a Tuple_dataReceived named tuple. It contains the following fields:
srcAddr
2-byte field formatted as a hex.seqNum
1-byte field formatted as a int.pktLength
1-byte field formatted as a int.data
None-byte field formatted as a hex.
|
static |
EVENTS notification.
The events notification sends an event notification packet to the microprocessor informing it of new events that have occurred. The reported event is cleared from the mote when the mote receives an acknowledgement in the form of a response packet from the microprocessor.
Formatted as a Tuple_events named tuple. It contains the following fields:
events
4-byte field formatted as a int.state
1-byte field formatted as a int.moteAlarms
4-byte field formatted as a int.
|
static |
Dictionary of all notification tuples.
|
static |
SERVICEINDICATION notification.
The serviceIndication notification describes new manager-originated services (ID = 0x80-FF), or changes in existing services (ID = 0x00-7F). For more info on when the serviceIndication notification is sent and details about the individual parameters, see Bandwidth Services. If the time field contains the value 0x07FFFFFF , the manager is unable to sustain the service due to network conditions and has effectively disabled the service. The service is not removed, however, and the microprocessor can elect to either delete the service or submit a request to update the service at a future time.
Formatted as a Tuple_serviceIndication named tuple. It contains the following fields:
eventCode
1-byte field formatted as a int.netMgrCode
1-byte field formatted as a int.serviceId
1-byte field formatted as a int.serviceState
1-byte field formatted as a int.serviceFlags
1-byte field formatted as a int.appDomain
1-byte field formatted as a int.destAddr
2-byte field formatted as a hex.time
4-byte field formatted as a int.
|
static |
SUSPENDSTARTED notification.
The mote generates a suspendStarted notification when it enters the Suspended state as a result of processing Wireless HART command 972. When the suspend interval begins, the mote discontinues its radio operation and generates this notification. After the interval specified in command 972 ends, mote proceeds to reset. It is the responsibility of the attached microprocessor to re-join the network.
Formatted as a Tuple_suspendStarted named tuple. It contains the following fields:
duration
4-byte field formatted as a int.
|
static |
TIMEINDICATION notification.
The timeIndication notification applies to mote products that support a time interrupt into the mote. The time packet includes the network time and the current UTC time relative to the manager.
For LTC5800-WHM based products, driving the TIMEn pin low (assert) wakes the processor. The pin must asserted for a minimum of t strobe s. De-asserting the pin latches the time, and a timeIndication will be generated within t response ms.Refer to the LTC5800-WHM Datasheet for additional information about TIME pin usage.
The processor will remain awake and drawing current while the TIMEn pin is asserted. To avoid drawing excess current, take care to minimize the duration of the TIMEn pin being asserted past t strobe minimum.
Formatted as a Tuple_timeIndication named tuple. It contains the following fields:
utcSec
4-byte field formatted as a int.utcMicroSec
4-byte field formatted as a int.asn
5-byte field formatted as a hex.asnOffset
2-byte field formatted as a int.
|
static |
The named tuple returned by the dn_clearNV() function.
RC
: 1-byte field formatted as a int.
|
static |
The named tuple returned by the dn_disconnect() function.
RC
: 1-byte field formatted as a int.
|
static |
The named tuple returned by the dn_fileOpen() function.
RC
: 1-byte field formatted as a int.descriptor
: 4-byte field formatted as a ints.
|
static |
The named tuple returned by the dn_fileRead() function.
RC
: 1-byte field formatted as a int.descriptor
: 4-byte field formatted as a ints.offset
: 2-byte field formatted as a int.length
: 1-byte field formatted as a int.data
: None-byte field formatted as a hex.
|
static |
The named tuple returned by the dn_fileWrite() function.
RC
: 1-byte field formatted as a int.length
: 4-byte field formatted as a ints.
|
static |
The named tuple returned by the dn_getNVParameter_autojoin() function.
RC
: 1-byte field formatted as a int.nvParamId
: 1-byte field formatted as a int.autojoin
: 1-byte field formatted as a int.
|
static |
The named tuple returned by the dn_getNVParameter_euCompliantMode() function.
RC
: 1-byte field formatted as a int.euCompliantMode
: 1-byte field formatted as a int.
|
static |
The named tuple returned by the dn_getNVParameter_HARTantennaGain() function.
RC
: 1-byte field formatted as a int.antennaGain
: 1-byte field formatted as a ints.
|
static |
The named tuple returned by the dn_getNVParameter_hartCompliantMode() function.
RC
: 1-byte field formatted as a int.hartCompliantMode
: 1-byte field formatted as a int.
|
static |
The named tuple returned by the dn_getNVParameter_hrCounterMode() function.
RC
: 1-byte field formatted as a int.hrCounterMode
: 1-byte field formatted as a int.
|
static |
The named tuple returned by the dn_getNVParameter_lock() function.
RC
: 1-byte field formatted as a int.code
: 1-byte field formatted as a int.master
: 2-byte field formatted as a int.
|
static |
The named tuple returned by the dn_getNVParameter_macAddress() function.
RC
: 1-byte field formatted as a int.macAddr
: 8-byte field formatted as a hex.
|
static |
The named tuple returned by the dn_getNVParameter_networkId() function.
RC
: 1-byte field formatted as a int.networkId
: 2-byte field formatted as a int.
|
static |
The named tuple returned by the dn_getNVParameter_OTAPlockout() function.
RC
: 1-byte field formatted as a int.otapLockout
: 1-byte field formatted as a int.
|
static |
The named tuple returned by the dn_getNVParameter_powerInfo() function.
RC
: 1-byte field formatted as a int.powerSource
: 1-byte field formatted as a int.dischargeCur
: 2-byte field formatted as a int.dischargeTime
: 4-byte field formatted as a int.recoverTime
: 4-byte field formatted as a int.
|
static |
The named tuple returned by the dn_getNVParameter_ttl() function.
RC
: 1-byte field formatted as a int.timeToLive
: 1-byte field formatted as a int.
|
static |
The named tuple returned by the dn_getNVParameter_txPower() function.
RC
: 1-byte field formatted as a int.txPower
: 1-byte field formatted as a ints.
|
static |
The named tuple returned by the dn_getParameter_charge() function.
RC
: 1-byte field formatted as a int.charge
: 4-byte field formatted as a int.uptime
: 4-byte field formatted as a int.temperature
: 1-byte field formatted as a ints.fractionalTemp
: 1-byte field formatted as a int.
|
static |
The named tuple returned by the dn_getParameter_joinDutyCycle() function.
RC
: 1-byte field formatted as a int.joinDutyCycle
: 1-byte field formatted as a int.
|
static |
The named tuple returned by the dn_getParameter_lock() function.
RC
: 1-byte field formatted as a int.code
: 1-byte field formatted as a int.master
: 2-byte field formatted as a int.
|
static |
The named tuple returned by the dn_getParameter_moteInfo() function.
RC
: 1-byte field formatted as a int.apiVersion
: 1-byte field formatted as a int.serialNum
: 8-byte field formatted as a hex.hwModel
: 1-byte field formatted as a int.hwRev
: 1-byte field formatted as a int.swMajorRev
: 1-byte field formatted as a int.swMinorRev
: 1-byte field formatted as a int.swPatch
: 1-byte field formatted as a int.swBuild
: 2-byte field formatted as a int.
|
static |
The named tuple returned by the dn_getParameter_moteStatus() function.
RC
: 1-byte field formatted as a int.state
: 1-byte field formatted as a int.moteStateReason
: 1-byte field formatted as a int.changeCounter
: 2-byte field formatted as a int.numParents
: 1-byte field formatted as a int.moteAlarms
: 4-byte field formatted as a int.statusFlags
: 1-byte field formatted as a int.
|
static |
The named tuple returned by the dn_getParameter_networkInfo() function.
RC
: 1-byte field formatted as a int.macAddress
: 8-byte field formatted as a hex.moteId
: 2-byte field formatted as a int.networkId
: 2-byte field formatted as a int.
|
static |
The named tuple returned by the dn_getParameter_service() function.
RC
: 1-byte field formatted as a int.serviceId
: 1-byte field formatted as a int.serviceState
: 1-byte field formatted as a int.serviceFlags
: 1-byte field formatted as a int.appDomain
: 1-byte field formatted as a int.destAddr
: 2-byte field formatted as a hex.time
: 4-byte field formatted as a int.
|
static |
The named tuple returned by the dn_getParameter_testRadioRxStats() function.
RC
: 1-byte field formatted as a int.rxOk
: 2-byte field formatted as a int.rxFailed
: 2-byte field formatted as a int.
|
static |
The named tuple returned by the dn_getParameter_time() function.
RC
: 1-byte field formatted as a int.utcTime
: 8-byte field formatted as a hex.asn
: 5-byte field formatted as a hex.asnOffset
: 2-byte field formatted as a int.
|
static |
The named tuple returned by the dn_hartPayload() function.
RC
: 1-byte field formatted as a int.payloadLen
: 1-byte field formatted as a int.payload
: None-byte field formatted as a hex.
|
static |
The named tuple returned by the dn_join() function.
RC
: 1-byte field formatted as a int.
|
static |
The named tuple returned by the dn_lowPowerSleep() function.
RC
: 1-byte field formatted as a int.
|
static |
The named tuple returned by the dn_reset() function.
RC
: 1-byte field formatted as a int.
|
static |
The named tuple returned by the dn_search() function.
RC
: 1-byte field formatted as a int.
|
static |
The named tuple returned by the dn_send() function.
RC
: 1-byte field formatted as a int.
|
static |
The named tuple returned by the dn_setNVParameter_autojoin() function.
RC
: 1-byte field formatted as a int.nvParamId
: 1-byte field formatted as a int.
|
static |
The named tuple returned by the dn_setNVParameter_euCompliantMode() function.
RC
: 1-byte field formatted as a int.
|
static |
The named tuple returned by the dn_setNVParameter_hartAntennaGain() function.
RC
: 1-byte field formatted as a int.
|
static |
The named tuple returned by the dn_setNVParameter_hartCompliantMode() function.
RC
: 1-byte field formatted as a int.
|
static |
The named tuple returned by the dn_setNVParameter_hrCounterMode() function.
RC
: 1-byte field formatted as a int.
|
static |
The named tuple returned by the dn_setNVParameter_joinKey() function.
RC
: 1-byte field formatted as a int.
|
static |
The named tuple returned by the dn_setNVParameter_lock() function.
RC
: 1-byte field formatted as a int.
|
static |
The named tuple returned by the dn_setNVParameter_macAddress() function.
RC
: 1-byte field formatted as a int.
|
static |
The named tuple returned by the dn_setNVParameter_networkId() function.
RC
: 1-byte field formatted as a int.
|
static |
The named tuple returned by the dn_setNVParameter_OTAPlockout() function.
RC
: 1-byte field formatted as a int.
|
static |
The named tuple returned by the dn_setNVParameter_powerInfo() function.
RC
: 1-byte field formatted as a int.
|
static |
The named tuple returned by the dn_setNVParameter_ttl() function.
RC
: 1-byte field formatted as a int.
|
static |
The named tuple returned by the dn_setNVParameter_txPower() function.
RC
: 1-byte field formatted as a int.
|
static |
The named tuple returned by the dn_setParameter_batteryLife() function.
RC
: 1-byte field formatted as a int.
|
static |
The named tuple returned by the dn_setParameter_eventMask() function.
RC
: 1-byte field formatted as a int.
|
static |
The named tuple returned by the dn_setParameter_hartDeviceInfo() function.
RC
: 1-byte field formatted as a int.
|
static |
The named tuple returned by the dn_setParameter_hartDeviceStatus() function.
RC
: 1-byte field formatted as a int.
|
static |
The named tuple returned by the dn_setParameter_joinDutyCycle() function.
RC
: 1-byte field formatted as a int.
|
static |
The named tuple returned by the dn_setParameter_lock() function.
RC
: 1-byte field formatted as a int.
|
static |
The named tuple returned by the dn_setParameter_service() function.
RC
: 1-byte field formatted as a int.numServices
: 1-byte field formatted as a int.
|
static |
The named tuple returned by the dn_setParameter_txPower() function.
RC
: 1-byte field formatted as a int.
|
static |
The named tuple returned by the dn_setParameter_writeProtect() function.
RC
: 1-byte field formatted as a int.
|
static |
The named tuple returned by the dn_testRadioRx() function.
RC
: 1-byte field formatted as a int.
|
static |
The named tuple returned by the dn_testRadioRxExt() function.
RC
: 1-byte field formatted as a int.
|
static |
The named tuple returned by the dn_testRadioTx() function.
RC
: 1-byte field formatted as a int.
|
static |
The named tuple returned by the dn_testRadioTxExt() function.
RC
: 1-byte field formatted as a int.
|
static |
The named tuple returned by the dn_zeroize() function.
RC
: 1-byte field formatted as a int.


Radiohead
This is really happening happening.
The time line of Radiohead:
- 1985-1992 - Formation and first years.
- 1992–1994 - "Creep", Pablo Honey and early success.
- 1994–1995 - The Bends, critical recognition and growing fanbase.
- 1995–1998 - OK Computer and critical acclaim
- 1998–2002 - Kid A, Amnesiac and change in sound.
- 2002–2004 - Hail to the Thief and solo work.
- 2004–2009 - Departure from EMI, In Rainbows, and "pay what you want"
- 2009–2012 - Singles, side projects, and The King of Limbs.
- 2012–2014 - Hiatus and move to XL
- 2014–2017 - A Moon Shaped Pool and OKNOTOK.
- 2017–present - Hiatus and side projects


|
Nautical
|
#include <assert.h>
#include <avr/io.h>
#include <avr/interrupt.h>
#include <stdatomic.h>
#include "ahrs/io_ahrs.h"
#include "macrodef.h"
#include "dbg.h"
#include <util/setbaud.h>
Macros | |
| #define | NUSART 2 |
| #define | BAUD 38400UL |
Functions | |
| void | io_ahrs_init (char const *path) |
| Prepare AHRS to receive data. More... | |
| void | io_ahrs_clean () |
| Disable AHRS transmit and receive. More... | |
| ISR (CC_XXX(USART, NUSART, _RX_vect)) | |
| int | io_ahrs_recv_start (int(*handler)()) |
| Tells AHRS to start receiving attitude data. More... | |
| void | io_ahrs_recv_stop () |
| Tells AHRS to start receiving attitude data. More... | |
| bool | io_ahrs_tripbuf_update () |
| Updates tripbuf with new data. More... | |
| void | io_ahrs_tripbuf_offer () |
| Allows tripbuf to be updated again. (Might need Seth's confirmation) More... | |
| unsigned char | io_ahrs_tripbuf_write () |
| Finds tripbuf index to write to. More... | |
| unsigned char | io_ahrs_tripbuf_read () |
| Finds tripbuf index to read from. More... | |
Variables | |
| FILE * | io_ahrs |
| Handles IO to AHRS using file streams. More... | |
| #define BAUD 38400UL |
| #define NUSART 2 |
atomic_signal_fence is used in some places to try to get memory synchronization with ISRs
| void io_ahrs_clean | ( | ) |
Disable AHRS transmit and receive.
Unimplemented.
| void io_ahrs_init | ( | char const * | path | ) |
Prepare AHRS to receive data.
Assumes uart NUSART will be used and connected with the ahrs IEA-232 interface via a ttl<->IEA-232 converter.
Per the TRAX PNI user manual: Start Bits: 1 Number of Data Bits: 8 Stop Bits: 1 Parity: none Baud: BAUD
| path | Path to AHRS from main computer, unused at the moment. |
| int io_ahrs_recv_start | ( | int(*)() | handler | ) |
Tells AHRS to start receiving attitude data.
| handler | Function that handles data received from AHRS. |
| void io_ahrs_recv_stop | ( | ) |
Tells AHRS to start receiving attitude data.
| void io_ahrs_tripbuf_offer | ( | ) |
Allows tripbuf to be updated again. (Might need Seth's confirmation)
Makes the current write index available to io_ahrs_tripbuf_update, and changes the value returned by io_ahrs_tripbuf_write.
May interrupt io_ahrs_tripbuf_update, but may not be interrupted by it.
| unsigned char io_ahrs_tripbuf_read | ( | ) |
Finds tripbuf index to read from.
| bool io_ahrs_tripbuf_update | ( | ) |
Updates tripbuf with new data.
Causes io_ahrs_tripbuf_read to return index that was most recently 'submitted' by io_ahrs_tripbuf_offer.
This should only be run between complete 'uses' of the data, to avoid using disparate data.
Unfortunately, since there is no way to have a lock-free/interruptable triple buffer implementation on the avr, this has to be platform-specific. A lock-free ring buffer would not handle cases when the producer is faster than the consumer well.
May be interrupted by io_ahrs_tripbuf_offer, but cannot interrupt it (ie this can be interrupted by handler_ahrs_recv, but one probably does not want to call it from handler_ahrs_recv).
| unsigned char io_ahrs_tripbuf_write | ( | ) |
Finds tripbuf index to write to.
| volatile unsigned char clean |
| FILE* io_ahrs |
Handles IO to AHRS using file streams.
IO with this is blocking, so one might use normal stdio functions directly on it when they are willing to wait, eg sending initial configuration data, but to be able to handle asynchronous io, one should use io_ahrs_..._start, which allows us to process data on the fly and avoid polling.
| volatile unsigned char new |
| unsigned char read |
| unsigned char write |


Bases: xierpa3.adapters.textilefileadapter.TextileFileAdapter
Inherit from the FileAdapter to read the example XML article file.
Bases: xierpa3.components.theme.Theme
Show article pages for the amount of articles in @files/articles@, with a top navigation, article column and article side bar. The menu items are define in the @home.txt@ article source.
alias of Constants
alias of Theme
Create the component instances
The instance of this class builds CSS and HTML files at the optional path <b>root</b>. If not defined, then the default ~/Desktop/Xierpa3Examples/[component.name] is used as export path, as set by Builder.DEFAULT_ROOTPATH


Couple steal handbags worth $26G in brazen NYC Jimmy Choo store robbery: police
by Talia KaplanA man and woman stole handbags worth more than $20,000 from a Jimmy Choo store in New York City on Wednesday, authorities said.
The suspects, both wearing dark hoodies, entered the store at Madison Avenue and 62nd Street at around 11:35 a.m. and started grabbing items off the shelves, an NYPD spokesperson told Fox News.
Police said the pair then ran out of the store and got into a blue Jeep SUV with North Carolina license plates, before fleeing north on Madison Avenue.
CARA DELEVINGNE'S 'CAT-CALLING' JIMMY CHOO AD SPARKS OUTRAGE ON TWITTER
The thieves got away with 12 handbags worth about $26,000, according to investigators.
Police told Fox News the investigation is ongoing and no arrests have been made. No injuries were reported.
CLICK HERE FOR THE FOX NEWS APP
It was not immediately clear for how long the thieves were inside the store or how many people were there at the time of the robbery.


Vital statistics | Honolulu Star-Advertiser
Each week, the Honolulu Star- Advertiser publishes Oahu statistics for marriage licenses and birth certificates filed with the state Department of Health’s Vital Statistics System. Read more
Mahalo for reading the Honolulu Star-Advertiser!
You're reading a premium story. Read the full story with our Print & Digital Subscription.
Already a subscriber? Log in now to continue reading this story.
Print subscriber but without online access? Activate your Digital Account now.


Located in /Object/Manager.php (line 20)
addBinding() - Binds a set of options to a class through an OptionBinding Object
create() - creates a new Instance of the class on every call
get() - Returns a shared Instance of a Class, instantiates a new Object only on first call
getBinding() - Returns the Option Binding for the given Class
getConfig() - Returns the static config array
hasBinding() - Checks if a Binding for the given Class exists
setConfig() - Sets a config array/object.
On Instantiation the classname is looked up in this config and the value for the classname is used as options for the class
_instantiateClass() - Does the heavy lifting in object instantiation
Documentation generated on Sun, 13 Jun 2010 20:36:17 +0200 by phpDocumentor 1.4.3


User form
Name:
Surname:
Email:
Password:
Sex:
Male
Female
Other
Description:
Remember me
Add user
Users
Name
Surname
Email
Sex


{% import "_includes/forms" as forms %} {% if submissions | length %} {% for submission in submissions %}
{{ submission.publisher }} {{ "approved this entry on " ~ submission.dateApproved | date('jS M Y g:ia') ~ "." | t }}
{{ submission.editor }} {{ "has submitted this entry for review on " ~ submission.dateCreated | date('jS M Y g:ia') ~ ". Please review this entry before publishing." | t }}


Rewrite the complete λ expression below after having α-converted (using the variable "a") the λ abstraction whose binding occurrence is underlined. In your answer, use the character "^" to denote the character "λ".
Recall that to α-convert a lambda abstraction, you must first identify all of the variables in its body that are bound to its binding occurrence.
Remember to write down as your answer the whole lambda expression, including the lambda abstraction that you are α-converting, not just the latter.
Make sure to use "a" for the name of the new variable. In this exercise, you are not allowed to pick any new variable name.


Survey Questions
Please answer all questions.
About You
Name
(Required)
URL to a photo of you
(Required)
Please provide a link where the image exists.
Questions
Your mind is always buzzing with unexplored ideas and plans.
1
2
3
4
5
Generally speaking, you rely more on your experience than your imagination.
1
2
3
4
5
You find it easy to stay relaxed and focused even when there is some pressure.
1
2
3
4
5
You rarely do something just out of sheer curiosity.
1
2
3
4
5
Time with friends is more important than alone time.
1
2
3
4
5
Music and other arts are a very important part of life.
1
2
3
4
5
In a discussion, truth should be more important than people’s sensitivities.
1
2
3
4
5
International travel makes you a better version of yourself.
1
2
3
4
5
You think that everyone’s views should be respected regardless of whether they are supported by facts or not.
1
2
3
4
5
You feel more energetic after spending time with a group of people.
1
2
3
4
5
Match
Best Match
×


Rusty Steel
Hi, I'm a dog. Woof!
Some of my favorite places
The beach
The dog park
The fire hydrant
Make sure to follow me on
Google


Case data | Colorado COVID-19 Updates Case data | Colorado COVID-19 Updates
Case data Case data
Case data Case data
Data is updated daily by about 4 p.m. and includes cases reported through 4 p.m. the previous day. This reporting gap gives our epidemiologists time to review the data and improve the accuracy. Due to this delay, our numbers may be different than what is being reported by local public health departments. As cases continue to be investigated the data in this report is subject to change. Data is updated daily by about 4 p.m. and includes cases reported through 4 p.m. the previous day. This reporting gap gives our epidemiologists time to review the data and improve the accuracy. Due to this delay, our numbers may be different than what is being reported by local public health departments. As cases continue to be investigated the data in this report is subject to change.
Colorado Case Summary (Updated 3/23/20 at 4:13 p.m.) PDF version
720 cases 72 hospitalized 31 counties 6,224 people tested 7 deaths
Colorado Case Count Colorado Case Count


T9 Predictive Text
1
.
2
ABC
3
DEF
4
GHI
5
JKL
6
MNO
7
PQRST
8
UVW
9
XYZ
*
Cycle
0
_
#
DEL
Made by Sepehr Mohammadi
Website


{% extends "fplapp/layout.html" %} {% block content %}
| Position | Name | Won | Draw | Loss | Points | GF | GA | GD |
|---|---|---|---|---|---|---|---|---|
| {{ info.position }} | {{ info.team.name }} | {{ info.won }} | {{ info.draw }} | {{ info.lost }} | {{ info.points }} | {{ info.goalsFor }} | {{ info.goalsAgainst }} | {{ info.goalDifference }} |


Environment logger
Home
An error occurred
Upload succeeded
Upload electricity consumption file
{% if latest-dt %}
Date and time of the latest stored value is {{ latest-dt }}.
{% endif %}
Filename


Extends
- AggregationTest
Methods
(static) weights(mafs, a, b)
Calculate typical SKAT weights using beta density function.
Parameters:
| Name | Type | Default | Description |
|---|---|---|---|
mafs |
Array.<number> | Array of minor allele frequencies. | |
a |
number | 1 | alpha defaults to 1. |
b |
number | 25 | beta defaults to 25. |
run(u, v, w, mafs) → {Array.<Number>}
Calculate SKAT test.
The distribution function of the SKAT test statistic is evaluated using Davies' method by default. In the special case where there is only 1 lambda, the Liu moment matching approximation method is used.
Parameters:
| Name | Type | Description |
|---|---|---|
u |
Array.<Number> | Vector of score statistics (length m, number of variants). |
v |
Array.<Number> | Covariance matrix of score statistics (m x m). |
w |
Array.<Number> | Weight vector (length m, number of variants). If weights are not provided, they will be calculated using the default weights() method of this object. |
mafs |
Array.<Number> | A vector of minor allele frequencies. These will be used to calculate weights if they were not provided. |
Returns:
SKAT p-value.
- Type
- Array.<Number>


|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.java.games.input.ControllerEnvironment
public abstract class ControllerEnvironment
A ControllerEnvironment represents a collection of controllers that are physically or logically linked. By default, this corresponds to the environment for the local machine.
In this reference implementation, this class can also be used to register controllers with the default environment as "plug-ins". A plug-in is created by subclassing ControllerEnvironment with a class that has a public no-argument constructor, implements the net.java.games.util.plugins.Plugin interface and has a name ending in "Plugin". (See net.java.games.input.DirectInputEnvironmentPlugin in the DXplugin part of the source tree for an example.) When the DefaultControllerEnvrionment is instanced it uses the plugin library to look for Plugins in both [java.home]/lib/controller and [user.dir]/controller. This allows controller plugins to be installed either globally for the entire Java environment or locally for just one particular Java app. For more information on the organization of plugins within the controller root directories, see net.java.games.util.plugins.Plugins (Note the plural -- "Plugins" not "Plugin" which is just a marker interface.)
| Field Summary | |
|---|---|
protected java.util.ArrayList |
controllerListeners
List of controller listeners |
| Constructor Summary | |
|---|---|
protected |
ControllerEnvironment()
Protected constructor for subclassing. |
| Method Summary | |
|---|---|
void |
addControllerListener(ControllerListener l)
Adds a listener for controller state change events. |
protected void |
fireControllerAdded(Controller c)
Creates and sends an event to the controller listeners that a controller has been added. |
protected void |
fireControllerRemoved(Controller c)
Creates and sends an event to the controller listeners that a controller has been lost. |
abstract Controller[] |
getControllers()
Returns a list of all controllers available to this environment, or an empty array if there are no controllers in this environment. |
static ControllerEnvironment |
getDefaultEnvironment()
Returns the default environment for input controllers. |
abstract boolean |
isSupported()
Returns the isSupported status of this environment. |
void |
removeControllerListener(ControllerListener l)
Removes a listener for controller state change events. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final java.util.ArrayList controllerListeners
| Constructor Detail |
|---|
protected ControllerEnvironment()
| Method Detail |
|---|
public abstract Controller[] getControllers()
public void addControllerListener(ControllerListener l)
public abstract boolean isSupported()
public void removeControllerListener(ControllerListener l)
protected void fireControllerAdded(Controller c)
protected void fireControllerRemoved(Controller c)
public static ControllerEnvironment getDefaultEnvironment()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |


Welcome to the quiz app
Here you will get 7 questions
and you have 10 seconds to answer each question
Let's start by entering your name
Start the quiz
Start Quiz
Answer here please!
Submit Answer
Next Question


What's pomodoro mean?
According to Wikipedia : 'The Pomodoro Technique is a time management method developed by Francesco Cirillo in the late 1980s.[1] The technique uses a timer to break down work into intervals, traditionally 25 minutes in length, separated by short breaks. These intervals are named pomodoros, the plural in English of the Italian word pomodoro (tomato), after the tomato-shaped kitchen timer that Cirillo used as a university student.'


Kay Burley ’empty chairs’ James Cleverly after Tory chairman’s no-show
Sky News presenter Kay Burley gave Conservative Party chairman James Cleverly the “empty chair” treatment after claiming he had missed a planned appearance on her breakfast show.
Sitting next to a vacant seat which Ms Burley claimed was “supposed to be filled” by the politician, she said: “Where is he? He’s probably 15 feet away from where I’m standing just at the moment.
“I’ve been in to see him during the break, he said he wasn’t due to come and talk to us today although they had said that they would talk to us.”
Ms Burley then listed a number of topics she had hoped to discuss with Mr Cleverly, including Jacob Rees-Mogg’s recent controversial comments about the Grenfell Tower tragedy and Prime Minister Boris Johnson’s comparison of Labour leader Jeremy Corbyn to Joseph Stalin.
“I know that Number 10 Downing Street watch our show,” Ms Burley said.
“I know that the spin doctors at Number 10 Downing Street had absolutely reassured me via text that when politicians were doing the rounds in the morning, they would be doing this programme – and yet, we have an empty chair.”
Mr Cleverly responded on Twitter by saying he was doing a TalkRadio interview during the segment.
“I’m good at multitasking but cannot be in two studios at the same time,” he added.