GSM Shop GSM Shop
GSM-Forum  

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.

Reply
 
LinkBack Thread Tools Display Modes
Old 09-10-2006, 03:50   #1 (permalink)
Freak Poster
 
Join Date: Nov 2004
Posts: 250
Member: 91951
Status: Offline
Thanks Meter: 18
about mscomm


hi, im trying to connect dct3 phone using fbus com1 and checking phone version etc..

i write this code in vb6

Code:
phoneV() as byte

Mscomm1.portopen = true

mscomm1.output = 'fbus frame for phone info, here using chr$(&H) 'chr$(&H1E) 

'sleep for 100ms

phoneV = mscomm1.input

mscomm1.portopen = false
with that code you can read phone version and you can the reply from phone using comport analyzer.. the problem is if click the read phone button many times it won't read.. you need first turn off the phone and turn back it on..before you can.. what do you think is the problem?
  Reply With Quote
Old 09-10-2006, 08:43   #2 (permalink)
No Life Poster
 
Bph&co's Avatar
 
Join Date: Feb 2000
Location: UK
Posts: 3,186
Member: 1024
Status: Offline
Thanks Meter: 5,510
Hi,

You have checksums and sequence numbers for the whole communication
session. Using snapshot values from old session is not good enough.

Regards
  Reply With Quote
Old 09-10-2006, 09:16   #3 (permalink)
Freak Poster
 
Join Date: Nov 2004
Posts: 250
Member: 91951
Status: Offline
Thanks Meter: 18
Quote:
Originally Posted by Bph&co View Post
Hi,

You have checksums and sequence numbers for the whole communication
session. Using snapshot values from old session is not good enough.

Regards
Hi Alan,

yes.. fbus frame to read phone info + senquence + xor

and then send to phone right? it display in comport analyzer but when i repeat to press.. it nothing happens anymore unless you reset the phone..

br
  Reply With Quote
Old 09-10-2006, 16:03   #4 (permalink)
No Life Poster
 
Dave.W's Avatar
 
Join Date: Nov 2001
Location: England
Age: 41
Posts: 2,821
Member: 7653
Status: Offline
Thanks Meter: 823
well simple thing, send the "reset phone" command before the "read info" command.

if you read some docs on the dct3 m/f bus, you will see that there is a reset command sent to phone first in all case. i guess it is needed!
  Reply With Quote
Old 09-12-2006, 18:41   #5 (permalink)
No Life Poster
 
Zaihtam's Avatar
 
Join Date: Dec 2004
Location: 0x001FD00
Posts: 1,285
Member: 98572
Status: Offline
Thanks Meter: 36
there are good source for this kid of matter, it's on the gnokii sources, there are docs explaining the fbus command.
  Reply With Quote
Old 09-12-2006, 21:19   #6 (permalink)
Junior Member
 
Join Date: Aug 2004
Age: 43
Posts: 15
Member: 76056
Status: Offline
Thanks Meter: 0
may be u need enter the phon in test mode before reading
  Reply With Quote
Old 09-13-2006, 08:38   #7 (permalink)
No Life Poster
 
Bph&co's Avatar
 
Join Date: Feb 2000
Location: UK
Posts: 3,186
Member: 1024
Status: Offline
Thanks Meter: 5,510
Hi,

Reset of the protocol from time to time is the best solution for this control. But
i recomend to use some custom control that you have source for, and allows
manual setting of comm parameters.

If i can remember corectly the ms control was not allowing proper setting of
Com Timeouts, so you will have probably a lot of errors, that will accumulate
eventually, and the phone will stall the session.

Regards
  Reply With Quote
Old 09-13-2006, 11:35   #8 (permalink)
Freak Poster
 
Join Date: Nov 2004
Posts: 250
Member: 91951
Status: Offline
Thanks Meter: 18
sad to say but i dont have any custom control to use.. anyone have an idea with this? actually im trying to create a library file thats send and receive sms/delete sms.. so the first thing i want to know is how to connect/disconnect phone by reading phone version/imei.. i dont have problem on sending,receiving,deleting sms..

br
  Reply With Quote
Old 09-25-2006, 09:27   #9 (permalink)
ssa
No Life Poster
 
ssa's Avatar
 
Join Date: Feb 2003
Location: Inside CPU
Age: 43
Posts: 1,861
Member: 23420
Status: Offline
Thanks Meter: 3,080
here are some subs for send sequence in nokia..

Sub Launch(G As String)

'This routine will set SQ number and calc Checksum, and add it to the command

Dim arrHexList() As String, i As Integer, Result As Long, realhex As String

'Set SQ numer
If SQ < 10 Then
SQ = 10
Else
SQ = SQ + 1
End If

'Inc. SQ in command string
G = G & " " & SQ

'Split command into and aray using "space" as seperator
arrHexList = Split(G, " ")

Result = CLng("&H" & arrHexList(0)) 'give Result the first value

For i = 1 To UBound(arrHexList) 'loop from the 2nd item to the end of the list

'Xor the result so far with the next index
Result = Result Xor CLng("&H" & arrHexList(i))
Next

'The actual command string + chk
realhex = G & " " & Hex(Result)

'Send command to Sendhex rutine
sendhex (realhex)

End Sub

Sub sendhex(H As String)

Dim strHexList() As String
Dim loop1 As Long
Dim bytSend As Byte

'split the string into an array based on the space character
strHexList = Split(H, " ")

'loop through each item in the array
For loop1 = 0 To UBound(strHexList)

'convert the hex text into a byte
bytSend = CByte("&H" & strHexList(loop1))

'send the data
main.MSComm1.Output = Chr(bytSend)
Next 'loop1
End Sub
  Reply With Quote
Reply

Bookmarks


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
question about superdongle data of n-95 8gb compue Universalbox 2 03-29-2010 15:16
One Question About Cruiser,pls Gubby_J Cruiser Suite 2 03-29-2010 12:46
i want test comport available on my pc with vb mscomm OTMAN-GSM GSM Programming & Reverse Engineering 6 02-14-2007 08:27
Help! VB, And Samsung Mobiles through IrDA and mscomm ocx due GSM Programming & Reverse Engineering 0 09-25-2004 02:46
Mscomm Tutorila Or Book Needed SoftSkiner GSM Programming & Reverse Engineering 2 02-19-2003 13:51

 



All times are GMT +1. The time now is 07:40.



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

SEO by vBSEO