You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can read more about the capabilities of the WiFi/Bluetooth chip by reading the [Infineon CYW43439 Datasheet](https://www.infineon.com/dgdl/Infineon-CYW43439-Single-Chip-IEEE-802.11-b-g-n-MAC-PHY-Radio-with-Integrated-Bluetooth-5.0-Compliance-AdditionalTechnicalInformation-v03_00-EN.pdf?fileId=8ac78c8c7ddc01d7017ddd033d78594d)
14
+
13
15
## Compatibility with Prior Code
14
16
15
17
The Pico W code is very similar to prior versions of the Pico with a few small exceptions. One of these is the fact that we must now use a symbolic label called an **alias* such as ```Pin("LED")``` instead of ```Pin(25)``` to access the LED pin, not a hardwired PIN number. This allows us to keep our code more portable as the underlying hardware changes.
@@ -292,35 +294,40 @@ You can get the device MAC/Ethernet address and test the roundtrip time between
292
294
293
295
```py
294
296
import network
295
-
import secrets
296
297
from utime import sleep, ticks_us, ticks_diff
297
298
298
299
print('Getting MAC/Ethernet Address for this device.')
299
300
300
301
start = ticks_us() # start a millisecond counter
301
302
wlan = network.WLAN(network.STA_IF)
302
303
303
-
# This returns a byte array
304
+
# This returns a byte array of hex numbers
304
305
mac_addess = wlan.config('mac')
305
306
print('Time in microseconds:', ticks_diff(ticks_us(), start))
I ran this program on my Pico W and I got times of between 214 and 222 microseconds. This shows you that it takes about 100 microseconds to send a request from the RP2040 to the WiFi chip and about 100 milliseconds to return the results. This time lag represents some of the key performance limitations in using the Pico W for high-performance networking.
328
+
The MAC address is six bytes or "octets". The first three octets are assigned to the organization that created the device. The second three octets are assigned by the organization that created the device. See the [Wikipedia Page on MAC Address](https://en.wikipedia.org/wiki/MAC_address) for more information. If you run this on your Pico W the first octets should be similar.
329
+
330
+
I ran this program on my Pico W and I got times of between 214 and 222 microseconds. This shows you that it takes about 100 microseconds to send a request from the RP2040 to the CYW43439 WiFi chip and about 100 milliseconds to return the results. This time lag represents some of the key performance limitations in using the Pico W for high-performance networking.
0 commit comments