-=-
.
.....
  
 
RSS
Direkomendasikan menggunakan brower Opera/Chrome/Firefox. Resolusi minimal 1024x768 | Powered by ____ |
 
  
 
Nikmati Delphi-ID dalam berbagai versi tampilan :
Basic View (LOW Bandwidth)
Default View (Full)
Mobile Edition
Main Menu
..:: onWebTools ::..
..:: onLastPosts ::..
goto PostTAdvOfficeStatusBar > 'Property ShowSplitter does not exi(0)
 by babypigs
 on 04.Feb at 22:45
goto Post2 query di satu report(1)
 by kepiss
 on 04.Feb at 18:25
goto PostLowongan Kerja IT Coordinator(2)
 by madi
 on 02.Feb at 15:05
goto Postaccess ke foxpro(0)
 by idhiel
 on 02.Feb at 14:29
goto PostASK: TMS TAdvColumnGrid(0)
 by batozai
 on 02.Feb at 14:03
goto Post[ask] buat funtion dengan nilai return berupa record(0)
 by irosyidi
 on 02.Feb at 11:29
goto Posttanya inno setup mentog(5)
 by jowo
 on 01.Feb at 13:11
goto PostMembuat executable Delphi 2009 + dbExpress(0)
 by zuq
 on 01.Feb at 11:41
goto PostKapan ya delphi-id bikin jaket lagi....??(41)
 by sidiq_himura
 on 31.Jan at 17:02
goto PostuniGUI, bikin aplikasi web pakai delphi as easy as ABC(18)
 by R-One
 on 22.Jan at 19:45
goto PostAba(d)ikan: Tempat (wc) umum orang ngaco dan o-on Versi 2(132)
 by asiyrob
 on 20.Jan at 09:53
goto Postkomponen delphi 7(6)
 by idhiel
 on 19.Jan at 18:41
goto Post[HELP] Fungsi komponen DataModule and IBQuery...(0)
 by binyo
 on 19.Jan at 15:43
goto PostKenapa Firebird tidak AutoCommit ????(27)
 by binyo
 on 19.Jan at 15:30

..:: onLast Articles ::..
..:: New Download ::..
Pascal-id.Org
Feeds -  Popular -  Latest
RE: The Longue
5 months, 1 week ago
RE: belajar pascal
5 months, 1 week ago
RE: The Longue
5 months, 1 week ago
RE: belajar pascal
5 months, 1 week ago
RE: Perkenalan dan Absen
5 months, 1 week ago
RE: Alhamdulillah Buka Puasa Bersama
5 months, 1 week ago
RE: تَقَبَّلَ اللهُ مِنَّا وَمِنْكَ - Selamat Hari Raya Idul Fitri
5 months, 1 week ago
Lintas Situs
Feeds -  Popular -  Latest
TSafeMe… BindMe
10 months, 3 weeks ago
TSafeMe… BindMe
10 months, 3 weeks ago
TSafeMe… BindMe
10 months, 3 weeks ago
TSafeMe… BindMe
10 months, 3 weeks ago
PowerLogic SDK
1 year ago
Game/Physics Engine Theory: Subtraction-based Geometry Destruction Transformation (Part 1)
2 months, 4 weeks ago
WMI Tasks using Delphi – Processes
2 months, 4 weeks ago
Memory leaks on OS X
2 months, 4 weeks ago
47 on November 7th, 2011
3 months ago
WMI Tasks using Delphi – Printers and Printing
3 months ago
«
free web site stats and visitor tracking

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
andraonesOffline
Location:
Post subject: (Ask) TComport  PostPosted: 31/Aug/2010 14:20
onBeginner


Joined: 31-Aug-2010
Posts: 5

Status: Offline
Agan2 master delphi .... ane minta tolong dong. Ane baru nih di forum ini. Tapi lagi kesulitan dengan komponen tcomport. Ane lagi coba ngebaca data dari gsm modem (Wavecom) dengan pake component tcomport. Kalo dicoba pake hyperterminal semuanya bisa kebaca dan AT commandnya juga bisa diperintah. begitu juga kalo pakai aplikasi yang ada di help tcomport (miniterminal).
Tapi kenapa ya kalo pake eventnya tcomport (onrxchar) kok ga ada yang muncul data stringnya??
apakah ada propertinya yang mesti disetting lagi ??
udah beberapa hari nih coba2 settingnya tapi belum menampakkan tanda2 kehidupan ... hikss...
jadi apakah ada pencerahan dari para agan master delphi ??
Terima kasih sebelumnya.

Newbie.
 
 View user's profile Send private message  
Reply with quote Back to top
mas_kofa
Location: New York Arto
Post subject:   PostPosted: 01/Sep/2010 06:32
onElite


Joined: 18-Mar-2006
Posts: 1700
Location: New York Arto
1. yg mesti kamu setting (disesuaikan dengan modem) : baudrate, parity, flowcontrol, databits, dll
2. gmn koding yg udah kamu tulis....bisa ditampilkan di sini???

_________________
Pay Per Day | Pesbuk
Me isn't mine
Aku Ini adalah satu

Cerdik seperti ular, Tulus seperti merpati
 
 View user's profile Send private message  
Reply with quote Back to top
andraonesOffline
Location:
Post subject:   PostPosted: 01/Sep/2010 13:38
onBeginner


Joined: 31-Aug-2010
Posts: 5

Status: Offline
Program bacanya sama seperti yang diexample tcomport seperti dibawah ini :

procedure TForm1.ComPort1RxChar(Sender: TObject; Count: Integer);
var
Str: String;
begin
ComPort1.ReadStr(Str,count);
Listbox1.items.add(str);
end;


lalu pas program di jalankan, tak ada string yang masuk ke listbox (masih kosong).
Sampai ane coba pake example bawaan tcomport yaitu aplikasi miniterm.exe
aplikasi ini gsm modem merespon dengan baik semua perintah AT Command. dan program diatas ane sisipin di component tcomport untuk melihat hasil string proses, tapi tetap aja kosong.
knapa ya gan ??? pusing juga nih ...
 
 View user's profile Send private message  
Reply with quote Back to top
phytoOffline
Location:
Post subject:   PostPosted: 02/Sep/2010 23:48
onBeginner


Joined: 10-Aug-2010
Posts: 4

Status: Offline
Perintah AT Com nya.....??
 
 View user's profile Send private message  
Reply with quote Back to top
andraonesOffline
Location:
Post subject:   PostPosted: 03/Sep/2010 15:52
onBeginner


Joined: 31-Aug-2010
Posts: 5

Status: Offline
Hampir semua perintah AT Com. dari yang simple (AT, ATI3, AT+CMGL="ALL", dll...)
Kira2 kenapa ya ?? semoga ada yang bisa kasih pencerahan nih ...
dah mendung terus dari kemarin ... Crying or Very sad
 
 View user's profile Send private message  
Reply with quote Back to top
phytoOffline
Location:
Post subject:   PostPosted: 04/Sep/2010 18:44
onBeginner


Joined: 10-Aug-2010
Posts: 4

Status: Offline
Dulu pernah pake ComPort juga sih....tapi dah lupa,hehehehehe...
dah di send perintah AT COM nya..??

Comport1.SendString('ATE1'#13);

baru di add string....

Lagi buat program apa?
 
 View user's profile Send private message  
Reply with quote Back to top
andraonesOffline
Location:
Post subject:   PostPosted: 05/Sep/2010 23:49
onBeginner


Joined: 31-Aug-2010
Posts: 5

Status: Offline
perintah

Comport1.SendString('ATE1'#13);

sudah dicoba, tapi data string dari gsm modem belum diterima juga. padahal pake aplikasi sample (miniterm.exe) baik-baik aja. sampe script dibawah ini :

procedure TForm1.ComPort1RxChar(Sender: TObject; Count: Integer);
var
Str: String;
begin
ComPort1.ReadStr(Str,count);
Listbox1.items.add(str);
end;


ditempel di method-nya rxchar miniterm.exe tapi ga muncul juga.
kalo baca testimoni program2 yang sejenis datanya sdh muncul, knp diprogram ane ga muncul2 yaa ??

ane lagi buat progam sms reminder buat dikantor ...
 
 View user's profile Send private message  
Reply with quote Back to top
aandrie77Offline
Location:
Post subject:   PostPosted: 07/Sep/2010 16:18
onConfident


Joined: 27-Jan-2007
Posts: 28

Status: Offline
      andraones wrote:
perintah

Comport1.SendString('ATE1'#13);

sudah dicoba, tapi data string dari gsm modem belum diterima juga. padahal pake aplikasi sample (miniterm.exe) baik-baik aja. sampe script dibawah ini :

procedure TForm1.ComPort1RxChar(Sender: TObject; Count: Integer);
var
Str: String;
begin
ComPort1.ReadStr(Str,count);
Listbox1.items.add(str);
end;


ditempel di method-nya rxchar miniterm.exe tapi ga muncul juga.
kalo baca testimoni program2 yang sejenis datanya sdh muncul, knp diprogram ane ga muncul2 yaa ??

ane lagi buat progam sms reminder buat dikantor ...


coba pake code buat baca string di buffernya
      Quote:

repeat
s := comport1.ReadString;
edit1.text:=edit1.text+s;
until (pos(sOK, s) > 0) or (pos(sERROR, s) > 0) or (SecondsBetween(waktu,now) > 180);
 
 View user's profile Send private message  
Reply with quote Back to top
theodorusapOffline
Location:
Post subject:   PostPosted: 19/Sep/2010 11:06
onNovice


Joined: 08-Dec-2009
Posts: 9

Status: Offline
code : pascal
  1. procedure TForm1.ComPort1RxChar(Sender: TObject; Count: Integer);
  2. var
  3. Str: String;
  4. begin
  5. ComPort1.ReadStr(Str,count);
  6. Listbox1.items.add(str);
  7. end;
Parsed in 0.002 seconds, using GeSHi


Kayaknya ada yang menarik dari fungsi ini, tapi karena saya tidak menggunakan Tcomport, mungkin metode pemeriksaan ini
bisa digunakan.

comport1.ReadStr(Str,count)

yang dibaca oleh comport itu str yang mana? seluruh str yang ada di buffer, atau str terakhir?
terus count itu fungsinya untuk apa?
coba dilakukan debug, misalnya :


code : pascal
  1. procedure TForm1.ComPort1RxChar(Sender: TObject; Count: Integer);
  2. var
  3. Str: String;
  4. begin
  5. ComPort1.ReadStr(Str,count);
  6. Listbox1.items.add('count=' inttostr(count) '--> data=' str);
  7. end;
Parsed in 0.002 seconds, using GeSHi


1. Perhatikan listboxnya. kalau countnya 0, jelas tidak ada strnya. tapi kalau countnya ada, berarti ada problem sama strnya.
2. Perhatikan juga, apakah countnya bertambah terus, atau berubah-ubah tidak pasti.
3. Kalau seandaniya countnya terus bertambah, berarti str yang dibaca dari comport itu merupakan keseluruhan buffernya. Untuk itu bisa dilakukan pengecekan lanjutan dengan membuat code berikut :

code : pascal
  1. procedure TForm1.ComPort1RxChar(Sender: TObject; Count: Integer);
  2. var
  3. Str: String;
  4. begin
  5. ComPort1.ReadStr(Str,count);
  6. Listbox1.items.text:=Str;
  7. end;
Parsed in 0.002 seconds, using GeSHi


coba perhatikan, apakah ada yang tampil di listbox.

Kira-kira seperti itu metode pemeriksaan yang bisa dianjurkan.
tks.
 
 View user's profile Send private message  
Reply with quote Back to top
andraonesOffline
Location:
Post subject:   PostPosted: 20/Sep/2010 12:50
onBeginner


Joined: 31-Aug-2010
Posts: 5

Status: Offline
Ane sudah cek stringnya. Sama seperti diatas pake lisbox untuk melihat apakah data stringnya sudah masuk/diterima. Tapi ternyata sama sekali tidak ada data stringnya.
makanya ane jadi bingung nih ...
 
 View user's profile Send private message  
Reply with quote Back to top
aandrie77Offline
Location:
Post subject:   PostPosted: 23/Sep/2010 10:54
onConfident


Joined: 27-Jan-2007
Posts: 28

Status: Offline
      andraones wrote:
Ane sudah cek stringnya. Sama seperti diatas pake lisbox untuk melihat apakah data stringnya sudah masuk/diterima. Tapi ternyata sama sekali tidak ada data stringnya.
makanya ane jadi bingung nih ...


sudah coba pake code ini :


      Quote:

repeat
s := comport1.ReadString;
edit1.text:=edit1.text+s;
until (pos(sOK, s) > 0) or (pos(sERROR, s) > 0) or (SecondsBetween(waktu,now) > 180);
[/quote]
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 12 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic





Powered by PNphpBB2 © 2003-2009 The Zafenio Team
Credits


| Register | Lost Password ? |