|
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 |
01-19-2011, 01:39 | #47 (permalink) |
Junior Member Join Date: Jan 2011
Posts: 1
Member: 1496574 Status: Offline Thanks Meter: 1 | hey the code is great. I just had to register the dll blackberry radio on windows with the command regsrv32 and thats it. Another thing that i made is error handling here: Code: Try // Connect to phone Connection.Connect('USB', 300, 19200, ''); except on E: exception do ShowMessage('Please connect your blackberry.'); End; and in the last part of the code i put: Try Connection.Disconnect; except // do nothin End; |
The Following User Says Thank You to tresloukadu For This Useful Post: |
01-29-2011, 07:06 | #48 (permalink) | |
No Life Poster Join Date: Sep 2005 Location: Resign
Posts: 525
Member: 177036 Status: Offline Thanks Meter: 934 | Quote:
where the place can i put this? correct | |
01-29-2011, 14:28 | #49 (permalink) |
No Life Poster Join Date: Feb 2006 Location: Club-Berry
Posts: 1,938
Member: 238127 Status: Offline Sonork: 100.1574867 Thanks Meter: 3,526 | You have to insert it when making a connection and on disconnect, just replace all those lines with the ones present there, luck |
01-31-2011, 08:46 | #50 (permalink) | |
Product Manager Join Date: Apr 2002 Location: nckDongle
Posts: 13,325
Member: 11170 Status: Offline Sonork: 1603694 Thanks Meter: 6,944 | Quote:
some like this var myobject: *****adioObj; begin myobject:= *****adioObj.Create(Form1); if myobject.DefaultInterface.QueryInterface(IID_IConn ection,Connection)=S_OK then begin // Connect to phone try Connection.Connect('USB', 300, 19200, ''); e.t.c e.t.c. hope will help This library not work for new Blackberry. | |
The Following User Says Thank You to orbita For This Useful Post: |
01-31-2011, 14:09 | #52 (permalink) | |
No Life Poster Join Date: Feb 2006 Location: Club-Berry
Posts: 1,938
Member: 238127 Status: Offline Sonork: 100.1574867 Thanks Meter: 3,526 | Quote:
Luck! | |
01-31-2011, 15:14 | #53 (permalink) | |
No Life Poster Join Date: Oct 2005 Location: Rome , Italy
Posts: 1,530
Member: 190882 Status: Offline Sonork: BB PIN: 7C83D9CE Thanks Meter: 1,282 | i have successfull used win32 api (thanks to victor) for comunicate with bb Quote:
i have used dll with vb.net so you can use it with c# if i found source on my pc i will post it | |
The Following 3 Users Say Thank You to fr3nsis For This Useful Post: |
01-31-2011, 16:05 | #54 (permalink) | |
No Life Poster Join Date: Jul 2006 Location: ..::DZ-25::..
Posts: 529
Member: 315181 Status: Offline Sonork: 100.1593455 Thanks Meter: 301 | Quote:
about using win api's, I never tried with BB (just Nokia and LG) when i find time i'll trie to do it.... | |
01-31-2011, 16:24 | #55 (permalink) |
No Life Poster Join Date: Feb 2006 Location: Club-Berry
Posts: 1,938
Member: 238127 Status: Offline Sonork: 100.1574867 Thanks Meter: 3,526 | Thats exactly what i want to do, i have a sample for other phones, so i guess with BlackBerrys i will need little modification luck |
01-31-2011, 18:35 | #56 (permalink) |
No Life Poster Join Date: Oct 2005 Location: Rome , Italy
Posts: 1,530
Member: 190882 Status: Offline Sonork: BB PIN: 7C83D9CE Thanks Meter: 1,282 | Imports RIMRADIOCOMLib public sub readInfo Dim connection As IConnection = New RIMRadioObj Dim imei as IreadImei = New RIMRadioObj Dim str as string="" connection.Connect("USB", 300, 19000, "") If connection .GetStatus =ConnectionStatus.CONN_STATUS_CONNECTED imei.Execute(str) textbox1.text=str else textbox1.text="Phone not connected" end if end sub |
The Following 3 Users Say Thank You to fr3nsis For This Useful Post: |
02-04-2011, 19:50 | #59 (permalink) |
No Life Poster Join Date: Feb 2006 Location: Club-Berry
Posts: 1,938
Member: 238127 Status: Offline Sonork: 100.1574867 Thanks Meter: 3,526 | I am trying to connect directly to BlackBerry, i have read many things by now and have this piece of code to get a valid handle with path to device, but for some reason it is not working, can anybody take a look at this code and give any opinion? Code: function TForm1.GetDevicePath: THandle; var BytesReturned : DWORD; LPGUID : TGUID; DeviceInfo : HDEVINFO; DeviceInterfaceData : TSPDeviceInterfaceData; DetailData : PSPDeviceInterfaceDetailData; begin LPGUID := GUID_DEVINTERFACE; DetailData := nil; GetDevicePath := INVALID_HANDLE_VALUE; LoadSetupApi; DeviceInfo := SetupDiGetClassDevs(@LPGUID, nil, 0, DIGCF_PRESENT or DIGCF_DEVICEINTERFACE); if not(DeviceInfo = Pointer(INVALID_HANDLE_VALUE)) then begin DeviceInterfaceData.cbSize := SizeOf(TSPDeviceInterfaceData); if not SetupDiEnumDeviceInterfaces(DeviceInfo, nil, LPGUID, 0, DeviceInterfaceData) then begin if SetupDiGetDeviceInterfaceDetail(DeviceInfo, @DeviceInterfaceData, nil, 0, BytesReturned, nil) then begin DetailData := AllocMem(BytesReturned); if DetailData = Pointer(INVALID_HANDLE_VALUE) then begin SetupDiDestroyDeviceInfoList(DeviceInfo); GetDevicePath:=INVALID_HANDLE_VALUE; end; DetailData.cbSize:= SizeOf(TSPDeviceInterfaceDetailData); if SetupDiGetDeviceInterfaceDetail(DeviceInfo, @DeviceInterfaceData, DetailData, BytesReturned, BytesReturned, nil) = false then begin FreeMem(DetailData); GetDevicePath:=INVALID_HANDLE_VALUE; end; if DetailData.DevicePath = '' then begin SetupDiDestroyDeviceInfoList(DeviceInfo); FreeMem(DetailData); end; GetDevicePath := CreateFile(DetailData.DevicePath, GENERIC_WRITE or GENERIC_READ, FILE_SHARE_READ or FILE_SHARE_WRITE, nil, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL or FILE_FLAG_OVERLAPPED, 0 ); FreeMem(DetailData); end; end; end; UnloadSetupApi; end; Any help would be appreciated, thanks |
02-04-2011, 21:00 | #60 (permalink) |
No Life Poster Join Date: Oct 2005 Location: Rome , Italy
Posts: 1,530
Member: 190882 Status: Offline Sonork: BB PIN: 7C83D9CE Thanks Meter: 1,282 | Look my post about bb connection and you find solution ... I'm with phone so atm I can't link it Sent from my HTC Desire using Tapatalk |
The Following User Says Thank You to fr3nsis For This Useful Post: |
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 |
|