Controlling the nRF52833 dk using serial communication, without the Python application.

I am using the following setup:

  1. A nRF52833 dk, running the serial example from the mesh sdk.
  2. A nRF52840, running the light switch server example from the mesh sdk.
  3. A pc running an application, which will send and receive serial commands to and from the nRF52833 dk.

This pc application has to do two things:

  1. Send the serial commands to the nRF52833, so it can provision the nRF52840.
  2. Send the serial commands to the nRF52833, so it can turn on and off the light on the nRF52840.

So far, I have succesfully sent and received serial commands like 'echo' and 'scan start' to the nRF52833, using the documentation (Infocenter/Software Development Kit/nRF5 SDK for Mesh v5.0.0/Bluetooth mesh stack user guide/Modules/Serial interface/Serial interface library). However, I have not yet figured out how to do either of the two points mentioned above. This is because I cannot find which commands I should and should not use, and in what order.

So my question comes down to: How do I provision and control the nRF52840 using the nRF52833 via serial communication?