I have this setup working on KPN with the following commands:
This example uses SSL.
While you can also send UDP, I assume the IP connection is already working for you.
LtePrint("AT+USOCR=6\n"); // 17 = UDP. 6 = TCP This command will return the socket number used.
LtePrint("AT+UDCONF=1,1\n"); // Enable HEX mode
LtePrintf("AT+USOSEC=%d,1,1\n", LteSocket); // Activate SSL for this socket.
LtePrintf("AT+USOCO=%d,\"some.nice-server.com\",%d,1\n", LteSocket, Settings.LteUdpPort);
LtePrintf("AT+USOSO=%d,6,1,1\n", LteSocket); // enable no-delay option for TCP socket.
LtePrintf("AT+USOSO=%d,65535,8,1\n", LteSocket); // Set Keep connection alive option
// Send data command, I use HEX format to transmit the data.
LtePrintf("AT+USOWR=%d,%d,\"somecoolhexdata\"\n", LteSocket, length);
This is the server side I used to connect
I have some issue's, but basislly it is working.
Tom / PCB Design Buil