|
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 |
03-17-2017, 11:09 | #1 (permalink) |
Insane Poster Join Date: Jan 2017
Posts: 95
Member: 2674769 Status: Offline Thanks Meter: 17 | write bin to comport connected phone as hex Need to send boot-loader to phone as a hex in delphi 1- get file as hex 2- sending to comport as a hex 3- reading from comport while writing every 256 block Or less or more Thanks brothers |
03-19-2017, 17:05 | #3 (permalink) |
No Life Poster Join Date: May 2012 Location: BHARAT
Posts: 1,571
Member: 1766148 Status: Offline Sonork: 100.1614494 Thanks Meter: 490 | If you tried search functionality, You might got these results: http://forum.gsmhosting.com/vbb/f83/...mport-1267120/ http://forum.gsmhosting.com/vbb/f83/...oader-1259448/ http://forum.gsmhosting.com/vbb/f83/...nation-941474/ This is also Helpful: http://forum.gsmhosting.com/vbb/f83/...5-11-a-637967/ Best way: Try to Do It Yourself, As you done right now. P.S.: Share the solution, If you are comfortable. |
03-19-2017, 21:12 | #4 (permalink) |
Moderator Join Date: May 1999 Location: Blagoevgrad, Bulgaria Age: 52
Posts: 1,056
Member: 73 Status: Offline Thanks Meter: 537 | @doctorsu http://forum.gsmhosting.com/vbb/f83/...5-11-a-637967/ If you not read forum rules. And not read one basic book from library "HOW TO USE SEARCH BUTTON BEFORE ASK" - with clear mind will give infraction. Specialy that part: Code: Update - 20th May 2011 This is not a "source code request" section. Do not start a thread asking "give me source for xxxx". If you have trouble with a project, post details of your problem (best to post your existing source code) and someone will help. If you search the forum you will find many, many examples of source code. Regards: Victor
__________________ You'll die as you lived in a flash of the blade, in a corner forgotten by no one You lived for the touch for the feel of the steel One man, and his honor. Last edited by Victor; 03-19-2017 at 21:20. |
The Following User Says Thank You to Victor For This Useful Post: |
03-19-2017, 22:19 | #5 (permalink) |
Insane Poster Join Date: Jan 2017
Posts: 95
Member: 2674769 Status: Offline Thanks Meter: 17 | thanks I read it now sorry now I used this Code: AssignFile(OpenFile,'boo.bin'); Reset(OpenFile,1); repeat blockread(OpenFile,buf,sizeof(buf),fc1); sleep(500); comport1.Write(buf,sizeof(buf)) ; Application.ProcessMessages; form1.ComPort1.ReadStr(r, 20); if fc1<>0 then begin Application.ProcessMessages; end; until fc1<>sizeof(buf); closefile(OpenFile); but my problem is this percuder It write the hole bin after the I get the comport answers I need to read phone answers after 4096 bites of write |
03-26-2017, 01:32 | #6 (permalink) |
Insane Poster Join Date: Jan 2017
Posts: 95
Member: 2674769 Status: Offline Thanks Meter: 17 | found it AssignFile(OpenFile, 'boot.hex'); try Reset(OpenFile, 1); while not Eof(OpenFile) do begin fc1 := 0; repeat BlockRead(OpenFile, buf[fc1], sizeof(buf)-fc1, BytesRead); Inc(fc1, BytesRead); until (fc1 = sizeof(buf)) or Eof(OpenFile); if fc1 = 0 then Break; Comport1.Write(buf, fc1); ComPort1.ReadStr(r, 20); if GetQueueStatus(QS_ALLINPUT) <> 0 then Application.ProcessMessages; end; finally CloseFile(OpenFile); end; |
The Following User Says Thank You to doctorsu For This Useful Post: |
Bookmarks |
| |
|