0
\$\begingroup\$

I am making a remote monitoring system using STM32F1 MCU in which there are few digital and analog sensors attached and I would send their readings to a remote server periodically. Can I use JSON string to send over GSM to the remote server?

I am using M95 GSM Module for TCP Socket connections. The data is over 3G connection.

\$\endgroup\$
  • \$\begingroup\$ It would be helpful to see a pictorial diagram of your setup and know what kind of GSM module you're using. As mentioned below, you can use almost any protocol for GSM data, but what kind of data are you talking about? Is it really 2G GSM or also UMTS, LTE data? That would make a world of difference regarding data quantities and rates. \$\endgroup\$ – not2qubit Jun 2 '19 at 10:39
1
\$\begingroup\$

Yes you can. Usually the cellular modules support both TCP and HTTP, so you can send any data you want. The connections are usually initiated and controlled via special AT commands over the UART.

\$\endgroup\$
  • \$\begingroup\$ I think TCP and HTTP are same things.. just the difference of which layer you are talking. \$\endgroup\$ – jackly Jun 2 '19 at 11:03
  • 1
    \$\begingroup\$ They are very different things. TCP carries application layer protocols, like HTTP and SMTP (e-mail). Depending how you design the server you can implement a custom protocol on top of TCP or use HTTP (and both of them can carry JSON payloads, though in slightly different ways). \$\endgroup\$ – filo Jun 2 '19 at 13:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.