Have you checked the instructions in Setting up Basic Station protocol on RAK7240 and RAK7249 industrial gateways?