Home
last modified time | relevance | path

Searched refs:port (Results 1 – 25 of 72) sorted by relevance

123

/openthread-2.7.6/tools/harness-thci/
DOpenThread_WpanCtl.py86 self.port = self.dutIpv4 + ':' + self.dutPort
92 self.port = kwargs.get('SerialPort')
112 print('[%s] Expecting [%s]' % (self.port, expected))
117 print('[%s] Got line [%s]' % (self.port, line))
120 print('[%s] Expected [%s]' % (self.port, expected))
132 logging.info('%s: reading', self.port)
139 logging.info('%s: writing', self.port)
151 logging.info('%s: reading line', self.port)
162 logging.exception('%s: No new data', self.port)
175 logging.info('%s: sending line', self.port)
[all …]
DOpenThread_BR.py62 def __init__(self, ip, port, username, password): argument
64 self.port = int(port)
78 … self.__handle.connect(self.ip, port=self.port, username=self.username, password=self.password)
107 print('%s - %s - %s' % (self.port, time.strftime('%b %d %H:%M:%S'), msg))
114 def __init__(self, port, baudrate): argument
115 self.port = port
116 self.__handle = serial.Serial(port, baudrate, timeout=0)
184 raise Exception('%s: failed to find end of response' % self.port)
187 print('[%s] Expecting [%r]' % (self.port, expected))
196 print('[%s] Got line [%r]' % (self.port, line))
[all …]
/openthread-2.7.6/src/cli/
DREADME_UDP.md42 - [bind](#bind-netif-ip-port)
44 - [connect](#connect-ip-port)
47 - [send](#send-ip-port-message)
66 ### bind [netif] \<ip\> \<port\>
68 Assigns a name (i.e. IPv6 address and port) to the example socket.
75 - port: the UDP port
95 ### connect \<ip\> \<port\>
100 - port: the peer's UDP port.
144 ### send \<ip\> \<port\> \<message\>
149 - port: the UDP destination port.
[all …]
DREADME_TCP.md60 - [bind](#bind-ip-port)
61 - [connect](#connect-ip-port)
66 - [listen](#listen-ip-port)
94 ### bind \<ip\> \<port\>
96 Associates a name (i.e. IPv6 address and port) to the example TCP endpoint.
99 - port: the TCP port.
106 ### connect \<ip\> \<port\>
113 - port: the peer's TCP port.
161 ### listen \<ip\> \<port\>
163 …TCP listener to listen for incoming connections on the specified name (i.e. IPv6 address and port).
[all …]
DREADME_SRP_CLIENT.md101 instance:"ins2", name:"_test2._udp", state:Registered, port:111, priority:1, weight:1
102 … instance:"ins1", name:"_test1._udp,_sub1,_sub2", state:Registered, port:777, priority:0, weight:0
112 instance:"ins1", name:"_test1._udp", state:Registered, port:777, priority:0, weight:0
114 instance:"ins2", name:"_test2._udp,_sub1,_sub2", state:Removed, port:111, priority:1, weight:1
125 instance:"ins1", name:"_test1._udp", state:Removed, port:777, priority:0, weight:0
271 Print the server socket address (IPv6 address and port number).
289 ### server port
291 Print the server port number
294 > srp client server port
307 instance:"ins2", name:"_test2._udp,_sub1,_sub2", state:Registered, port:111, priority:1, weight:1
[all …]
Dcli_network_data.cpp230 uint16_t port; in ProcessPublish() local
234 SuccessOrExit(error = aArgs[2].ParseAsUint16(port)); in ProcessPublish()
235 otNetDataPublishDnsSrpServiceUnicastMeshLocalEid(mInterpreter.mInstance, port); in ProcessPublish()
240 SuccessOrExit(error = aArgs[3].ParseAsUint16(port)); in ProcessPublish()
241 otNetDataPublishDnsSrpServiceUnicast(mInterpreter.mInstance, &address, port); in ProcessPublish()
/openthread-2.7.6/tools/harness-automation/autothreadharness/
Dhelpers.py49 def mark_bad_golden_device(self, port): argument
50 self.logger.warning('mark serial port[%s] as bad', port)
51 self.data['golden_device_denylist'].append(port)
54 def is_bad_golden_device(self, port): argument
55 return port in self.data['golden_device_denylist']
Dopen_thread_controller.py52 def __init__(self, port, log=False): argument
59 self.port = port
95 logger.debug('My port is %s', self.port)
96 if self.port.startswith('NET'):
97 portnum = settings.SER2NET_PORTBASE + int(self.port.split('NET')[1])
103 elif ':' in self.port:
104 host, port = self.port.split(':')
105 self.handle = socket.create_connection((host, port))
109 self.handle = serial.Serial(self.port, 115200, timeout=0, xonxoff=True)
131 logger.debug('[%s] Expecting [%s]', self.port, expected)
Drf_shield_controller.py61 def __init__(self, channel, port): argument
63 self._port = port
/openthread-2.7.6/third_party/mbedtls/repo/tests/scripts/
Dtcp_client.pl36 my ($host, $port) = @_;
38 PeerPort => $port,
41 die "Cannot connect to $host:$port: $!" unless $socket;
95 my ($host, $port, $data1, $response1) = @ARGV;
96 my $connection = open_connection($host, $port);
/openthread-2.7.6/tests/scripts/thread-cert/backbone/
Dtest_dua_dad.py232 pkts.filter_wpan_src64(ROUTER2).filter_coap_request('/a/aq', port=MM).filter(
235 pkts.filter_backbone_query(ROUTER1_DUA, eth_src=PBBR2_ETH, port=BB).must_next()
237 pkts.filter_backbone_query(ROUTER1_DUA, eth_src=SBBR_ETH, port=BB).must_not_next()
239 pkts.filter_backbone_answer(ROUTER1_DUA, eth_src=PBBR_ETH, port=BB).must_next()
241 pkts.filter_wpan_src64(PBBR2).filter_coap_request('/a/an', port=MM).filter(
252 pkts.filter_backbone_query(DUPLICATE_DUA, eth_src=PBBR_ETH, port=BB).must_next()
255 ba = pkts.filter_backbone_answer(DUPLICATE_DUA, eth_src=PBBR2_ETH, port=BB).must_next()
265 pkts.filter_backbone_query(DUPLICATE_DUA, eth_src=PBBR_ETH, port=BB).must_not_next()
269 …_wpan_src64(PBBR).filter_ipv6_dst(ROUTER1_RLOC).filter_coap_request('/a/ae', port=MM).must_next() \
278 …new_dr = pkts.filter_wpan_src64(ROUTER1).filter_coap_request('/n/dr', port=MM).must_next().must_ve…
[all …]
/openthread-2.7.6/tools/harness-sniffer/
DOT_Sniffer.py41 self.port = kwargs.get('addressofDevice')
92 str(self.port.split(':')[0]),
94 str(self.port.split(':')[1]),
154 return self.port
/openthread-2.7.6/tests/scripts/thread-cert/pktverify/
Dpacket_filter.py379 def filter_coap_request(self, uri_path, port=None, confirmable=None, **kwargs): argument
389 assert port is None or isinstance(port, int), port
393 … (0 if confirmable else 1)) and (port is None or p.udp.dstport == port)), **kwargs)
395 def filter_coap_ack(self, uri_path, port=None, **kwargs): argument
405 assert port is None or isinstance(port, int), port
408 (port is None or p.udp.dstport == port)), **kwargs)
414 port: int = None,
418 f = filter_eth.filter_coap_request('/b/ba', port=port,
426 …def filter_backbone_query(self, target: str, *, eth_src: EthAddr, port: int = None) -> 'PacketFilt…
427 …return self.filter_eth_src(eth_src).filter_coap_request('/b/bq', port=port, confirmable=False).fil…
Dpacket_verifier.py316 dr = pkts.filter_wpan_src64(src64).filter_coap_request('/n/dr', port=MM).filter(
321 pkts.filter_backbone_query(dua, eth_src=sbbr_eth, port=BB).must_not_next()
326 '/n/dr', port=MM).must_next().must_verify('thread_nm.tlv.status == 0')
329 bq1 = pkts.filter_backbone_query(dua, eth_src=pbbr_eth, port=BB).must_next()
335 bq2 = pkts.filter_backbone_query(dua, eth_src=pbbr_eth, port=BB).must_next()
340 bq3 = pkts.filter_backbone_query(dua, eth_src=pbbr_eth, port=BB).must_next()
345 …pkts.filter_eth_src(pbbr_eth).filter_backbone_answer(dua, port=BB, confirmable=False).must_next().…
350 … PBBR_ETH=pbbr_eth).filter_backbone_answer(dua, port=BB).must_not_next()
/openthread-2.7.6/tests/scripts/thread-cert/
DCert_5_3_11_AddressQueryTimeoutIntervals.py152 filter_coap_request(ADDR_QRY_URI, port=MM).\
168 filter_coap_request(ADDR_NTF_URI, port=MM).\
189 filter_coap_request(ADDR_QRY_URI, port=MM).\
193 filter_coap_request(ADDR_QRY_URI, port=MM).\
DCert_5_3_09_AddressQuery.py223 filter_coap_request(ADDR_QRY_URI, port=MM).\
250 filter_coap_request(ADDR_QRY_URI, port=MM).\
254 filter_coap_request(ADDR_NTF_URI, port=MM).\
295 filter_coap_request(ADDR_QRY_URI, port=MM).\
309 filter_coap_request(ADDR_QRY_URI, port=MM).\
319 filter_coap_request(ADDR_NTF_URI, port=MM).\
DCert_5_3_10_AddressQuery.py225 filter_coap_request(ADDR_QRY_URI, port=MM).\
256 filter_coap_request(ADDR_QRY_URI, port=MM).\
260 filter_coap_request(ADDR_NTF_URI, port=MM).\
301 filter_coap_request(ADDR_QRY_URI, port=MM).\
316 filter_coap_request(ADDR_QRY_URI, port=MM).\
326 filter_coap_request(ADDR_NTF_URI, port=MM).\
DCert_5_3_03_AddressQuery.py205 filter_coap_request(ADDR_QRY_URI, port=MM).\
210 filter_coap_request(ADDR_NTF_URI, port=MM).\
247 filter_coap_request(ADDR_QRY_URI, port=MM).\
251 filter_coap_request(ADDR_NTF_URI, port=MM).\
323 filter_coap_request(ADDR_QRY_URI, port=MM).\
340 filter_coap_request(ADDR_QRY_URI, port=MM).\
DCert_5_1_05_RouterAddressTimeout.py114 filter_coap_ack(ADDR_SOL_URI, port=MM).\
193 filter_coap_request(ADDR_SOL_URI, port=MM).\
206 filter_coap_ack(ADDR_SOL_URI, port=MM).\
285 filter_coap_request(ADDR_SOL_URI, port=MM).\
298 filter_coap_ack(ADDR_SOL_URI, port=MM).\
DCert_5_3_07_DuplicateAddress.py175 filter_coap_request(ADDR_QRY_URI, port=MM).\
186 filter_coap_request(ADDR_NTF_URI, port=MM).\
207 filter_coap_request(ADDR_ERR_URI, port=MM).\
Dsimulator.py158 self.port = self.BASE_PORT + (self.PORT_OFFSET * (self.MAX_NODES + 1))
159 self.sock.bind((ip, self.port))
173 self._spinel_cli_addr = (ip, self.BASE_PORT + self.port)
196 addr = ('127.0.0.1', self.port + nodeid)
227 addr = ('127.0.0.1', self.port + nodeid)
249 return ('127.0.0.1', self.BASE_PORT + self.port + nodeid)
251 return ('127.0.0.1', self.port + nodeid)
358 self._add_message(addr[1] - self.port, data)
/openthread-2.7.6/examples/platforms/cc2538/
DREADME.md46 - `CC2592_PA_EN`: This specifies which pin (on port C of the CC2538) connects to the CC2592's `PA_E…
47 - `CC2592_LNA_EN`: This specifies which pin (on port C of the CC2538) connects to the CC2592's `LNA…
49 …mend using PD2, however if you've used a pin on another GPIO port, you may specify that port (`A`,…
50 …mend using PD2, however if you've used a pin on another GPIO port, you may specify that port (`A`,…
82 1. Open terminal to `/dev/ttyUSB1` (serial port settings: 115200 8-N-1).
/openthread-2.7.6/third_party/mbedtls/repo/include/mbedtls/
Dnet_sockets.h114 int mbedtls_net_connect( mbedtls_net_context *ctx, const char *host, const char *port, int proto );
133 int mbedtls_net_bind( mbedtls_net_context *ctx, const char *bind_ip, const char *port, int proto );
/openthread-2.7.6/tools/otci/otci/
Dcommand_handlers.py197 def __init__(self, host, port, username, password, sudo): argument
201 self.__port = port
210 port=port,
/openthread-2.7.6/src/core/utils/
Dhistory_tracker.cpp94 uint16_t port = 0; in RecordMessage() local
99 port = destPort; in RecordMessage()
103 port = sourcePort; in RecordMessage()
107 VerifyOrExit((port != Mle::kUdpPort) && (port != Tmf::kUdpPort)); in RecordMessage()

123