Start Someip Sd Watcher
Starts SOME/IP SD listener on a given channel.
Arguments Description
**channel_name (str): The bus name
- sd_entry_filter (dict, optional): dict of filter to be applied on received SOME/IP SD frames,
only frames which match this filter will be stored in the queue.
Example {“ttl”:0x03 , instance_id :0x001} *for syntax you can check the andi sdk documentation *
- sd_message_filter (dict, optional): filter to be applied on received frames, only frames which match this
filter will be stored in the queue.
Example {‘someip_header’: {‘service_identifier’: 0x1001,’method_identifier’:0x01,’message_type’:0x02}} Example {‘someip_header’:{‘service_identifier’:0x1234,’method_identifier’:0x1001, ‘message_type’:0x02}
,’ipv4_header’: {‘ip_address_source’: ‘ip_add’}}
- Syntax for someip_header layer keys:
|"someip_header"| |"message_id"| |"service_identifier"| |"method_identifier"| |"request_id"| |"return_code"|
for syntax you can check the andi sdk documentation
- silent_mode (bool, optional): Flag to choose the listening mode. (Default to True)
When silent_mode = False, both, the MTF-Pyapi and MTF-Core callbacks will work. Else When silent_mode = True, only the MTF-Core callback will be activated.**
Returns
bool: True if the someip_sd watcher is started. False otherwise.
Example
${someip}= Create Dictionary ${service_identifier} ${method_identifier} ${message_type}${ip}= Create Dictionary ${ip_address_source}${sd_message_filter}= Create Dictionary someip_header=${someip} ipv4_header=${ip}${sd_entry_filter}= Create Dictionary ${ttl} ${instance_id}${res}= start_someip_sd_watcher ${channel_name} ${sd_entry_filter} ${sd_message_filter}