How to control HL secondary from WP primary using legato

Hi,

I have mangoh green with:

  • WP7609 as a primary,
  • HL7650 as a secondary.

The goal to achieve is to have 2 data connection at the same time and be able to switch between them.

I can establish data connection with the primary. And that works fine.
I would like to do that with the secondary too using the legato framework.

Using gpioexpander I set the MUX3 so that the secondary SIM slot is attached to the secondary module. Now, on the primary, I can see /dev/ttyACM2 which responds to AT command and can see the SIM card, so sending AT commands I can turn on data connection on that, then start pppd and that is fine.

But it would be fantastic to be able to use legato API for that. Selecting sim slot, etc… Does anyone know how to do this? Is it even possible?

I can see that selecting sim slot on mangoh green fails for EXTERNAL_2 or REMOTE. EXTERNAL_1 is used for the first SIM slot…

Best regards,
Miroslaw