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 01-07-2011, 04:09   #46 (permalink)
Junior Member
 
Join Date: Jul 2010
Posts: 8
Member: 1352307
Status: Offline
Thanks Meter: 1

im trying to do mr nico...
  Reply With Quote
Old 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;
thats now if bb is not connect weird messages wont appear.
  Reply With Quote
The Following User Says Thank You to tresloukadu For This Useful Post:
Old 01-29-2011, 07:06   #48 (permalink)
No Life Poster
 
darmiles's Avatar
 
Join Date: Sep 2005
Location: Resign
Posts: 525
Member: 177036
Status: Offline
Thanks Meter: 934
Donate money to this user
Quote:
Originally Posted by tresloukadu View Post
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;
thats now if bb is not connect weird messages wont appear.
not work in delphi

where the place can i put this? correct
  Reply With Quote
Old 01-29-2011, 14:28   #49 (permalink)
No Life Poster
 
y3kt's Avatar
 
Join Date: Feb 2006
Location: Club-Berry
Posts: 1,938
Member: 238127
Status: Offline
Sonork: 100.1574867
Thanks Meter: 3,526
Donate money to this user
You have to insert it when making a connection and on disconnect, just replace all those lines with the ones present there, luck
  Reply With Quote
Old 01-31-2011, 08:46   #50 (permalink)
Product Manager
 
orbita's Avatar
 
Join Date: Apr 2002
Location: nckDongle
Posts: 13,325
Member: 11170
Status: Offline
Sonork: 1603694
Thanks Meter: 6,944
Quote:
Originally Posted by y3kt View Post
You have to insert it when making a connection and on disconnect, just replace all those lines with the ones present there, luck
yes, you right, but if he use without declare class, and make connection to interface will not work.

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.
  Reply With Quote
The Following User Says Thank You to orbita For This Useful Post:
Old 01-31-2011, 10:01   #51 (permalink)
No Life Poster
 
angel25dz's Avatar
 
Join Date: Jul 2006
Location: ..::DZ-25::..
Posts: 529
Member: 315181
Status: Offline
Sonork: 100.1593455
Thanks Meter: 301
Quote:
Originally Posted by kique007 View Post
some one have done in c# languaje?
I think no, i'm searching this library for c# since long time !!
  Reply With Quote
Old 01-31-2011, 14:09   #52 (permalink)
No Life Poster
 
y3kt's Avatar
 
Join Date: Feb 2006
Location: Club-Berry
Posts: 1,938
Member: 238127
Status: Offline
Sonork: 100.1574867
Thanks Meter: 3,526
Donate money to this user
Quote:
Originally Posted by orbita View Post
yes, you right, but if he use without declare class, and make connection to interface will not work.

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.
I haven't tried that myself, actually i haven't use my code since long ago i still want to be able to read that info without rimradiocom dll, have the idea but don't have the time to test it. If i ever get to do it i will let you all know about, not big deal but i think many around here will be interested in this.
Luck!
  Reply With Quote
Old 01-31-2011, 15:14   #53 (permalink)
No Life Poster
 
fr3nsis's Avatar
 
Join Date: Oct 2005
Location: Rome , Italy
Posts: 1,530
Member: 190882
Status: Offline
Sonork: BB PIN: 7C83D9CE
Thanks Meter: 1,282
Donate money to this user
i have successfull used win32 api (thanks to victor) for comunicate with bb

Quote:
[31/01/2011 15.11.55] BPIN:241BXXXX
[31/01/2011 15.11.56] TRYING 'CALTASK CONFIG'
[31/01/2011 15.11.56] OPENING 'RIM CALTASK' CHANNEL
[31/01/2011 15.11.56] CHANNEL OPENED OK
[31/01/2011 15.11.57] IMEI:35692001XXXXX
[31/01/2011 15.11.57] BSN:170600XXXX
[31/01/2011 15.11.58] ASY-11454-001
[31/01/2011 15.11.58] MEP-06041-007
[31/01/2011 15.11.58] CFG-10993-018
[31/01/2011 15.11.58] SFI-12484-020
[31/01/2011 15.11.58] APP-13152-006
[31/01/2011 15.11.58] PRD-11929-043
[31/01/2011 15.11.58] VSM-06361-001 (RIM BLACKBERRY ) ( VID 1)
@angel25dz
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
  Reply With Quote
The Following 3 Users Say Thank You to fr3nsis For This Useful Post:
Show/Hide list of the thanked
Old 01-31-2011, 16:05   #54 (permalink)
No Life Poster
 
angel25dz's Avatar
 
Join Date: Jul 2006
Location: ..::DZ-25::..
Posts: 529
Member: 315181
Status: Offline
Sonork: 100.1593455
Thanks Meter: 301
Quote:
Originally Posted by fr3nsis View Post
i have successfull used win32 api (thanks to victor) for comunicate with bb



@angel25dz
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
thanks fr3nsis, it will be usefull for me

about using win api's, I never tried with BB (just Nokia and LG) when i find time i'll trie to do it....
  Reply With Quote
Old 01-31-2011, 16:24   #55 (permalink)
No Life Poster
 
y3kt's Avatar
 
Join Date: Feb 2006
Location: Club-Berry
Posts: 1,938
Member: 238127
Status: Offline
Sonork: 100.1574867
Thanks Meter: 3,526
Donate money to this user
Quote:
Originally Posted by fr3nsis View Post
i have successfull used win32 api (thanks to victor) for comunicate with bb



@angel25dz
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
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
  Reply With Quote
Old 01-31-2011, 18:35   #56 (permalink)
No Life Poster
 
fr3nsis's Avatar
 
Join Date: Oct 2005
Location: Rome , Italy
Posts: 1,530
Member: 190882
Status: Offline
Sonork: BB PIN: 7C83D9CE
Thanks Meter: 1,282
Donate money to this user
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
  Reply With Quote
The Following 3 Users Say Thank You to fr3nsis For This Useful Post:
Show/Hide list of the thanked
Old 01-31-2011, 19:58   #57 (permalink)
No Life Poster
 
angel25dz's Avatar
 
Join Date: Jul 2006
Location: ..::DZ-25::..
Posts: 529
Member: 315181
Status: Offline
Sonork: 100.1593455
Thanks Meter: 301
I loaded this DLL : Interop.RIMRADIOCOMLib.dll in visual studio 2008 and it work fine with C#
Attached Files
File Type: rar Interop.RIMRADIOCOMLib.rar (45.4 KB, 846 views)
  Reply With Quote
The Following 2 Users Say Thank You to angel25dz For This Useful Post:
Old 02-01-2011, 21:13   #58 (permalink)
No Life Poster
 
fr3nsis's Avatar
 
Join Date: Oct 2005
Location: Rome , Italy
Posts: 1,530
Member: 190882
Status: Offline
Sonork: BB PIN: 7C83D9CE
Thanks Meter: 1,282
Donate money to this user
Quote:
Originally Posted by Usmann View Post
Has Anyone Got This Working?
If So Can You Share Source Please

Also Does It Work With New Blackberrys Such As Torch + Bold 9780?

Thanks
Source code is here...what do you want ?



Sent from my HTC Desire using Tapatalk
  Reply With Quote
Old 02-04-2011, 19:50   #59 (permalink)
No Life Poster
 
y3kt's Avatar
 
Join Date: Feb 2006
Location: Club-Berry
Posts: 1,938
Member: 238127
Status: Offline
Sonork: 100.1574867
Thanks Meter: 3,526
Donate money to this user
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;
It is compiling well, but it never returns a valid handle, maybe i am using wrong GUID?

Any help would be appreciated, thanks
  Reply With Quote
Old 02-04-2011, 21:00   #60 (permalink)
No Life Poster
 
fr3nsis's Avatar
 
Join Date: Oct 2005
Location: Rome , Italy
Posts: 1,530
Member: 190882
Status: Offline
Sonork: BB PIN: 7C83D9CE
Thanks Meter: 1,282
Donate money to this user
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
  Reply With Quote
The Following User Says Thank You to fr3nsis For This Useful Post:
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
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

 



All times are GMT +1. The time now is 01:41.



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.29993 seconds with 10 queries

SEO by vBSEO