manuelquiero/SMS_Send_Receive

Example GSM Modem

Opened this issue · 7 comments

Hi,
Do you have an example of the type of GSM modem this is for?
Would it work with one of those wavecom modems that can take 8 sim cards?

Thanks
Do you think if I plugged in 2 of these (sim800c usb) would it work?
That would presumably create 2 COM ports, would your code loop over those com ports and detect 2 GSM devices?

Yes
I've had a look at the code.
I think the issue will be if I plug in two of these sim800c USB devices that will show up as 2 COM ports, but your current code only expects one GSM modem COM port?.

I think it'll be fairly minor to change and i'll just need a separate worker thread for each COM device that is detected?

I have 2 sim800c usb devices currently ordered so will have a play when they arrive.
Your code is really helpful as I haven't done this sort of thing before.

I'll test when both modems arrive but can't see how it will work as the code is as follows:

Connect button calls -> ConnectToModem() which then calls GetPortInfo()

However GetPortInfo() will only ever return the last port.
It has a foreach loop but the 'port' variable is overwritten each time.
Therefore I'm not sure how this version on Github could ever work with 2 modems?