crash.software
Projects
Pull Requests
Issues
Builds
CatSniffer
Code
Files
Commits
Branches
Tags
Pull Requests
Code Comments
Code Compare
Issues
List
Boards
Milestones
Builds
Statistics
Contributions
Source Lines
Child Projects
Projects
STRLCPY
CatSniffer
Files
🤬
Sign In
pycatsniffer
ROOT
/
firmware
/
ot-cc13x2-cc26x2
/
openthread
/
tests
/
scripts
/
thread-cert
/
node.py
Search
History
2992 lines
|
ISO-8859-1
|
97 KB
Blame
Outline
2
4
8
No wrap
Soft wrap
Outline
binascii
ipaddress
logging
os
re
socket
subprocess
sys
time
traceback
unittest
Union
Dict
Optional
List
pexpect
pexpect.popen_spawn
config
simulator
thread_cert
PORT_OFFSET
OtbrDocker
RESET_DELAY
_socat_proc
_ot_rcp_proc
_docker_proc
_docker_name
_rcp_device_pty
_rcp_device
pexpect
__init__
(self,nodeid:int,**kwargs)
_prepare_ot_rcp_sim
(self,nodeid:int)
_get_ot_rcp_path
(self)
_launch_docker
(self)
__repr__
(self)
destroy
(self)
_shutdown_docker
(self)
_shutdown_ot_rcp
(self)
_shutdown_socat
(self)
bash
(self,cmd:str,encoding='ascii')
dns_dig
(self,server:str,name:str,qtype:str)
__parse_dns_dig_txt
(self,line:str)
_setup_sysctl
(self)
OtCli
RESET_DELAY
verbose
node_type
env_version
is_bbr
_initialized
_cmd_prefix
version
pexpect
is_posix
__init__
(self,nodeid,is_mtd=False,version=None,is_bbr=False,**kwargs)
__init_sim
(self,nodeid,mode)
__init_ncp_sim
(self,nodeid,mode)
__init_soc
(self,nodeid)
destroy
(self)
NodeImpl
is_host
is_otbr
nodeid
name
is_posix
simulator
__init__
(self,nodeid,name=None,simulator=None,**kwargs)
_expect
(self,pattern,timeout=-1,*args,**kwargs)
_expect_done
(self,timeout=-1)
_prepare_pattern
(self,pattern)
_expect_result
(self,pattern,*args,**kwargs)
_expect_results
(self,pattern,*args,**kwargs)
_expect_command_output
(self,cmd:str,ignore_logs=True)
__is_logging_line
(self,line:str)
read_cert_messages_in_commissioning_log
(self,timeout=-1)
_extract_cert_message
(self,log)
send_command
(self,cmd,go=True)
get_commands
(self)
set_mode
(self,mode)
debug
(self,level)
start
(self)
stop
(self)
interface_up
(self)
interface_down
(self)
thread_start
(self)
thread_stop
(self)
commissioner_start
(self)
commissioner_stop
(self)
commissioner_state
(self)
commissioner_add_joiner
(self,addr,psk)
commissioner_set_provisioning_url
(self,provisioning_url='')
joiner_start
(self,pskd='',provisioning_url='')
clear_allowlist
(self)
enable_allowlist
(self)
disable_allowlist
(self)
add_allowlist
(self,addr,rssi=None)
get_bbr_registration_jitter
(self)
set_bbr_registration_jitter
(self,jitter)
srp_server_set_enabled
(self,enable)
srp_server_set_lease_range
(self,min_lease,max_lease,min_key_lease,max_key_lease)
srp_server_get_hosts
(self)
srp_server_get_host
(self,host_name)
srp_server_get_services
(self)
srp_server_get_service
(self,instance_name,service_name)
get_srp_server_port
(self)
srp_client_start
(self,server_address,server_port)
srp_client_stop
(self)
srp_client_get_state
(self)
srp_client_get_auto_start_mode
(self)
srp_client_enable_auto_start_mode
(self)
srp_client_disable_auto_start_mode
(self)
srp_client_get_server_address
(self)
srp_client_get_server_port
(self)
srp_client_get_host_state
(self)
srp_client_set_host_name
(self,name)
srp_client_get_host_name
(self)
srp_client_remove_host
(self,remove_key=False)
srp_client_clear_host
(self)
srp_client_set_host_address
(self,*addrs:str)
srp_client_get_host_address
(self)
srp_client_add_service
(self,instance_name,service_name,port,priority=0,weight=0,txt_entries=[])
srp_client_remove_service
(self,instance_name,service_name)
srp_client_clear_service
(self,instance_name,service_name)
srp_client_get_services
(self)
_encode_txt_entry
(self,entry)
_parse_srp_client_service
(self,line:str)
enable_backbone_router
(self)
disable_backbone_router
(self)
register_backbone_router
(self)
get_backbone_router_state
(self)
is_primary_backbone_router
(self)
get_backbone_router
(self)
set_backbone_router
(self,seqno=None,reg_delay=None,mlr_timeout=None)
set_domain_prefix
(self,prefix,flags='prosD')
remove_domain_prefix
(self,prefix)
set_next_dua_response
(self,status:Union[str,int],iid=None)
set_dua_iid
(self,iid:str)
clear_dua_iid
(self)
multicast_listener_list
(self)
multicast_listener_clear
(self)
multicast_listener_add
(self,ip:Union[ipaddress.IPv6Address,str],timeout:int=0)
set_next_mlr_response
(self,status:int)
register_multicast_listener
(self,*ipaddrs:Union[ipaddress.IPv6Address,str],timeout=None)
set_link_quality
(self,addr,lqi)
set_outbound_link_quality
(self,lqi)
remove_allowlist
(self,addr)
get_addr16
(self)
get_router_id
(self)
get_addr64
(self)
set_addr64
(self,addr64:str)
get_eui64
(self)
set_extpanid
(self,extpanid)
get_joiner_id
(self)
get_channel
(self)
set_channel
(self,channel)
get_networkkey
(self)
set_networkkey
(self,networkkey)
get_key_sequence_counter
(self)
set_key_sequence_counter
(self,key_sequence_counter)
set_key_switch_guardtime
(self,key_switch_guardtime)
set_network_id_timeout
(self,network_id_timeout)
_escape_escapable
(self,string)
get_network_name
(self)
set_network_name
(self,network_name)
get_panid
(self)
set_panid
(self,panid=config.PANID)
set_parent_priority
(self,priority)
get_preferred_partition_id
(self)
set_preferred_partition_id
(self,partition_id)
get_pollperiod
(self)
set_pollperiod
(self,pollperiod)
get_csl_info
(self)
set_csl_channel
(self,csl_channel)
set_csl_period
(self,csl_period)
set_csl_timeout
(self,csl_timeout)
send_mac_emptydata
(self)
send_mac_datarequest
(self)
set_router_upgrade_threshold
(self,threshold)
set_router_downgrade_threshold
(self,threshold)
get_router_downgrade_threshold
(self)
set_router_eligible
(self,enable:bool)
get_router_eligible
(self)
prefer_router_id
(self,router_id)
release_router_id
(self,router_id)
get_state
(self)
set_state
(self,state)
get_timeout
(self)
set_timeout
(self,timeout)
set_max_children
(self,number)
get_weight
(self)
set_weight
(self,weight)
add_ipaddr
(self,ipaddr)
del_ipaddr
(self,ipaddr)
add_ipmaddr
(self,ipmaddr)
del_ipmaddr
(self,ipmaddr)
get_addrs
(self)
get_mleid
(self)
get_linklocal
(self)
get_rloc
(self)
get_addr
(self,prefix)
has_ipaddr
(self,address)
get_ipmaddrs
(self)
has_ipmaddr
(self,address)
get_addr_leader_aloc
(self)
get_mleid_iid
(self)
get_eidcaches
(self)
add_service
(self,enterpriseNumber,serviceData,serverData)
remove_service
(self,enterpriseNumber,serviceData)
__getOmrAddress
(self)
__getLinkLocalAddress
(self)
__getGlobalAddress
(self)
__getRloc
(self)
__getAloc
(self)
__getMleid
(self)
__getDua
(self)
get_ip6_address
(self,address_type)
get_context_reuse_delay
(self)
set_context_reuse_delay
(self,delay)
add_prefix
(self,prefix,flags='paosr',prf='med')
remove_prefix
(self,prefix)
enable_br
(self)
disable_br
(self)
get_prefixes
(self)
get_routes
(self)
get_services
(self)
netdata_show
(self)
get_netdata
(self)
add_route
(self,prefix,stable=False,prf='med')
remove_route
(self,prefix)
register_netdata
(self)
send_network_diag_get
(self,addr,tlv_types)
send_network_diag_reset
(self,addr,tlv_types)
energy_scan
(self,mask,count,period,scan_duration,ipaddr)
panid_query
(self,panid,mask,ipaddr)
scan
(self,result=1)
ping
(self,ipaddr,num_responses=1,size=8,timeout=5,count=1,interval=1,hoplimit=64,interface=None)
reset
(self)
set_router_selection_jitter
(self,jitter)
set_active_dataset
(self,timestamp,panid=None,channel=None,channel_mask=None,network_key=None,security_policy=[],)
set_pending_dataset
(self,pendingtimestamp,activetimestamp,panid=None,channel=None,delay=None)
start_dataset_updater
(self,panid=None,channel=None)
announce_begin
(self,mask,count,period,ipaddr)
send_mgmt_active_set
(self,active_timestamp=None,channel=None,channel_mask=None,extended_panid=None,panid=None,network_key=None,mesh_local=None,network_name=None,security_policy=None,binary=None,)
send_mgmt_active_get
(self,addr='',tlvs=[])
send_mgmt_pending_get
(self,addr='',tlvs=[])
send_mgmt_pending_set
(self,pending_timestamp=None,active_timestamp=None,delay_timer=None,channel=None,panid=None,network_key=None,mesh_local=None,network_name=None,)
coap_cancel
(self)
coap_delete
(self,ipaddr,uri,con=False,payload=None)
coap_get
(self,ipaddr,uri,con=False,payload=None)
coap_get_block
(self,ipaddr,uri,size=16,count=0)
coap_observe
(self,ipaddr,uri,con=False,payload=None)
coap_post
(self,ipaddr,uri,con=False,payload=None)
coap_post_block
(self,ipaddr,uri,size=16,count=0)
coap_put
(self,ipaddr,uri,con=False,payload=None)
coap_put_block
(self,ipaddr,uri,size=16,count=0)
_coap_rq
(self,method,ipaddr,uri,con=False,payload=None)
_coap_rq_block
(self,method,ipaddr,uri,size=16,count=0)
coap_wait_response
(self)
coap_wait_request
(self)
coap_wait_subscribe
(self)
coap_wait_ack
(self)
coap_set_resource_path
(self,path)
coap_set_resource_path_block
(self,path,count=0)
coap_set_content
(self,content)
coap_start
(self)
coap_stop
(self)
coaps_start_psk
(self,psk,pskIdentity)
coaps_start_x509
(self)
coaps_set_resource_path
(self,path)
coaps_stop
(self)
coaps_connect
(self,ipaddr)
coaps_disconnect
(self)
coaps_get
(self)
commissioner_mgmtget
(self,tlvs_binary=None)
commissioner_mgmtset
(self,tlvs_binary)
bytes_to_hex_str
(self,src)
commissioner_mgmtset_with_tlvs
(self,tlvs)
udp_start
(self,local_ipaddr,local_port)
udp_stop
(self)
udp_send
(self,bytes,ipaddr,port,success=True)
udp_check_rx
(self,bytes_should_rx)
set_routereligible
(self,enable:bool)
router_list
(self)
router_table
(self)
link_metrics_query_single_probe
(self,dst_addr:str,linkmetrics_flags:str)
link_metrics_query_forward_tracking_series
(self,dst_addr:str,series_id:int)
link_metrics_mgmt_req_enhanced_ack_based_probing
(self,dst_addr:str,enable:bool,metrics_flags:str,ext_flags='')
link_metrics_mgmt_req_forward_tracking_series
(self,dst_addr:str,series_id:int,series_flags:str,metrics_flags:str)
link_metrics_send_link_probe
(self,dst_addr:str,series_id:int,length:int)
send_address_notification
(self,dst:str,target:str,mliid:str)
send_proactive_backbone_notification
(self,target:str,mliid:str,ltt:int)
dns_get_config
(self)
dns_set_config
(self,config)
dns_resolve
(self,hostname,server=None,port=53)
dns_resolve_service
(self,instance,service,server=None,port=53)
__parse_hex_string
(hexstr:str)
dns_browse
(self,service_name,server=None,port=53)
set_mliid
(self,mliid:str)
Node
(NodeImpl,OtCli)
LinuxHost
PING_RESPONSE_PATTERN
ETH_DEV
enable_ether
(self)
disable_ether
(self)
get_ether_addrs
(self)
get_ether_mac
(self)
add_ipmaddr_ether
(self,ip:str)
ping_ether
(self,ipaddr,num_responses=1,size=None,timeout=5,ttl=None,interface='eth0')
_getBackboneGua
(self)
_getInfraUla
(self)
_getInfraGua
(self)
ping
(self,*args,**kwargs)
udp_send_host
(self,ipaddr,port,data,hop_limit=None)
add_ipmaddr
(self,*args,**kwargs)
ip_neighbors_flush
(self)
discover_mdns_service
(self,instance,name,host_name,timeout=2)
start_radvd_service
(self,prefix,slaac)
stop_radvd_service
(self)
kill_radvd_service
(self)
__parse_dns_sd_txt
(self,line:str)
OtbrNode
(LinuxHost,NodeImpl,OtbrDocker)
is_otbr
is_bbr
node_type
__repr__
(self)
get_addrs
(self)
start
(self)
HostNode
(LinuxHost,OtbrDocker)
is_host
nodeid
name
__init__
(self,nodeid,name=None,**kwargs)
start
(self,start_radvd=True,prefix=config.DOMAIN_PREFIX,slaac=False)
stop
(self)
get_addrs
(self)
__repr__
(self)
get_matched_ula_addresses
(self,prefix)
get_ip6_address
(self,address_type:config.ADDRESS_TYPE)
All occurrences
Please wait...
Page is in error, reload to recover