How to use QTcpServer with serial interface GSM modem?
-
Hi
Using QSerialport for the modem part ?
So when modem part sends some command and get a result back from GSM, you
want to forward these over qTcpServer or what sort of integration ? -
Hi
Using QSerialport for the modem part ?
So when modem part sends some command and get a result back from GSM, you
want to forward these over qTcpServer or what sort of integration ? -
hi
Well I would use a QObject based class as a handler between modem and tcp.
Often you would expose the data to higher level function/signal interface
But I'm not sure if you want to forward the raw results as a buffer - as is, or if you want
the tcp part to have a more functional orientatyed interface so
it would be signals like
ManufacturerIdentification
MobileEquipmentErrorand so on
or the raw output/result from the GSM? -
hi
Well I would use a QObject based class as a handler between modem and tcp.
Often you would expose the data to higher level function/signal interface
But I'm not sure if you want to forward the raw results as a buffer - as is, or if you want
the tcp part to have a more functional orientatyed interface so
it would be signals like
ManufacturerIdentification
MobileEquipmentErrorand so on
or the raw output/result from the GSM? -
@mrjj Id like to know how to pass incoming and outgoing TCP protocol internet traffic to qTcpClient without using the computer/OS default internet connection that gets used for qTcpClient by default.
Hi
What other interface/network do you plan to use instead then ?Im not really sure exactly what you mean by that question.
Say we have a PC with both WIFI and ethernet (lan)
then if it uses WIFI for internet , you would like to use the LAN
or what you mean ? -
Hi
What other interface/network do you plan to use instead then ?Im not really sure exactly what you mean by that question.
Say we have a PC with both WIFI and ethernet (lan)
then if it uses WIFI for internet , you would like to use the LAN
or what you mean ?@mrjj To direct GSM 2G serial internet directly to qTcpClient within software without OS getting internet access.
To use preexisting networking code based on qTcp classes.
The mobile router handles TCP connection itself by default, TCP overhead will be missing and only packet data comes in. Maybe its configurable.
-
@mrjj To direct GSM 2G serial internet directly to qTcpClient within software without OS getting internet access.
To use preexisting networking code based on qTcp classes.
The mobile router handles TCP connection itself by default, TCP overhead will be missing and only packet data comes in. Maybe its configurable.
@Q139 said in How to use QTcpServer with serial interface GSM modem?:
The mobile router handles TCP connection itself by default, TCP overhead will be missing and only packet data comes in. Maybe its configurable.
I don't think this is possible.
QTcpClient / QTcpSocket / QUdpSocket works with system tcp/ip stack.
I believe, you will have to provide any system lib which will "register" the GSM serial interface with the system tcp/ip stack to be able to use it with Qt.