Making GSM modem info HOW??? (AT commands) with Visual Basic 6 MSCOMM!!!! URGENT !!!!

Posted on 2004-11-07
Last Modified: 2013-12-09
Hello, needed help ! URGENT ! ! !

Im developing small aplication based on MSCOMM control that allows to
connect my mobile phone to serial port and comunicate through data cable
(for receiving sms, modem information and so on).
Im wish to develop one window in witch user can see mobile phone info (manufacturer, model,
software revision, mobile network..etc) when mobile phone are connected to COM port.

I know AT commands, and i send it to mobile phone and i recieve result..but..i dont know how to place it
right next to object (for example Model: (result).

I have made buffer(text box) witch gives me current status of mobile response
(when i sending for example ATI3 command to mobile phone - > in buffer i see command, result, and OK)

I every case, i see in buffer command i send, result and OK..but i need only result to be placed next to object Model:

Here i my case: i send ATI3, and receive this in my text box: (have Ericsson R600)


Thats for mobile model..Now i need one window like this:

Manufacturer: (result)
Model: (result)
Software revision: (result)
IMEI: (result)

Now, i need to place result (3102001-BVR600) next to Model: in some kind (text box, label, or what)???

Problem is, that i can only with all modem response proces place next to Model: (ATI3 102001-BVR600 OK)

I need only result to be placed next to Model: not ATI3 and OK. Only 102001-BVR600. I dont know how do that..
Same thing is when i receive sms. SMS got time, date, some REC READ command, and message..
I dont know how to categorize this to time, date, message..whole ressult that i receive is in one sentence..

PLEASE, HELP ME..with code, please. PLEASE...

Question by:markobrljak
    LVL 2

    Accepted Solution


    According to GSM 07.07 and standard ATA commands the following is the case:

    AT+CGMI:    Manufacture Identification
    AT+CGMM:  Model Identification
    AT+CGMR:   Software Revision Identification
    AT+CGSN:    Serial Number Identification (IMEI)

    Anyway, I know for a fact that this works for all Nokia models supporting AT commands and I assume this is the case for other GSM phones as well!

    :o) Martin

    Assisted Solution


     As I understood you, you actually need to analize responds from your GSM device, which are in form of strings. If you are
    using VB, you can simply test all responds from your device ( or responds you need) and since they are standardized, eg.
    every SMS will use same format, you can use simple string operations in VB ( Left$() Right$() Mid$() ) to extract pieces of data
    you need, and display them as label caption, eg. Label1.Caption = Mid$(respond$, 10,4) if you need part which starts at 10th
    character and is 4 characters long.

    Use separate, simple text box for receiveng responses, and set eg. Text1.Visible = False. So, previous example would look like
    Label1.Caption = Mid$(Text1.Text, 10, 4), or in case of "3102001-BVR600", assuming that Text1 contains "3102001-BVR600" as text, Label1.Caption = Right$(Text1.Text,4), which will return "R600" as Label1.caption.

    Featured Post

    Network it in WD Red

    There's an industry-leading WD Red drive for every compatible NAS system to help fulfill your data storage needs. With drives up to 8TB, WD Red offers a wide array of solutions for customers looking to build the biggest, best-performing NAS storage solution.  

    Join & Write a Comment

    Today sees the launch of a new case study, focusing on BYOD technologies we have been working with for some time now.  But with the advent of 802.11ac wireless technologies and the story behind our landmark developments, we would like to share this …
    Using in-flight Wi-Fi when you travel? Business travelers beware! In-flight Wi-Fi networks could rip the door right off your digital privacy portal. That’s no joke either, as it might also provide a convenient entrance for bad threat actors.
    This Micro Tutorial will show you how to maximize your wireless card to its maximum capability. This will be demonstrated using Intel(R) Centrino(R) Wireless-N 2230 wireless card on Windows 8 operating system.
    Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    23 Experts available now in Live!

    Get 1:1 Help Now