GSM Shop GSM Shop

Welcome to the GSM-Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features.
Only registered members may post questions, contact other members or search our database of over 8 million posts.

Registration is fast, simple and absolutely free so please - Click to REGISTER!

If you have any problems with the registration process or your account login, please contact contact us .

Go Back   GSM-Forum > Other Gsm/Mobile Related Forums > GSM Programming & Reverse Engineering

GSM Programming & Reverse Engineering Here you can post all Kind of GSM Programming and Reverse Engineering tools and Secrets.

LinkBack Thread Tools Display Modes
Old 05-27-2012, 02:07   #1 (permalink)
Insane Poster
Join Date: May 2008
Location: Poland ;)
Age: 32
Posts: 69
Member: 776944
Status: Offline
Thanks Meter: 26
Strange problem with connecting to S5230 via USB...

Hi. I'm starting to deal with USB port so i decided to start with some basics. I choosed S5230, target = get access to modem via AT Commands, butI have a little problem with this...

I sniffed a lot of packets from New PC Studio for beginning, & i see there is few packets to Set Communication mode To AT. So i wrote a lil program to switch to AT Mode, basing on sniffed packets, later few AT queries to test it (GET MODEL, GET IMEI, GET PRODUCT CODE, GET SW VERSION etc) and everything is OK - program works great but... and there's a problem : Communication works properly ONLY When PC Studio is launched! O.o

I checked Sniff log few times (sniffed packets from PC Studio), and i dont see any packet i missed. Interesting thing: When I close PC Studio & run sniffer to sniff my program vs. phone, it shows that phone send response packets for my AT Commands properly, but my program didnt show any packet @ Memo. If I run PC Suite, program works great. Someone can tell me whats goin on?

Here's a part of source (becouse I developed it only for educational purposes, the code looks ugly)

Here's a chain of Initial packets... Packets starting from 0x41 are AT commands...

const ATPacket: Array[0..11] of String = ('00C20100000008', '00C20100000008','7E00A072557E', '810003', '41545A0D0A', '41542B474D4D0D', '41542B4347534E0D', '41542B53575645523F0D', '41542B50524F44554354434F44453F0D0A', '41542B435042533F0D', '41542B435042533D22534D220D', '41542B435042523D');
Here's a part of procedure to send each packet from chain, and display received stuff as string in memo...

var Str: String;
    i: byte;
    F: String;
if USB.USBOpenDriver then //yea, I'm using oOXTCOo's unit to deal with USB :P
  Memo1.Lines.Add('Successfully Opened');

  Memo1.Lines.Add('Switching to AT-Mode...');
  Pb.Max:=High(ATPacket); //thats only Progress Bar :D

  for i:=Low(ATPacket) to High(ATPacket) do
        PB.Position:=i; //increase progress bar position

        Str:=USB.RWUSB(ATPacket[i], 255, 200, 'STRING');
        if Length(Str)>0 then // if got some stuff from phone then...
  Reply With Quote
The Following User Says Thank You to McManiek For This Useful Post:
Old 05-28-2012, 00:01   #2 (permalink)
Join Date: Nov 2009
Location: Lima, Perú
Posts: 1,478
Member: 1159099
Status: Offline
Thanks Meter: 6,329
Hi McManiek,

how send atcommand with usb VB2008 use comport

        rxBuff = ""
        If SerialPort1.IsOpen = False Then SerialPort1.Open()
        SerialPort1.Write("AT+SW?." & vbCr)
        If SerialPort1.IsOpen = True Then SerialPort1.Close()
        If rxBuff = "" Then GoTo ends
        RichTextBox1.Text = rxBuff
Pablo A.
  Reply With Quote
Old 05-29-2012, 03:14   #3 (permalink)
No Life Poster
ulymar's Avatar
Join Date: Sep 2004
Age: 41
Posts: 512
Member: 81952
Status: Offline
Sonork: 1597268
Thanks Meter: 1,900
close pcstudio and use comport communication..

set baudrate...

try to use this component

ComPort Library | Free Communications software downloads at

  Reply With Quote
The Following User Says Thank You to ulymar For This Useful Post:
Old 05-29-2012, 08:07   #4 (permalink)
Insane Poster
Join Date: May 2008
Location: Poland ;)
Age: 32
Posts: 69
Member: 776944
Status: Offline
Thanks Meter: 26
Yea, works great now Thanks for interesting
  Reply With Quote


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
thread Thread Starter Forum Replies Last Post
news headlines to gsm phone mos Nokia Legacy Phones ( DCT-1 ,2 ,3 ,L ) 7 05-22-2016 11:42
How to add a language in 51xx/61xx tati Nokia Legacy Phones ( DCT-1 ,2 ,3 ,L ) 8 05-21-2013 19:20
How to upload a new firmware... Brand Nokia Legacy Phones ( DCT-1 ,2 ,3 ,L ) 8 06-08-2012 18:29
Help with 6110 paulomt1 Nokia Legacy Phones ( DCT-1 ,2 ,3 ,L ) 2 05-25-2009 16:29
Netmonitor with FBus???? ratzfatz Nokia Legacy Phones ( DCT-1 ,2 ,3 ,L ) 4 06-09-1999 17:04


All times are GMT +1. The time now is 21:13.

Powered by Searchlight © 2018 Axivo Inc.
vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2018 DragonByte Technologies Ltd.
- GSM Hosting Ltd. - 1999-2017 -
Page generated in 0.26543 seconds with 8 queries