34 #ifndef EOSERIALCOMMAND_H_ 35 #define EOSERIALCOMMAND_H_ 39 #include "eoSerialEvents.h" 207 uint8_t appVersion[4];
209 char appDescription[16];
211 uint8_t apiVersion[4];
232 std::vector<uint8_t> memoryData;
443 IEEE_802_15_4 = 0x10,
451 ESP3_FREQUENCY frequency;
452 ESP3_PROTOCOL protocol;
453 } CO_RD_FREQUENY_RESPONSE;
458 } CO_RD_STEPCODE_RESPONSE;
464 TX_ONLY_WITH_ON_AUTO_SLEEP =2,
776 eoReturn initPacket(uint8_t type, uint8_t command, uint8_t length);
eoReturn EventSmartAckConfirmLearn(SA_CONFIRM_LEARN_REQUEST &request)
Add Pre-shared key for inbound secure device.
Definition: eoSerialCommand.h:101
uint32_t chipID
Chip ID.
Definition: eoSerialCommand.h:213
SmartAck learned clients response structure.
Definition: eoSerialCommand.h:395
Select how frequently the rolling codes in the outbound secure link table will be saved to the NVM...
Definition: eoSerialCommand.h:133
Change the firmware to run in a transparent mode, deactivates chaining,reman,encryption.
Definition: eoSerialCommand.h:149
Read memory command.
Definition: eoSerialCommand.h:236
uint16_t responseTime
Response time for Smart Ack Client in ms in which the controller can prepare the data and send it to ...
Definition: eoSerialCommand.h:332
Order to enter in energy saving mode.
Definition: eoSerialCommand.h:51
SA_CONFIRM_CODE confirmCode
Confirmation Code.
Definition: eoSerialCommand.h:334
Read Pre-shared key for inbound secure device.
Definition: eoSerialCommand.h:107
contains Dolphin API Definitions
Order to reset the device.
Definition: eoSerialCommand.h:53
eoReturn ReadRemanRepeating(bool &isEnabled)
Set frequency info.
Definition: eoSerialCommand.h:113
eoReturn SmartAckConfirmLearn(uint16_t responseTime, SA_CONFIRM_CODE confirmCode)
eoReturn DutyCycleLimit(CO_DUTYCYCLE_LIMIT limit)
Flywheel timer counter reached the time period.
Definition: eoSerialCommand.h:285
Send Smart Ack Learn request (Client)
Definition: eoSerialCommand.h:354
eoReturn WaitMaturity(const bool waitMaturity)
eoReturn EventDutyCycleLimit(CO_DUTYCYCLE_LIMIT &request)
Read security informations (level, keys)
Definition: eoSerialCommand.h:91
Read Repeater Level off,1,2.
Definition: eoSerialCommand.h:69
Read x bytes of the Flash, XRAM, RAM0 ….
Definition: eoSerialCommand.h:87
Read memory command.
Definition: eoSerialCommand.h:219
std::vector< uint8_t > memoryData
Bytes to write.
Definition: eoSerialCommand.h:243
uint8_t rssi
Signal strength; Send case: FF/Receive case: actual RSSI.
Definition: eoSerialCommand.h:319
uint32_t memoryAddress
Address.
Definition: eoSerialCommand.h:224
uint8_t loadAfterCycle
Load available when period ends.
Definition: eoSerialCommand.h:420
MEMORY_TYPE memoryType
MEMORY_TYPE to read.
Definition: eoSerialCommand.h:239
Enable/Disable supplied filters.
Definition: eoSerialCommand.h:77
Write x bytes of the Flash, XRAM, RAM0 ….
Definition: eoSerialCommand.h:85
eoReturn WriteTransparentMode(bool enable)
Enter a state where it mirrors the RSSI signal strength.
Definition: eoSerialCommand.h:143
Advanced Learnmode.
Definition: eoSerialCommand.h:380
Write security informations (level, keys)
Definition: eoSerialCommand.h:93
eoReturn SmartAckSendLearnRequest(uint16_t manufacturerID, uint32_t EEP)
Read base ID response.
Definition: eoSerialCommand.h:247
Clear the internal list of all secure devices.
Definition: eoSerialCommand.h:118
Set the temporary rolling-code window.
Definition: eoSerialCommand.h:105
eoPacket GetSerialPacket()
eoReturn ReadTransparentMode(bool &isEnabled)
Compatible mode (default)
Definition: eoSerialCommand.h:304
uint16_t dataLength
Number of bytes to read.
Definition: eoSerialCommand.h:226
eoReturn WriteMode(WR_MODE_CODE mode)
Read supplied filters.
Definition: eoSerialCommand.h:79
Enter a state where it mirrors the RSSI signal strength.
Definition: eoSerialCommand.h:141
Perform Flash BIST operation.
Definition: eoSerialCommand.h:61
WR_MODE_CODE
Types of mode.
Definition: eoSerialCommand.h:301
Used for Smart Ack to add or delete a mailbox of a client.
Definition: eoSerialCommand.h:352
uint8_t numOfSlots
Number of duty cycle slots.
Definition: eoSerialCommand.h:414
uint32_t memoryAddress
Address.
Definition: eoSerialCommand.h:241
uint32_t clientID
Device ID of the Smart Ack Client.
Definition: eoSerialCommand.h:398
Read number of teached in secure devices.
Definition: eoSerialCommand.h:97
uint8_t repLevel
Repeater level.
Definition: eoSerialCommand.h:261
SmartAck read learnmode response structure.
Definition: eoSerialCommand.h:386
Read memory response.
Definition: eoSerialCommand.h:230
EnOcean Common Commands class, enables an easy interface for the most common commands.
Definition: eoSerialCommand.h:473
Delete filters.
Definition: eoSerialCommand.h:75
uint8_t priPostmaster
Already post master 0b xxxx 1xxx/Place for mailbox 0b xxxx x1xx/Good RSSI 0b xxxx xx1x/Local 0b xxxx ...
Definition: eoSerialCommand.h:313
Advanced mode.
Definition: eoSerialCommand.h:306
eoReturn WriteStartupDelay(uint8_t delay)
Waiting till end of maturity time before received radio telegrams will transmitted.
Definition: eoSerialCommand.h:81
Check if the REMAN telegrams originating from this module can be repeated.
Definition: eoSerialCommand.h:127
Reset caused by usage of the reset pin.
Definition: eoSerialCommand.h:281
Write the reman code.
Definition: eoSerialCommand.h:121
eoReturn WriteRepeater(bool repEnable, const uint8_t repLevel)
FILTER_OPERATOR
Filter operator.
Definition: eoSerialCommand.h:195
FILTER_KIND
Filter kinds.
Definition: eoSerialCommand.h:159
eoReturn GetStepCode(CO_RD_STEPCODE_RESPONSE &response)
eoReturn ReadTXOnlyMode(CO_TX_ONLY_MODE &txOnlyMode)
Block filtered repeating.
Definition: eoSerialCommand.h:166
Advanced Learnmode select Rep.
Definition: eoSerialCommand.h:382
uint8_t availableCycle
Available duty cycle.
Definition: eoSerialCommand.h:412
eoReturn ReadRssiTestMode(bool &isEnabled)
Set number of reclaim attempts.
Definition: eoSerialCommand.h:360
eoReturn SmartAckSetPostmaster(uint8_t mailboxCount)
MEMORY_TYPE
Memory TYPE.
Definition: eoSerialCommand.h:185
Modify the startup time for a time.
Definition: eoSerialCommand.h:123
Activate/Deactivate Post master functionality.
Definition: eoSerialCommand.h:362
uint32_t baseID
Base ID.
Definition: eoSerialCommand.h:250
FILTER_TYPE filterType
Filter type.
Definition: eoSerialCommand.h:268
Add secure device maintenance key to controller.
Definition: eoSerialCommand.h:145
AND composition of filters.
Definition: eoSerialCommand.h:200
Learn IN.
Definition: eoSerialCommand.h:369
Enable / disable the legacy RLC processing mode for 24 bit RLC.
Definition: eoSerialCommand.h:135
Read the device (SW) version / (HW) version, chip ID etc.
Definition: eoSerialCommand.h:55
Add device to secure link table. New version to allow for 32 bit RLC.
Definition: eoSerialCommand.h:137
uint16_t slotPeriodLeft
Time left in actual slot in seconds.
Definition: eoSerialCommand.h:418
Parity error.
Definition: eoSerialCommand.h:287
CPU memory request does not correspond to valid memory location.
Definition: eoSerialCommand.h:291
Voltage supply drop or indicates that VDD > VON.
Definition: eoSerialCommand.h:279
This command enables/disables the tx only mode of a device. The device still can send but will disabl...
Definition: eoSerialCommand.h:153
eoReturn WriteTXOnlyMode(CO_TX_ONLY_MODE txOnlyMode)
Read the RSSI noise threshold level for telegram detection.
Definition: eoSerialCommand.h:131
Wake-up pint 0 activated.
Definition: eoSerialCommand.h:293
Learn OUT.
Definition: eoSerialCommand.h:371
SA_EXTENDED_LEARNMODE
SmartAck extended learnmode enum.
Definition: eoSerialCommand.h:375
Read system log from device databank.
Definition: eoSerialCommand.h:57
uint8_t hopCount
Numbers of repeater hop.
Definition: eoSerialCommand.h:325
bool enabled
Learnmode not active = 0/Learnmode active = 1.
Definition: eoSerialCommand.h:389
Simple Learnmode.
Definition: eoSerialCommand.h:378
Set/Reset Smart Ack learn mode.
Definition: eoSerialCommand.h:348
Wake-up pint 1 activated.
Definition: eoSerialCommand.h:295
HW Parity error in internal or external memory.
Definition: eoSerialCommand.h:289
Add filter to filter list.
Definition: eoSerialCommand.h:71
EC_RESET_CAUSE resetCause
Cause of reset.
Definition: eoSerialCommand.h:341
This command reads the current state of the receiver.
Definition: eoSerialCommand.h:155
Read ID range base number.
Definition: eoSerialCommand.h:65
eoReturn WriteRemanRepeating(bool enabled)
Apply filtered repeating.
Definition: eoSerialCommand.h:168
eoReturn
contains all the return values from different functions
Definition: eoApiDef.h:40
Send reset command to every SA sensor.
Definition: eoSerialCommand.h:356
eoReturn SmartAckSetReclaimTries(uint8_t reclaimCount)
Modifies the baudrate of the device.
Definition: eoSerialCommand.h:111
MEMORY_TYPE memoryType
MEMORY_TYPE to read.
Definition: eoSerialCommand.h:222
eoReturn ReadFilter(CO_RD_FILTER_RESPONSE *filter, uint8_t *filterCount, uint8_t maxFilterCount)
Select if REMAN telegrams originating from this transceiver can be repeated.
Definition: eoSerialCommand.h:125
Read repeater response.
Definition: eoSerialCommand.h:256
Sets the RSSI noise rejection threshold level for telegram reception. Received Signals below this thr...
Definition: eoSerialCommand.h:129
eoReturn DutyCycleReadLimit(CO_RD_DUTYCYCLE_RESPONSE &response)
EnOcean Gateway class, for handling a gateway Module.
Definition: eoGateway.h:139
eoReturn DeleteAllFilter()
eoReturn WriteMemory(CO_WR_MEMORY const &writeMemory)
eoReturn GetNoiseTreshold(uint8_t &rssiLevel)
eoReturn GetFrequencyInfo(CO_RD_FREQUENY_RESPONSE &response)
eoReturn ReadRepeater(CO_RD_REPEATER_RESPONSE &response)
SA_EXTENDED_LEARNMODE extended
Simple Learnmode = 0/Advance Learnmode = 1/Advance Learnmode select Rep. = 2.
Definition: eoSerialCommand.h:391
eoReturn WriteIDBase(const uint32_t baseID)
eoReturn SmartAckLearnedClients(SA_RD_LEARNEDCLIENTS_RESPONSE *clients, uint8_t *learnedCount, uint8_t maxLearnedCount)
eoReturn EnableFilter(const bool filterEnabled, const FILTER_OPERATOR filterOperator)
eoReturn SmartAckLearnAck(SA_LEARN_ACK_RESPONSE &response)
Source ID filter.
Definition: eoSerialCommand.h:175
Read secure device maintenance by index.
Definition: eoSerialCommand.h:147
Write mode, Advanced or Compatible mode.
Definition: eoSerialCommand.h:95
Applying radio filter.
Definition: eoSerialCommand.h:164
Feedback about the used address and length of the config area and the Smart Ack Table.
Definition: eoSerialCommand.h:89
Get Smart Ack learned sensors / mailboxes.
Definition: eoSerialCommand.h:358
eoReturn ReadVersion(CO_RD_VERSION_RESPONSE &version)
bool repEnable
Repeater enabled.
Definition: eoSerialCommand.h:259
Get Smart Ack learn mode state.
Definition: eoSerialCommand.h:350
eoReturn SmartAckReset(uint32_t clientID)
Confirm Learn response.
Definition: eoSerialCommand.h:310
Check, if secure device with given Id is teached in.
Definition: eoSerialCommand.h:99
eoReturn Ready(CO_READY_RESPONSE &response)
Watchdog timer counter reached the time period.
Definition: eoSerialCommand.h:283
Send secure Teach-In message.
Definition: eoSerialCommand.h:103
Reset System log from device databank.
Definition: eoSerialCommand.h:59
eoReturn SmartAckWriteLearnMode(bool enable, SA_EXTENDED_LEARNMODE extended, uint32_t timeout)
uint32_t postmasterID
Device ID of the Post master candidate.
Definition: eoSerialCommand.h:321
eoReturn SetNoiseTreshold(uint8_t rssiLevel)
uint32_t manufacturerID
Manufacturer ID.
Definition: eoSerialCommand.h:315
Write ID range base number.
Definition: eoSerialCommand.h:63
uint32_t filterValue
Filter value.
Definition: eoSerialCommand.h:270
eoReturn AddFilter(const FILTER_TYPE filterType, const uint32_t filterValue, const FILTER_KIND filterKind)
eoReturn WriteRssiTestMode(bool enable, uint16_t timeOut)
eoReturn DeleteFilter(const FILTER_TYPE filterType, const uint32_t filterValue)
COMMON_COMMAND_TYPE
The most common commands for ESP3.
Definition: eoSerialCommand.h:48
Unknown reset source.
Definition: eoSerialCommand.h:297
SMARTACK_CONFIRM_CODE
SmartAck confirm code enum send to gateway in serial command.
Definition: eoSerialCommand.h:366
Class which contains a Packet.
Definition: eoPacket.h:43
Blocking radio filter.
Definition: eoSerialCommand.h:162
Read version response.
Definition: eoSerialCommand.h:204
uint32_t chipVersion
Chip version (reserved for internal use)
Definition: eoSerialCommand.h:215
eoReturn ReadIDBase(CO_RD_IDBASE_RESPONSE &response)
uint32_t smartAckID
This sensor would be Learn IN.
Definition: eoSerialCommand.h:323
Read device from secure link table by index (new version for 32 bit RLC).
Definition: eoSerialCommand.h:139
eoReturn SmartAckReadLearnMode(SA_RD_LEARNMODE_RESPONSE &response)
Read actual duty cycle limit values.
Definition: eoSerialCommand.h:109
eoSerialCommand(eoGateway *gateway)
Ready response.
Definition: eoSerialCommand.h:338
uint32_t postmasterID
Postmaster ID dedicated Smart Ack Client.
Definition: eoSerialCommand.h:400
uint8_t remainingWrites
Remaining write cycles for base ID.
Definition: eoSerialCommand.h:252
Enable/Disable transmitting additional subtelegram info.
Definition: eoSerialCommand.h:83
Destination ID filter.
Definition: eoSerialCommand.h:181
EC_RESET_CAUSE
Reset cause according ESP 3.
Definition: eoSerialCommand.h:276
Learn SmartAck response.
Definition: eoSerialCommand.h:329
Reads if the firmware runs in a transparent mode.
Definition: eoSerialCommand.h:151
eoReturn SmartAckLearnConfirm(uint16_t responseTime, SMARTACK_CONFIRM_CODE confirmCode, uint32_t postmasterID, uint32_t clientID)
dBm filter
Definition: eoSerialCommand.h:179
uint8_t mailboxIndex
Internal counter of Post master (0x00 ... 0x0E)
Definition: eoSerialCommand.h:402
uint16_t slotPeriod
Period of one slot in seconds.
Definition: eoSerialCommand.h:416
eoReturn ReadMemory(CO_RD_MEMORY const &readMemory, CO_RD_MEMORY_RESPONSE &response)
Get the chip revision.
Definition: eoSerialCommand.h:116
Read filter response.
Definition: eoSerialCommand.h:265
SA_COMMAND_TYPE
SmartAck command enum.
Definition: eoSerialCommand.h:345
Choice filter.
Definition: eoSerialCommand.h:177
OR composition of filters.
Definition: eoSerialCommand.h:198
Delete filter from filter list.
Definition: eoSerialCommand.h:73
FILTER_TYPE
Filter types.
Definition: eoSerialCommand.h:172
Write Repeater Level off,1,2.
Definition: eoSerialCommand.h:67
Read actual duty cycle limit structure.
Definition: eoSerialCommand.h:409
eoReturn Sleep(const uint32_t sleepPeriod)