FiPy and WiPy communication - best practise? SPI, I2C, UART, Bluetooth, Wifi?
i need some help ;)
- Internet-Access over LTE-CAT M1 (not yet implemented)
- Wifi-AP for UDP-communication (you can send commands to the device)
- UART to u-blox-device (better gps)
- Wifi-AP also in use
- wlan is connected to the AP of another device
Both devices are next to each other...
Soooo... I would like to let them talk to each other, but as far as i can judge it there is no good option.
SPI and I2C are not working because there is no way to make one device slave, right? (thats what i was getting from the docs)
UART is no option because UART2 is used by FiPy for LTE-M ( see: https://docs.pycom.io/chapter/firmwareapi/pycom/machine/UART.html ) , right?
Wifi is blocked because only one connection for each device (which is already in use), right?
Soo... Am i plain stupid? Is there a good option to make this happen?
Thanks guys! You are awsome!
@leo_sol Looking at your initial post it seems that UART1 may still available on both units. the default config collides with the SD card pins, but you can assign UART1 to other pins.
@seb nice! thank you ;)
Hi, slave mode is on our to do list but unfortunately isn't currently a top priority so I cannot provide a concrete data for when it will be added. It might be looked into in Q2.
thank you for the advice. sadly i have no experiance with LoRa but i will figure it out!
i feel like using the WiPy as a spi.SLAVE would be the best way, but it is not implemented yet. can you tell me if there is a plan to do so soon?
Well you still have raw LoRa on the FiPy.
@leo_sol No, if you use both AP and STA at each device, you cannot. If they are connected as STA to the same AP (and same network), you can however connect them as STA through this AP.
thanks for the fast reply!
Both devices use AP and STA - but they are connected to external devices and not to each other. And i can not have two STA connections at the same time :/ or am i wrong here?
@leo_sol The one connection only limit on Wifi only holds for the built-in Telnet and FTP clients. Otherwise, you can run the device as AP and STA at the same time and connect to the other device using your own protocol.