|
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 . |
|
Register | FAQ | Donate | Forum Rules | Root any Device | ★iPhone Unlock★ | ★ Direct Codes ★ | Direct Unlock Source |
GSM Programming & Reverse Engineering Here you can post all Kind of GSM Programming and Reverse Engineering tools and Secrets. |
| LinkBack | Thread Tools | Display Modes |
09-25-2011, 00:06 | #106 (permalink) | |||
Freak Poster Join Date: Apr 2005 Location: Inside Vb.Net Age: 41
Posts: 374
Member: 140822 Status: Offline Sonork: 100.1594493 Thanks Meter: 1,010 | I solved the problem in 2 different way's 1. Place a deviceHandle.Dispose() at the end of verification sentence Quote:
2. Just verificate a string on devicepathname Quote:
I connect 2 diferent devices, and get 2 different paths \\?\usb#vid_0fca&pid_8004&mi_00#7&34ebb32b&0&0000# {80375827-83b8-4a51-b39b-905fedd4f118}\MAIN <-- fr3ncis Path \\?\usb#vid_0fca&pid_8004&mi_00#6&2762282f&0&0000# {80375827-83b8-4a51-b39b-905fedd4f118}\MAIN <-- Blackberry 8520 \\?\usb#vid_0fca&pid_0001#5&23991be5&0&1#{80375827-83b8-4a51-b39b-905fedd4f118}\MAIN <-- Blackberry 7290 Now, Connection problem solved...and start studying Send commands, cause still not have luck with Fr3ncis Function: Quote:
thanks for you help. Last edited by josedavido; 09-25-2011 at 00:14. | |||
The Following 2 Users Say Thank You to josedavido For This Useful Post: |
09-25-2011, 13:55 | #107 (permalink) | |
Freak Poster Join Date: Aug 2009 Location: E G Y P T Age: 26
Posts: 347
Member: 1102520 Status: Offline Sonork: 100.1617999 Thanks Meter: 94 | Quote:
It's working If you knew how to send commands please tell me Thanks Last edited by seifhatem; 09-25-2011 at 14:02. | |
The Following User Says Thank You to seifhatem For This Useful Post: |
09-25-2011, 14:06 | #108 (permalink) | |
Freak Poster Join Date: Aug 2009 Location: E G Y P T Age: 26
Posts: 347
Member: 1102520 Status: Offline Sonork: 100.1617999 Thanks Meter: 94 | what's the command to send to read MEP here is the code to send the command Quote:
| |
The Following User Says Thank You to seifhatem For This Useful Post: |
09-25-2011, 14:07 | #109 (permalink) |
Product Manager Join Date: Apr 2002 Location: nckDongle
Posts: 13,325
Member: 11170 Status: Offline Sonork: 1603694 Thanks Meter: 6,944 | SetupDiGetDeviceRegistryProperty function will help you better instead of compare giud from path. you can have more info about device with this function. I'am not have experience with VB but when you send some to blackberry some times need read port 2..3 times if not will not work corect. HEX you must convert to string before fill in write buffer. for example SendHEX('00 00 10 00 01 FF 00 00 0D 80 5E 5E 05 00 00 00'); GetResponse; where sendhex is some like this Code: Procedure TBlackberryThread.SendHEX(aCmd: String); Var P: Pchar; L: Integer; ByteSent: integer; aStart: Cardinal; Begin aStart := GetTickCount; If aCmd <> '' then begin while Pos(' ', aCmd) > 0 do Delete(aCmd,Pos(' ', aCmd),1); aCmd:=hextostr(aCmd); p:=@aCmd[1]; // pchar l:=length(aCmd); while l>0 do begin if (aStart + Ftimeout) < GetTickCount then raise exception.Create('Timeout!'); ByteSent:=SerialWrite(p^,l); inc(p,ByteSent); dec(l,ByteSent); end; end; end; |
The Following User Says Thank You to orbita For This Useful Post: |
09-25-2011, 14:41 | #110 (permalink) |
Freak Poster Join Date: Aug 2009 Location: E G Y P T Age: 26
Posts: 347
Member: 1102520 Status: Offline Sonork: 100.1617999 Thanks Meter: 94 | i realised that it get a connection error if the device has been connected before running the program so i must disconnect then reconnect for the program to detect. |
09-26-2011, 14:14 | #111 (permalink) |
Freak Poster Join Date: Apr 2005 Location: Inside Vb.Net Age: 41
Posts: 374
Member: 140822 Status: Offline Sonork: 100.1594493 Thanks Meter: 1,010 | Just connection, NOT SEND COMMANDS Commands must be sended on HEX, and recived on HEX, then we must to convert to DEC Hex --> Hex <-- Convert to DEC --> show in Text We need help from Mr. Fr3ncis to use his function Last edited by josedavido; 09-26-2011 at 14:22. |
09-30-2011, 22:53 | #115 (permalink) |
Freak Poster Join Date: Apr 2005 Location: Inside Vb.Net Age: 41
Posts: 374
Member: 140822 Status: Offline Sonork: 100.1594493 Thanks Meter: 1,010 | Man, tis is another project. I just use Javaloader to make all this functions work. right now i am studying USB connection to update my old software. But still don't know send and recive commands if you want my software, can download it here: Multiupload.com - upload your files to multiple file hosting sites! Br, Josedavido |
10-01-2011, 08:24 | #116 (permalink) | |
No Life Poster Join Date: Sep 2005 Location: Resign
Posts: 525
Member: 177036 Status: Offline Thanks Meter: 934 | Quote:
| |
Bookmarks |
| |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
MEPSERVER - 1ST IN WORLD - BLACKBERRY MEP READER built for MAC users | FuriouS TeaM | FuriousGold | 35 | 06-09-2010 09:56 |
ALL BlackBerry Meps Level & HTC qualcomm/Omap code reader ! Professional Services !! | MB code | Main Sales Section | 0 | 03-03-2010 02:33 |
|