Source code for RsCmwWcdmaSig.Implementations.Configure_.Sms_.Outgoing

from ....Internal.Core import Core
from ....Internal.CommandsGroup import CommandsGroup
from ....Internal import Conversions
from ....Internal.Utilities import trim_str_response
from .... import enums


# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
[docs]class Outgoing: """Outgoing commands group definition. 17 total commands, 2 Sub-groups, 12 group commands""" def __init__(self, core: Core, parent): self._core = core self._base = CommandsGroup("outgoing", core, parent) @property def sctStamp(self): """sctStamp commands group. 0 Sub-classes, 3 commands.""" if not hasattr(self, '_sctStamp'): from .Outgoing_.SctStamp import SctStamp self._sctStamp = SctStamp(self._core, self._base) return self._sctStamp @property def file(self): """file commands group. 0 Sub-classes, 2 commands.""" if not hasattr(self, '_file'): from .Outgoing_.File import File self._file = File(self._core, self._base) return self._file
[docs] def get_binary(self) -> float: """SCPI: CONFigure:WCDMa:SIGNaling<instance>:SMS:OUTGoing:BINary \n Snippet: value: float = driver.configure.sms.outgoing.get_binary() \n Defines the SMS message encoded as 8-bit binary data. \n :return: sms_binary: SMS message in hexadecimal format. """ response = self._core.io.query_str('CONFigure:WCDMa:SIGNaling<Instance>:SMS:OUTGoing:BINary?') return Conversions.str_to_float(response)
[docs] def set_binary(self, sms_binary: float) -> None: """SCPI: CONFigure:WCDMa:SIGNaling<instance>:SMS:OUTGoing:BINary \n Snippet: driver.configure.sms.outgoing.set_binary(sms_binary = 1.0) \n Defines the SMS message encoded as 8-bit binary data. \n :param sms_binary: SMS message in hexadecimal format. """ param = Conversions.decimal_value_to_str(sms_binary) self._core.io.write(f'CONFigure:WCDMa:SIGNaling<Instance>:SMS:OUTGoing:BINary {param}')
[docs] def get_pidentifier(self) -> float: """SCPI: CONFigure:WCDMa:SIGNaling<instance>:SMS:OUTGoing:PIDentifier \n Snippet: value: float = driver.configure.sms.outgoing.get_pidentifier() \n Specifies the SMS protocol identifier. \n :return: idn: Range: 0 to 255 """ response = self._core.io.query_str('CONFigure:WCDMa:SIGNaling<Instance>:SMS:OUTGoing:PIDentifier?') return Conversions.str_to_float(response)
[docs] def set_pidentifier(self, idn: float) -> None: """SCPI: CONFigure:WCDMa:SIGNaling<instance>:SMS:OUTGoing:PIDentifier \n Snippet: driver.configure.sms.outgoing.set_pidentifier(idn = 1.0) \n Specifies the SMS protocol identifier. \n :param idn: Range: 0 to 255 """ param = Conversions.decimal_value_to_str(idn) self._core.io.write(f'CONFigure:WCDMa:SIGNaling<Instance>:SMS:OUTGoing:PIDentifier {param}')
[docs] def get_udheader(self) -> float or bool: """SCPI: CONFigure:WCDMa:SIGNaling<Instance>:SMS:OUTGoing:UDHeader \n Snippet: value: float or bool = driver.configure.sms.outgoing.get_udheader() \n Configures the TP user data header. \n :return: header: Up to 16 hexadecimal digits Range: #H0 to #HFFFFFFFFFFFFFFFF Additional parameters: OFF | ON (disables | enables sending the header) """ response = self._core.io.query_str('CONFigure:WCDMa:SIGNaling<Instance>:SMS:OUTGoing:UDHeader?') return Conversions.str_to_float_or_bool(response)
[docs] def set_udheader(self, header: float or bool) -> None: """SCPI: CONFigure:WCDMa:SIGNaling<Instance>:SMS:OUTGoing:UDHeader \n Snippet: driver.configure.sms.outgoing.set_udheader(header = 1.0) \n Configures the TP user data header. \n :param header: Up to 16 hexadecimal digits Range: #H0 to #HFFFFFFFFFFFFFFFF Additional parameters: OFF | ON (disables | enables sending the header) """ param = Conversions.decimal_or_bool_value_to_str(header) self._core.io.write(f'CONFigure:WCDMa:SIGNaling<Instance>:SMS:OUTGoing:UDHeader {param}')
# noinspection PyTypeChecker
[docs] def get_dcoding(self) -> enums.SmsDataCoding: """SCPI: CONFigure:WCDMa:SIGNaling<instance>:SMS:OUTGoing:DCODing \n Snippet: value: enums.SmsDataCoding = driver.configure.sms.outgoing.get_dcoding() \n Defines the short message coding. \n :return: data_coding: BIT7 | BIT8 | REServed BIT7: GSM 7-bit default alphabet BIT8: 8-bit data for SMS binary REServed: reserved character set """ response = self._core.io.query_str('CONFigure:WCDMa:SIGNaling<Instance>:SMS:OUTGoing:DCODing?') return Conversions.str_to_scalar_enum(response, enums.SmsDataCoding)
[docs] def set_dcoding(self, data_coding: enums.SmsDataCoding) -> None: """SCPI: CONFigure:WCDMa:SIGNaling<instance>:SMS:OUTGoing:DCODing \n Snippet: driver.configure.sms.outgoing.set_dcoding(data_coding = enums.SmsDataCoding.BIT7) \n Defines the short message coding. \n :param data_coding: BIT7 | BIT8 | REServed BIT7: GSM 7-bit default alphabet BIT8: 8-bit data for SMS binary REServed: reserved character set """ param = Conversions.enum_scalar_to_str(data_coding, enums.SmsDataCoding) self._core.io.write(f'CONFigure:WCDMa:SIGNaling<Instance>:SMS:OUTGoing:DCODing {param}')
# noinspection PyTypeChecker
[docs] def get_cgroup(self) -> enums.CodingGroup: """SCPI: CONFigure:WCDMa:SIGNaling<instance>:SMS:OUTGoing:CGRoup \n Snippet: value: enums.CodingGroup = driver.configure.sms.outgoing.get_cgroup() \n Defines how to interpret SMS signaling information. Coding groups are defined in 3GPP TS 23.038 chapter 4. \n :return: coding_group: GDCoding | DCMClass | REServed GDCoding: general data coding DCMClass: data coding / message class REServed: reserved coding groups """ response = self._core.io.query_str('CONFigure:WCDMa:SIGNaling<Instance>:SMS:OUTGoing:CGRoup?') return Conversions.str_to_scalar_enum(response, enums.CodingGroup)
[docs] def set_cgroup(self, coding_group: enums.CodingGroup) -> None: """SCPI: CONFigure:WCDMa:SIGNaling<instance>:SMS:OUTGoing:CGRoup \n Snippet: driver.configure.sms.outgoing.set_cgroup(coding_group = enums.CodingGroup.DCMClass) \n Defines how to interpret SMS signaling information. Coding groups are defined in 3GPP TS 23.038 chapter 4. \n :param coding_group: GDCoding | DCMClass | REServed GDCoding: general data coding DCMClass: data coding / message class REServed: reserved coding groups """ param = Conversions.enum_scalar_to_str(coding_group, enums.CodingGroup) self._core.io.write(f'CONFigure:WCDMa:SIGNaling<Instance>:SMS:OUTGoing:CGRoup {param}')
# noinspection PyTypeChecker
[docs] def get_mclass(self) -> enums.MessageClass: """SCPI: CONFigure:WCDMa:SIGNaling<instance>:SMS:OUTGoing:MCLass \n Snippet: value: enums.MessageClass = driver.configure.sms.outgoing.get_mclass() \n Specifies default routing of SMS as defined in 3GPP TS 23.038. The UEs override the default routing by selecting their own routing. \n :return: message_class: CL0 | CL1 | CL2 | CL3 | NONE CL0: class 0, SMS not to be stored automatically CL1: SMS to be stored in mobile equipment CL2: SMS to be stored in (U) SIM CL3: SMS to be stored in terminal equipment (see 3GPP TS 27.005) NONE: no message class (relevant only for general data coding) """ response = self._core.io.query_str('CONFigure:WCDMa:SIGNaling<Instance>:SMS:OUTGoing:MCLass?') return Conversions.str_to_scalar_enum(response, enums.MessageClass)
[docs] def set_mclass(self, message_class: enums.MessageClass) -> None: """SCPI: CONFigure:WCDMa:SIGNaling<instance>:SMS:OUTGoing:MCLass \n Snippet: driver.configure.sms.outgoing.set_mclass(message_class = enums.MessageClass.CL0) \n Specifies default routing of SMS as defined in 3GPP TS 23.038. The UEs override the default routing by selecting their own routing. \n :param message_class: CL0 | CL1 | CL2 | CL3 | NONE CL0: class 0, SMS not to be stored automatically CL1: SMS to be stored in mobile equipment CL2: SMS to be stored in (U) SIM CL3: SMS to be stored in terminal equipment (see 3GPP TS 27.005) NONE: no message class (relevant only for general data coding) """ param = Conversions.enum_scalar_to_str(message_class, enums.MessageClass) self._core.io.write(f'CONFigure:WCDMa:SIGNaling<Instance>:SMS:OUTGoing:MCLass {param}')
[docs] def get_os_address(self) -> str: """SCPI: CONFigure:WCDMa:SIGNaling<instance>:SMS:OUTGoing:OSADdress \n Snippet: value: str = driver.configure.sms.outgoing.get_os_address() \n Specifies the phone number of SMS center. \n :return: orig_smsca_ddress: No help available """ response = self._core.io.query_str('CONFigure:WCDMa:SIGNaling<Instance>:SMS:OUTGoing:OSADdress?') return trim_str_response(response)
[docs] def set_os_address(self, orig_smsca_ddress: str) -> None: """SCPI: CONFigure:WCDMa:SIGNaling<instance>:SMS:OUTGoing:OSADdress \n Snippet: driver.configure.sms.outgoing.set_os_address(orig_smsca_ddress = '1') \n Specifies the phone number of SMS center. \n :param orig_smsca_ddress: No help available """ param = Conversions.value_to_quoted_str(orig_smsca_ddress) self._core.io.write(f'CONFigure:WCDMa:SIGNaling<Instance>:SMS:OUTGoing:OSADdress {param}')
[docs] def get_oaddress(self) -> str: """SCPI: CONFigure:WCDMa:SIGNaling<instance>:SMS:OUTGoing:OADDress \n Snippet: value: str = driver.configure.sms.outgoing.get_oaddress() \n Specifies the phone number of the device which has sent SMS. \n :return: orig_address: No help available """ response = self._core.io.query_str('CONFigure:WCDMa:SIGNaling<Instance>:SMS:OUTGoing:OADDress?') return trim_str_response(response)
[docs] def set_oaddress(self, orig_address: str) -> None: """SCPI: CONFigure:WCDMa:SIGNaling<instance>:SMS:OUTGoing:OADDress \n Snippet: driver.configure.sms.outgoing.set_oaddress(orig_address = '1') \n Specifies the phone number of the device which has sent SMS. \n :param orig_address: No help available """ param = Conversions.value_to_quoted_str(orig_address) self._core.io.write(f'CONFigure:WCDMa:SIGNaling<Instance>:SMS:OUTGoing:OADDress {param}')
[docs] def get_rmc_delay(self) -> float or bool: """SCPI: CONFigure:WCDMa:SIGNaling<instance>:SMS:OUTGoing:RMCDelay \n Snippet: value: float or bool = driver.configure.sms.outgoing.get_rmc_delay() \n Defines the time between sending of an SMS message and re-establishment of the RMC connection. \n :return: delay: Range: 1 s to 5 s Additional parameters: OFF | ON (disables the delay | enables the delay using the previous/default value) """ response = self._core.io.query_str('CONFigure:WCDMa:SIGNaling<Instance>:SMS:OUTGoing:RMCDelay?') return Conversions.str_to_float_or_bool(response)
[docs] def set_rmc_delay(self, delay: float or bool) -> None: """SCPI: CONFigure:WCDMa:SIGNaling<instance>:SMS:OUTGoing:RMCDelay \n Snippet: driver.configure.sms.outgoing.set_rmc_delay(delay = 1.0) \n Defines the time between sending of an SMS message and re-establishment of the RMC connection. \n :param delay: Range: 1 s to 5 s Additional parameters: OFF | ON (disables the delay | enables the delay using the previous/default value) """ param = Conversions.decimal_or_bool_value_to_str(delay) self._core.io.write(f'CONFigure:WCDMa:SIGNaling<Instance>:SMS:OUTGoing:RMCDelay {param}')
# noinspection PyTypeChecker
[docs] def get_lhandling(self) -> enums.LongSmsHandling: """SCPI: CONFigure:WCDMa:SIGNaling<instance>:SMS:OUTGoing:LHANdling \n Snippet: value: enums.LongSmsHandling = driver.configure.sms.outgoing.get_lhandling() \n Defines the handling of an SMS message exceeding 160 characters. \n :return: lsms_handling: TRUNcate | MSMS TRUNcate: truncate MSMS: multiple SMS """ response = self._core.io.query_str('CONFigure:WCDMa:SIGNaling<Instance>:SMS:OUTGoing:LHANdling?') return Conversions.str_to_scalar_enum(response, enums.LongSmsHandling)
[docs] def set_lhandling(self, lsms_handling: enums.LongSmsHandling) -> None: """SCPI: CONFigure:WCDMa:SIGNaling<instance>:SMS:OUTGoing:LHANdling \n Snippet: driver.configure.sms.outgoing.set_lhandling(lsms_handling = enums.LongSmsHandling.MSMS) \n Defines the handling of an SMS message exceeding 160 characters. \n :param lsms_handling: TRUNcate | MSMS TRUNcate: truncate MSMS: multiple SMS """ param = Conversions.enum_scalar_to_str(lsms_handling, enums.LongSmsHandling) self._core.io.write(f'CONFigure:WCDMa:SIGNaling<Instance>:SMS:OUTGoing:LHANdling {param}')
# noinspection PyTypeChecker
[docs] def get_mes_handling(self) -> enums.MessageHandling: """SCPI: CONFigure:WCDMa:SIGNaling<instance>:SMS:OUTGoing:MESHandling \n Snippet: value: enums.MessageHandling = driver.configure.sms.outgoing.get_mes_handling() \n Specifies whether the outgoing message text is entered manually via method RsCmwWcdmaSig.Configure.Sms.Outgoing.internal or an existing SMS file is used. The SMS file is selected via method RsCmwWcdmaSig.Configure.Sms.Outgoing.File.value. \n :return: message_handling: INTernal | FILE INTernal: content entered manually FILE: specified *.sms file is used """ response = self._core.io.query_str('CONFigure:WCDMa:SIGNaling<Instance>:SMS:OUTGoing:MESHandling?') return Conversions.str_to_scalar_enum(response, enums.MessageHandling)
[docs] def set_mes_handling(self, message_handling: enums.MessageHandling) -> None: """SCPI: CONFigure:WCDMa:SIGNaling<instance>:SMS:OUTGoing:MESHandling \n Snippet: driver.configure.sms.outgoing.set_mes_handling(message_handling = enums.MessageHandling.FILE) \n Specifies whether the outgoing message text is entered manually via method RsCmwWcdmaSig.Configure.Sms.Outgoing.internal or an existing SMS file is used. The SMS file is selected via method RsCmwWcdmaSig.Configure.Sms.Outgoing.File.value. \n :param message_handling: INTernal | FILE INTernal: content entered manually FILE: specified *.sms file is used """ param = Conversions.enum_scalar_to_str(message_handling, enums.MessageHandling) self._core.io.write(f'CONFigure:WCDMa:SIGNaling<Instance>:SMS:OUTGoing:MESHandling {param}')
[docs] def get_internal(self) -> str: """SCPI: CONFigure:WCDMa:SIGNaling<instance>:SMS:OUTGoing:INTernal \n Snippet: value: str = driver.configure.sms.outgoing.get_internal() \n Defines the message text for SMS messages to be sent to the UE. It is encoded as 7-bit ASCII text. \n :return: sms_internal: String with up to 800 characters """ response = self._core.io.query_str('CONFigure:WCDMa:SIGNaling<Instance>:SMS:OUTGoing:INTernal?') return trim_str_response(response)
[docs] def set_internal(self, sms_internal: str) -> None: """SCPI: CONFigure:WCDMa:SIGNaling<instance>:SMS:OUTGoing:INTernal \n Snippet: driver.configure.sms.outgoing.set_internal(sms_internal = '1') \n Defines the message text for SMS messages to be sent to the UE. It is encoded as 7-bit ASCII text. \n :param sms_internal: String with up to 800 characters """ param = Conversions.value_to_quoted_str(sms_internal) self._core.io.write(f'CONFigure:WCDMa:SIGNaling<Instance>:SMS:OUTGoing:INTernal {param}')
def clone(self) -> 'Outgoing': """Clones the group by creating new object from it and its whole existing sub-groups Also copies all the existing default Repeated Capabilities setting, which you can change independently without affecting the original group""" new_group = Outgoing(self._core, self._base.parent) self._base.synchronize_repcaps(new_group) return new_group