Skip to content
Discussion options

You must be logged in to vote

The antenna handling is a little complicated. Basically there are two options:

  1. Let the CYW4343 handle the antenna switching itself via antenna diversity. It does this by measuring the signal strength on both antenna paths and automatically selecting the best one. This is what the CYW43_IOCTL_SET_ANTDIV ioctl is used for, to enable antenna diversity.
  2. Handle antenna selection yourself. To do this you can simply control the WL_GPIO_1 pin from the main STM MCU itself. In this case you don't need to enable wifi at all.

I think option 2 is exactly what you want. To select the external antenna do:

machine.Pin("I11", machine.Pin.IN, machine.Pin.PULL_UP)

It's input mode in case the CYW4343 itse…

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@jimmo
Comment options

@jotamudo
Comment options

Answer selected by jotamudo
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants