Here, I want to add function for connecting myGSM modem to my PC when I click the ‘Connect’ button.
The detailed scenario is below:
1. My application will try to connect to GSM modem through the port (here I use USB port as “COM3”) –> I have to define the set-up
2. Adding EventListener on the port so my GSM modem and my PC will be able to communicate using AT commands.
3. When my PC has been connected with my GSM modem, then my application will send some AT commands for
– checking incoming new messages (AT+SNMI=1,1,2,2,1)
– device brand (AT+CGMI)
– device type (AT+CGMM)
– IMEI number (AT+CGSN)
– Network provider (AT+COPS?)
– Checking the device is connected and ready for receiving AT command (ATH0)