From 73945cc23670deca71edab9698315f1d87670264 Mon Sep 17 00:00:00 2001 From: bp-tdora114 Date: Tue, 20 Feb 2024 13:47:01 +0000 Subject: [PATCH 1/3] RDKTV-28380: Ignore Broadcast/Direct cec messages. Reason for change: Ignore Broadcast/Direct cec messages. Test Procedure: Test and verify Risks: High Priority: P1 Signed-off-by: bp-tdora114 --- HdmiCecSink/HdmiCecSink.cpp | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/HdmiCecSink/HdmiCecSink.cpp b/HdmiCecSink/HdmiCecSink.cpp index e8bda7cc28..45495693bd 100644 --- a/HdmiCecSink/HdmiCecSink.cpp +++ b/HdmiCecSink/HdmiCecSink.cpp @@ -222,7 +222,10 @@ namespace WPEFramework { printHeader(header); LOGINFO("Command: ActiveSource %s : %s : %s \n",GetOpName(msg.opCode()),msg.physicalAddress.name().c_str(),msg.physicalAddress.toString().c_str()); - + if(!(header.to == LogicalAddress(LogicalAddress::BROADCAST))){ + LOGERR("Ignore Direct messages, accepts only broadcast messages"); + return; + } HdmiCecSink::_instance->addDevice(header.from.toInt()); HdmiCecSink::_instance->updateActiveSource(header.from.toInt(), msg); } @@ -252,6 +255,10 @@ namespace WPEFramework { printHeader(header); LOGINFO("Command: RequestActiveSource\n"); + if(!(header.to == LogicalAddress(LogicalAddress::BROADCAST))){ + LOGERR("Ignore Direct messages, accepts only broadcast messages"); + return; + } HdmiCecSink::_instance->setActiveSource(true); } @@ -265,6 +272,10 @@ namespace WPEFramework { printHeader(header); LOGINFO("Command: GetCECVersion sending CECVersion response \n"); + if(header.to.toInt() == LogicalAddress::BROADCAST){ + LOGERR("Ignore Broadcast messages, accepts only direct messages"); + return; + } try { if(cecVersion == 2.0) { @@ -329,6 +340,10 @@ namespace WPEFramework void HdmiCecSinkProcessor::process (const GiveDeviceVendorID &msg, const Header &header) { printHeader(header); + if(header.to == LogicalAddress(LogicalAddress::BROADCAST)){ + LOGERR("Ignore Broadcast messages, accepts only direct messages"); + return; + } try { LOGINFO("Command: GiveDeviceVendorID sending VendorID response :%s\n",appVendorId.toString().c_str()); @@ -381,6 +396,10 @@ namespace WPEFramework { printHeader(header); LOGINFO("Command: GetMenuLanguage\n"); + if(header.to == LogicalAddress(LogicalAddress::BROADCAST)){ + LOGERR("Ignore Broadcast messages, accepts only direct messages"); + return; + } HdmiCecSink::_instance->sendMenuLanguage(); } void HdmiCecSinkProcessor::process (const ReportPhysicalAddress &msg, const Header &header) @@ -427,6 +446,10 @@ namespace WPEFramework { printHeader(header); LOGINFO("Command: GiveDevicePowerStatus sending powerState :%d \n",powerState); + if(header.to.toInt() == LogicalAddress::BROADCAST){ + LOGERR("Ignore Broadcast messages, accepts only direct messages"); + return; + } try { conn.sendTo(header.from, MessageEncoder().encode(ReportPowerStatus(PowerStatus(powerState)))); @@ -533,6 +556,10 @@ namespace WPEFramework void HdmiCecSinkProcessor::process (const InitiateArc &msg, const Header &header) { printHeader(header); + if((!(header.from.toInt() == 0x5)) || (header.to.toInt() == LogicalAddress::BROADCAST)){ + LOGERR("Ignoring the message coming from addresses other than 0X5 or a braodcast message"); + return; + } PhysicalAddress physical_addr_invalid = {0x0F,0x0F,0x0F,0x0F}; PhysicalAddress physical_addr_arc_port = {0x0F,0x0F,0x0F,0x0F}; From 303efc45400590dcee7b89df55d662ba05572aef Mon Sep 17 00:00:00 2001 From: dautapankumardora <90027158+dautapankumardora@users.noreply.github.com> Date: Wed, 21 Feb 2024 17:00:20 +0000 Subject: [PATCH 2/3] Update HdmiCecSink.cpp --- HdmiCecSink/HdmiCecSink.cpp | 60 ++++++++++++++++++++++++++++++++----- 1 file changed, 52 insertions(+), 8 deletions(-) diff --git a/HdmiCecSink/HdmiCecSink.cpp b/HdmiCecSink/HdmiCecSink.cpp index 45495693bd..bb458a6ae3 100644 --- a/HdmiCecSink/HdmiCecSink.cpp +++ b/HdmiCecSink/HdmiCecSink.cpp @@ -223,7 +223,7 @@ namespace WPEFramework printHeader(header); LOGINFO("Command: ActiveSource %s : %s : %s \n",GetOpName(msg.opCode()),msg.physicalAddress.name().c_str(),msg.physicalAddress.toString().c_str()); if(!(header.to == LogicalAddress(LogicalAddress::BROADCAST))){ - LOGERR("Ignore Direct messages, accepts only broadcast messages"); + LOGINFO("Ignore Direct messages, accepts only broadcast messages"); return; } HdmiCecSink::_instance->addDevice(header.from.toInt()); @@ -233,6 +233,10 @@ namespace WPEFramework { printHeader(header); LOGINFO("Command: InActiveSource %s : %s : %s \n",GetOpName(msg.opCode()),msg.physicalAddress.name().c_str(),msg.physicalAddress.toString().c_str()); + if(header.to.toInt() == LogicalAddress::BROADCAST){ + LOGINFO("Ignore Broadcast messages, accepts only direct messages"); + return; + } HdmiCecSink::_instance->updateInActiveSource(header.from.toInt(), msg); } @@ -241,6 +245,10 @@ namespace WPEFramework { printHeader(header); LOGINFO("Command: ImageViewOn from %s\n", header.from.toString().c_str()); + if(header.to.toInt() == LogicalAddress::BROADCAST){ + LOGINFO("Ignore Broadcast messages, accepts only direct messages"); + return; + } HdmiCecSink::_instance->addDevice(header.from.toInt()); HdmiCecSink::_instance->updateImageViewOn(header.from.toInt()); } @@ -248,6 +256,10 @@ namespace WPEFramework { printHeader(header); LOGINFO("Command: TextViewOn\n"); + if(header.to.toInt() == LogicalAddress::BROADCAST){ + LOGINFO("Ignore Broadcast messages, accepts only direct messages"); + return; + } HdmiCecSink::_instance->addDevice(header.from.toInt()); HdmiCecSink::_instance->updateImageViewOn(header.from.toInt()); } @@ -256,7 +268,7 @@ namespace WPEFramework printHeader(header); LOGINFO("Command: RequestActiveSource\n"); if(!(header.to == LogicalAddress(LogicalAddress::BROADCAST))){ - LOGERR("Ignore Direct messages, accepts only broadcast messages"); + LOGINFO("Ignore Direct messages, accepts only broadcast messages"); return; } @@ -273,7 +285,7 @@ namespace WPEFramework printHeader(header); LOGINFO("Command: GetCECVersion sending CECVersion response \n"); if(header.to.toInt() == LogicalAddress::BROADCAST){ - LOGERR("Ignore Broadcast messages, accepts only direct messages"); + LOGINFO("Ignore Broadcast messages, accepts only direct messages"); return; } try @@ -312,6 +324,10 @@ namespace WPEFramework { printHeader(header); LOGINFO("Command: GiveOSDName sending SetOSDName : %s\n",osdName.toString().c_str()); + if(header.to.toInt() == LogicalAddress::BROADCAST){ + LOGINFO("Ignore Broadcast messages, accepts only direct messages"); + return; + } try { conn.sendToAsync(header.from, MessageEncoder().encode(SetOSDName(osdName))); @@ -341,7 +357,7 @@ namespace WPEFramework { printHeader(header); if(header.to == LogicalAddress(LogicalAddress::BROADCAST)){ - LOGERR("Ignore Broadcast messages, accepts only direct messages"); + LOGINFO("Ignore Broadcast messages, accepts only direct messages"); return; } try @@ -365,6 +381,10 @@ namespace WPEFramework printHeader(header); bool updateStatus ; LOGINFO("Command: SetOSDName OSDName : %s\n",msg.osdName.toString().c_str()); + if(header.to.toInt() == LogicalAddress::BROADCAST){ + LOGINFO("Ignore Broadcast messages, accepts only direct messages"); + return; + } HdmiCecSink::_instance->addDevice(header.from.toInt()); updateStatus = HdmiCecSink::_instance->deviceList[header.from.toInt()].m_isOSDNameUpdated; @@ -396,8 +416,8 @@ namespace WPEFramework { printHeader(header); LOGINFO("Command: GetMenuLanguage\n"); - if(header.to == LogicalAddress(LogicalAddress::BROADCAST)){ - LOGERR("Ignore Broadcast messages, accepts only direct messages"); + if(header.to.toInt() == LogicalAddress::BROADCAST){ + LOGINFO("Ignore Broadcast messages, accepts only direct messages"); return; } HdmiCecSink::_instance->sendMenuLanguage(); @@ -408,6 +428,10 @@ namespace WPEFramework bool updateDeviceTypeStatus; bool updatePAStatus; LOGINFO("Command: ReportPhysicalAddress\n"); + if(!(header.to == LogicalAddress(LogicalAddress::BROADCAST))){ + LOGINFO("Ignore Direct messages, accepts only broadcast messages"); + return; + } if(!HdmiCecSink::_instance) return; @@ -434,6 +458,10 @@ namespace WPEFramework bool updateStatus ; printHeader(header); LOGINFO("Command: DeviceVendorID VendorID : %s\n",msg.vendorId.toString().c_str()); + if(!(header.to == LogicalAddress(LogicalAddress::BROADCAST))){ + LOGINFO("Ignore Direct messages, accepts only broadcast messages"); + return; + } HdmiCecSink::_instance->addDevice(header.from.toInt()); updateStatus = HdmiCecSink::_instance->deviceList[header.from.toInt()].m_isVendorIDUpdated; @@ -447,7 +475,7 @@ namespace WPEFramework printHeader(header); LOGINFO("Command: GiveDevicePowerStatus sending powerState :%d \n",powerState); if(header.to.toInt() == LogicalAddress::BROADCAST){ - LOGERR("Ignore Broadcast messages, accepts only direct messages"); + LOGINFO("Ignore Broadcast messages, accepts only direct messages"); return; } try @@ -464,6 +492,10 @@ namespace WPEFramework uint32_t oldPowerStatus,newPowerStatus; printHeader(header); LOGINFO("Command: ReportPowerStatus Power Status from:%s status : %s \n",header.from.toString().c_str(),msg.status.toString().c_str()); + if(header.to.toInt() == LogicalAddress::BROADCAST){ + LOGINFO("Ignore Broadcast messages, accepts only direct messages"); + return; + } oldPowerStatus = HdmiCecSink::_instance->deviceList[header.from.toInt()].m_powerStatus.toInt(); HdmiCecSink::_instance->addDevice(header.from.toInt()); HdmiCecSink::_instance->deviceList[header.from.toInt()].update(msg.status); @@ -483,6 +515,10 @@ namespace WPEFramework { printHeader(header); LOGINFO("Command: FeatureAbort opcode=%s, Reason = %s\n", msg.feature.toString().c_str(), msg.reason.toString().c_str()); + if(header.to.toInt() == LogicalAddress::BROADCAST){ + LOGINFO("Ignore Broadcast messages, accepts only direct messages"); + return; + } if(header.from.toInt() < LogicalAddress::UNREGISTERED && msg.reason.toInt() == AbortReason::UNRECOGNIZED_OPCODE) @@ -557,7 +593,7 @@ namespace WPEFramework { printHeader(header); if((!(header.from.toInt() == 0x5)) || (header.to.toInt() == LogicalAddress::BROADCAST)){ - LOGERR("Ignoring the message coming from addresses other than 0X5 or a braodcast message"); + LOGINFO("Ignoring the message coming from addresses other than 0X5 or a braodcast message"); return; } PhysicalAddress physical_addr_invalid = {0x0F,0x0F,0x0F,0x0F}; @@ -584,6 +620,10 @@ namespace WPEFramework void HdmiCecSinkProcessor::process (const TerminateArc &msg, const Header &header) { printHeader(header); + if((!(header.from.toInt() == 0x5)) || (header.to.toInt() == LogicalAddress::BROADCAST)){ + LOGINFO("Ignoring the message coming from addresses other than 0X5 or a braodcast message"); + return; + } if(!HdmiCecSink::_instance) return; HdmiCecSink::_instance->Process_TerminateArc(); @@ -605,6 +645,10 @@ namespace WPEFramework { printHeader(header); LOGINFO("Command: ReportAudioStatus %s audio Mute status %d means %s and current Volume level is %d \n",GetOpName(msg.opCode()),msg.status.getAudioMuteStatus(),msg.status.toString().c_str(),msg.status.getAudioVolume()); + if(header.to.toInt() == LogicalAddress::BROADCAST){ + LOGINFO("Ignore Broadcast messages, accepts only direct messages"); + return; + } HdmiCecSink::_instance->Process_ReportAudioStatus_msg(msg); } void HdmiCecSinkProcessor::process (const GiveFeatures &msg, const Header &header) From 25e54fb60f4f6ac540a7011fda8494b588ee4351 Mon Sep 17 00:00:00 2001 From: gururaajar <83449026+gururaajar@users.noreply.github.com> Date: Thu, 22 Feb 2024 16:08:55 -0500 Subject: [PATCH 3/3] RDK-47625 - Implement GNOME support for NetworkManager-2.0.0 Thunder plugin (#4945) * RDK-47625 - Implement GNOME support for NetworkManager-2.0.0 Thunder plugin Reason for change: Modified the events name in the Network manager Test Procedure: Build and verified Risks: Low Priority: P1 Signed-off-by: Gururaaja ESR --- NetworkManager/service/NetworkManager.json | 44 ++++++------ docs/api/NetworkManagerPlugin.md | 82 +++++++++++----------- 2 files changed, 63 insertions(+), 63 deletions(-) diff --git a/NetworkManager/service/NetworkManager.json b/NetworkManager/service/NetworkManager.json index 2daf6666ad..4de42f885a 100644 --- a/NetworkManager/service/NetworkManager.json +++ b/NetworkManager/service/NetworkManager.json @@ -224,10 +224,10 @@ "SetPrimaryInterface":{ "summary": "Sets the primary/default interface for the device. This call fails if the interface is not enabled.", "events":{ - "onActiveInterfaceChanged" : "Triggered when device’s default interface changed.", - "onInterfaceStateChanged" : "Triggered when interface’s state changed", - "onIPAddressChanged" : "Triggered when the device connects to router.", - "onInternetStatusChanged" : "Triggered when each IP address is lost or acquired." + "onActiveInterfaceChange" : "Triggered when device’s default interface changed.", + "onInterfaceStateChange" : "Triggered when interface’s state changed", + "onAddressChange" : "Triggered when the device connects to router.", + "onInternetStatusChange" : "Triggered when each IP address is lost or acquired." }, "params": { "type":"object", @@ -314,8 +314,8 @@ "SetIPSettings":{ "summary": "Sets the IP settings for the given interface.", "events":{ - "onIPAddressChanged" : "Triggered when the device connects to router.", - "onInternetStatusChanged" : "Triggered when each IP address is lost or acquired." + "onAddressChange" : "Triggered when the device connects to router.", + "onInternetStatusChange" : "Triggered when each IP address is lost or acquired." }, "params": { "type":"object", @@ -534,7 +534,7 @@ "StartConnectivityMonitoring":{ "summary": "Enable a continuous monitoring of internet connectivity with heart beat interval thats given. If the monitoring is already happening, it will be restarted with new given interval.", "events":{ - "onInternetStatusChanged" : "Triggered when internet connection state changed." + "onInternetStatusChange" : "Triggered when internet connection state changed." }, "params": { "type":"object", @@ -903,8 +903,8 @@ "RemoveKnownSSID":{ "summary": "Remove given SSID from saved SSIDs. This method just removes from the list and of the list is having only one entry thats being removed, it will initiate a disconnect.", "events":{ - "onWiFiStateChanged" : "Triggered when Wifi state changes to DISCONNECTED", - "onIPAddressChanged" : "Triggered when an IP Address is assigned or lost", + "onWiFiStateChange" : "Triggered when Wifi state changes to DISCONNECTED", + "onAddressChange" : "Triggered when an IP Address is assigned or lost", "onInternetStatusChange" : "Triggered when internet connection state changed" }, "params": { @@ -933,7 +933,7 @@ "WiFiConnect":{ "summary": "Initiates request to connect to the specified SSID with the given passphrase. Passphrase can be `null` when the network security is `NONE`. When called with no arguments, this method attempts to connect to the saved SSID and password. See `AddToKnownSSIDs`.", "events":{ - "onWiFiStateChanged" : "Triggered when Wifi state changes to CONNECTING, CONNECTED ." + "onWiFiStateChange" : "Triggered when Wifi state changes to CONNECTING, CONNECTED ." }, "params": { "type": "object", @@ -961,8 +961,8 @@ "WiFiDisconnect":{ "summary": "Disconnects from the currently connected SSID. A event will be posted upon completion", "events":{ - "onWIFIStateChanged" : "Triggered when Wifi state changes to DISCONNECTED (only if currently connected).", - "onIPAddressChanged" : "Triggered when an IP Address is assigned or lost", + "onWIFIStateChange" : "Triggered when Wifi state changes to DISCONNECTED (only if currently connected).", + "onAddressChange" : "Triggered when an IP Address is assigned or lost", "onInternetStatusChange" : "Triggered when internet connection state changed" }, "result": { @@ -1028,8 +1028,8 @@ "StartWPS":{ "summary": "Initiates a connection using Wifi Protected Setup (WPS). An existing connection will be disconnected before attempting to initiate a new connection. Failure in WPS pairing will trigger an error event.\n\nIf the `method` parameter is set to `SERIALIZED_PIN`, then RDK retrieves the serialized pin using the Manufacturer (MFR) API. If the `method` parameter is set to `PIN`, then RDK use the pin supplied as part of the request. If the `method` parameter is set to `PBC`, then RDK uses Push Button Configuration (PBC) to obtain the pin.", "events":{ - "onWIFIStateChanged" : "Triggered when Wifi state changes to DISCONNECTED (only if currently connected), CONNECTING, CONNECTED.", - "onIPAddressChanged" : "Triggered when an IP Address is assigned or lost", + "onWIFIStateChange" : "Triggered when Wifi state changes to DISCONNECTED (only if currently connected), CONNECTING, CONNECTED.", + "onAddressChange" : "Triggered when an IP Address is assigned or lost", "onInternetStatusChange" : "Triggered when internet connection state changed" }, "params": { @@ -1072,7 +1072,7 @@ "StopWPS":{ "summary": "Cancels the in-progress WPS pairing operation. The operation forcefully stops the in-progress pairing attempt and aborts the current scan. WPS pairing must be in-progress for the operation to succeed.", "events":{ - "onWIFIStateChanged" : "Triggered when Wifi state changes to DISCONNECTED." + "onWIFIStateChange" : "Triggered when Wifi state changes to DISCONNECTED." }, "result": { "type": "object", @@ -1089,7 +1089,7 @@ "GetWiFiSignalStrength":{ "summary": "Get WiFiSignalStrength of connected SSID.", "events":{ - "onWiFiSignalStrengthChanged" : "Triggered when Wifi signal strength switches between Excellent, Good, Fair, Weak." + "onWiFiSignalStrengthChange" : "Triggered when Wifi signal strength switches between Excellent, Good, Fair, Weak." }, "result": { "type": "object", @@ -1228,7 +1228,7 @@ } }, "events": { - "onInterfaceStateChanged":{ + "onInterfaceStateChange":{ "summary": "Triggered when an interface state is changed. The possible states are \n* 'INTERFACE_ADDED' \n* 'INTERFACE_LINK_UP' \n* 'INTERFACE_LINK_DOWN' \n* 'INTERFACE_ACQUIRING_IP' \n* 'INTERFACE_REMOVED' \n* 'INTERFACE_DISABLED' \n", "params": { "type": "object", @@ -1248,7 +1248,7 @@ ] } }, - "onIPAddressChanged":{ + "onAddressChange":{ "summary": "Triggered when an IP Address is assigned or lost.", "params": { "type": "object", @@ -1284,7 +1284,7 @@ ] } }, - "onActiveInterfaceChanged":{ + "onActiveInterfaceChange":{ "summary": "Triggered when the primary/active interface changes, regardless if it's from a system operation or through the `SetPrimaryInterface` method.", "params": { "type": "object", @@ -1383,13 +1383,13 @@ } } }, - "onWiFiStateChanged":{ + "onWiFiStateChange":{ "summary": "Triggered when WIFI connection state get changed. The possible states are, \n * '0' - 'WIFI_STATE_UNINSTALLED' \n * '1' - 'WIFI_STATE_DISABLED' \n * '2' - 'WIFI_STATE_DISCONNECTED' \n * '3' - 'WIFI_STATE_PAIRING' \n * '4' - 'WIFI_STATE_CONNECTING' \n * '5' - 'WIFI_STATE_CONNECTED' \n * '6' - 'WIFI_STATE_SSID_NOT_FOUND' \n * '7' - 'WIFI_STATE_SSID_CHANGED' \n * '8' - 'WIFI_STATE_CONNECTION_LOST' \n * '9' - 'WIFI_STATE_CONNECTION_FAILED' \n * '10'- 'WIFI_STATE_CONNECTION_INTERRUPTED' \n * '11' - 'WIFI_STATE_INVALID_CREDENTIALS' \n * '12' - 'WIFI_STATE_AUTHENTICATION_FAILED' \n * '13' - 'WIFI_STATE_ERROR' \n", "params": { "type": "object", "properties": { "state":{ - "summary": "onWiFiStateChanged", + "summary": "onWiFiStateChange", "type": "integer", "example": "5" } @@ -1399,7 +1399,7 @@ ] } }, - "onWiFiSignalStrengthChanged":{ + "onWiFiSignalStrengthChange":{ "summary": "Triggered when WIFI connection Signal Strength get changed.", "params": { "type": "object", diff --git a/docs/api/NetworkManagerPlugin.md b/docs/api/NetworkManagerPlugin.md index bdc3fc2d47..58a93f7be7 100644 --- a/docs/api/NetworkManagerPlugin.md +++ b/docs/api/NetworkManagerPlugin.md @@ -199,10 +199,10 @@ Sets the primary/default interface for the device. This call fails if the interf | Event | Description | | :-------- | :-------- | -| [onActiveInterfaceChanged](#event.onActiveInterfaceChanged) | Triggered when device’s default interface changed. | -| [onInterfaceStateChanged](#event.onInterfaceStateChanged) | Triggered when interface’s state changed | -| [onIPAddressChanged](#event.onIPAddressChanged) | Triggered when the device connects to router. | -| [onInternetStatusChanged](#event.onInternetStatusChanged) | Triggered when each IP address is lost or acquired. | +| [onActiveInterfaceChange](#event.onActiveInterfaceChange) | Triggered when device’s default interface changed. | +| [onInterfaceStateChange](#event.onInterfaceStateChange) | Triggered when interface’s state changed | +| [onAddressChange](#event.onAddressChange) | Triggered when the device connects to router. | +| [onInternetStatusChange](#event.onInternetStatusChange) | Triggered when each IP address is lost or acquired. | ### Parameters | Name | Type | Description | @@ -325,8 +325,8 @@ Sets the IP settings for the given interface. | Event | Description | | :-------- | :-------- | -| [onIPAddressChanged](#event.onIPAddressChanged) | Triggered when the device connects to router. | -| [onInternetStatusChanged](#event.onInternetStatusChanged) | Triggered when each IP address is lost or acquired. | +| [onAddressChange](#event.onAddressChange) | Triggered when the device connects to router. | +| [onInternetStatusChange](#event.onInternetStatusChange) | Triggered when each IP address is lost or acquired. | ### Parameters | Name | Type | Description | @@ -701,7 +701,7 @@ Enable a continuous monitoring of internet connectivity with heart beat interval | Event | Description | | :-------- | :-------- | -| [onInternetStatusChanged](#event.onInternetStatusChanged) | Triggered when internet connection state changed. | +| [onInternetStatusChange](#event.onInternetStatusChange) | Triggered when internet connection state changed. | ### Parameters | Name | Type | Description | @@ -1200,8 +1200,8 @@ Remove given SSID from saved SSIDs. This method just removes from the list and o | Event | Description | | :-------- | :-------- | -| [onWiFiStateChanged](#event.onWiFiStateChanged) | Triggered when Wifi state changes to DISCONNECTED | -| [onIPAddressChanged](#event.onIPAddressChanged) | Triggered when an IP Address is assigned or lost | +| [onWiFiStateChange](#event.onWiFiStateChange) | Triggered when Wifi state changes to DISCONNECTED | +| [onAddressChange](#event.onAddressChange) | Triggered when an IP Address is assigned or lost | | [onInternetStatusChange](#event.onInternetStatusChange) | Triggered when internet connection state changed | ### Parameters @@ -1253,7 +1253,7 @@ Initiates request to connect to the specified SSID with the given passphrase. Pa | Event | Description | | :-------- | :-------- | -| [onWiFiStateChanged](#event.onWiFiStateChanged) | Triggered when Wifi state changes to CONNECTING, CONNECTED . | +| [onWiFiStateChange](#event.onWiFiStateChange) | Triggered when Wifi state changes to CONNECTING, CONNECTED . | ### Parameters | Name | Type | Description | @@ -1308,8 +1308,8 @@ Disconnects from the currently connected SSID. A event will be posted upon compl | Event | Description | | :-------- | :-------- | -| [onWIFIStateChanged](#event.onWIFIStateChanged) | Triggered when Wifi state changes to DISCONNECTED (only if currently connected). | -| [onIPAddressChanged](#event.onIPAddressChanged) | Triggered when an IP Address is assigned or lost | +| [onWIFIStateChange](#event.onWIFIStateChange) | Triggered when Wifi state changes to DISCONNECTED (only if currently connected). | +| [onAddressChange](#event.onAddressChange) | Triggered when an IP Address is assigned or lost | | [onInternetStatusChange](#event.onInternetStatusChange) | Triggered when internet connection state changed | ### Parameters @@ -1415,8 +1415,8 @@ If the `method` parameter is set to `SERIALIZED_PIN`, then RDK retrieves the ser | Event | Description | | :-------- | :-------- | -| [onWIFIStateChanged](#event.onWIFIStateChanged) | Triggered when Wifi state changes to DISCONNECTED (only if currently connected), CONNECTING, CONNECTED. | -| [onIPAddressChanged](#event.onIPAddressChanged) | Triggered when an IP Address is assigned or lost | +| [onWIFIStateChange](#event.onWIFIStateChange) | Triggered when Wifi state changes to DISCONNECTED (only if currently connected), CONNECTING, CONNECTED. | +| [onAddressChange](#event.onAddressChange) | Triggered when an IP Address is assigned or lost | | [onInternetStatusChange](#event.onInternetStatusChange) | Triggered when internet connection state changed | ### Parameters @@ -1472,7 +1472,7 @@ Cancels the in-progress WPS pairing operation. The operation forcefully stops th | Event | Description | | :-------- | :-------- | -| [onWIFIStateChanged](#event.onWIFIStateChanged) | Triggered when Wifi state changes to DISCONNECTED. | +| [onWIFIStateChange](#event.onWIFIStateChange) | Triggered when Wifi state changes to DISCONNECTED. | ### Parameters This method takes no parameters. @@ -1517,7 +1517,7 @@ Get WiFiSignalStrength of connected SSID. | Event | Description | | :-------- | :-------- | -| [onWiFiSignalStrengthChanged](#event.onWiFiSignalStrengthChanged) | Triggered when Wifi signal strength switches between Excellent, Good, Fair, Weak. | +| [onWiFiSignalStrengthChange](#event.onWiFiSignalStrengthChange) | Triggered when Wifi signal strength switches between Excellent, Good, Fair, Weak. | ### Parameters This method takes no parameters. @@ -1704,17 +1704,17 @@ NetworkManager interface events: | Event | Description | | :-------- | :-------- | -| [onInterfaceStateChanged](#event.onInterfaceStateChanged) | Triggered when an interface state is changed | -| [onIPAddressChanged](#event.onIPAddressChanged) | Triggered when an IP Address is assigned or lost | -| [onActiveInterfaceChanged](#event.onActiveInterfaceChanged) | Triggered when the primary/active interface changes, regardless if it's from a system operation or through the `SetPrimaryInterface` method | +| [onInterfaceStateChange](#event.onInterfaceStateChange) | Triggered when an interface state is changed | +| [onAddressChange](#event.onAddressChange) | Triggered when an IP Address is assigned or lost | +| [onActiveInterfaceChange](#event.onActiveInterfaceChange) | Triggered when the primary/active interface changes, regardless if it's from a system operation or through the `SetPrimaryInterface` method | | [onInternetStatusChange](#event.onInternetStatusChange) | Triggered when internet connection state changed | | [onAvailableSSIDs](#event.onAvailableSSIDs) | Triggered when scan completes or when scan cancelled | -| [onWiFiStateChanged](#event.onWiFiStateChanged) | Triggered when WIFI connection state get changed | -| [onWiFiSignalStrengthChanged](#event.onWiFiSignalStrengthChanged) | Triggered when WIFI connection Signal Strength get changed | +| [onWiFiStateChange](#event.onWiFiStateChange) | Triggered when WIFI connection state get changed | +| [onWiFiSignalStrengthChange](#event.onWiFiSignalStrengthChange) | Triggered when WIFI connection Signal Strength get changed | - -## *onInterfaceStateChanged [event](#head.Notifications)* + +## *onInterfaceStateChange [event](#head.Notifications)* Triggered when an interface state is changed. The possible states are * 'INTERFACE_ADDED' @@ -1738,7 +1738,7 @@ Triggered when an interface state is changed. The possible states are ```json { "jsonrpc": "2.0", - "method": "client.events.onInterfaceStateChanged", + "method": "client.events.onInterfaceStateChange", "params": { "interface": "wlan0", "state": "INTERFACE_ADDED" @@ -1746,8 +1746,8 @@ Triggered when an interface state is changed. The possible states are } ``` - -## *onIPAddressChanged [event](#head.Notifications)* + +## *onAddressChange [event](#head.Notifications)* Triggered when an IP Address is assigned or lost. @@ -1766,7 +1766,7 @@ Triggered when an IP Address is assigned or lost. ```json { "jsonrpc": "2.0", - "method": "client.events.onIPAddressChanged", + "method": "client.events.onAddressChange", "params": { "interface": "wlan0", "isIPv6": false, @@ -1776,8 +1776,8 @@ Triggered when an IP Address is assigned or lost. } ``` - -## *onActiveInterfaceChanged [event](#head.Notifications)* + +## *onActiveInterfaceChange [event](#head.Notifications)* Triggered when the primary/active interface changes, regardless if it's from a system operation or through the `SetPrimaryInterface` method. @@ -1794,7 +1794,7 @@ Triggered when the primary/active interface changes, regardless if it's from a s ```json { "jsonrpc": "2.0", - "method": "client.events.onActiveInterfaceChanged", + "method": "client.events.onActiveInterfaceChange", "params": { "oldInterfaceName": "wlan0", "newInterfaceName": "eth0" @@ -1868,8 +1868,8 @@ Triggered when scan completes or when scan cancelled. } ``` - -## *onWiFiStateChanged [event](#head.Notifications)* + +## *onWiFiStateChange [event](#head.Notifications)* Triggered when WIFI connection state get changed. The possible states are, * '0' - 'WIFI_STATE_UNINSTALLED' @@ -1893,22 +1893,22 @@ Triggered when WIFI connection state get changed. The possible states are, | Name | Type | Description | | :-------- | :-------- | :-------- | | params | object | | -| params.state | integer | onWiFiStateChanged | +| params.state | integer | onWiFiStateChange | ### Example ```json { "jsonrpc": "2.0", - "method": "client.events.onWiFiStateChanged", + "method": "client.events.onWiFiStateChange", "params": { "state": 5 } } ``` - -## *onWiFiSignalStrengthChanged [event](#head.Notifications)* + +## *onWiFiSignalStrengthChange [event](#head.Notifications)* Triggered when WIFI connection Signal Strength get changed. @@ -1918,19 +1918,19 @@ Triggered when WIFI connection Signal Strength get changed. | :-------- | :-------- | :-------- | | params | object | | | params.ssid | string | Signal Strength changed SSID | -| params.signalStrength | string | Signal Strength | -| params.quality | string | Signal quality | +| params.signalLevel | string | Signal Strength | +| params.signalQuality | string | Signal quality | ### Example ```json { "jsonrpc": "2.0", - "method": "client.events.onWiFiSignalStrengthChanged", + "method": "client.events.onWiFiSignalStrengthChange", "params": { "ssid": "home-new_123", - "signalStrength": "-27.000000", - "quality": "Excellent" + "signalLevel": "-27.000000", + "signalQuality": "Excellent" } } ```