|
|
|
![]() |
|
Strumenti |
![]() |
#21 |
Senior Member
Iscritto dal: Nov 2001
Città: Trento
Messaggi: 7095
|
![]()
__________________
MyPC: A7A266 - Thoro1800+@2000+ - SK6 - 512DDR - FX5200 128MB - SBLive!1024 - MAXTOR120GB - Liteon LTR52327S LDW-451S HTPC: Case uATX QTec - GA 7VM400M - Duron1600 - ALX800 - 256DDR - Radeon7000 - LiteOn166 - Pow by GeexBox 0.98.5 Utenti con cui ho trattato |
![]() |
![]() |
![]() |
#22 |
Senior Member
Iscritto dal: Apr 2000
Città: Roma
Messaggi: 15625
|
Sì certo che ci riuscivo. E' fondamentale aspettare la risposta del modem prima di eseguire i comandi successivi.
__________________
0: or %edi, %ecx; adc %eax, (%edx); popf; je 0b-22; pop %ebx; fadds 0x56(%ecx); lds 0x56(%ebx), %esp; mov %al, %al andeqs pc, r1, #147456; blpl 0xff8dd280; ldrgtb r4, [r6, #-472]; addgt r5, r8, r3, ror #12 |
![]() |
![]() |
![]() |
#23 |
Senior Member
Iscritto dal: Nov 2001
Città: Trento
Messaggi: 7095
|
ma lo facevi con una semplice read?
__________________
MyPC: A7A266 - Thoro1800+@2000+ - SK6 - 512DDR - FX5200 128MB - SBLive!1024 - MAXTOR120GB - Liteon LTR52327S LDW-451S HTPC: Case uATX QTec - GA 7VM400M - Duron1600 - ALX800 - 256DDR - Radeon7000 - LiteOn166 - Pow by GeexBox 0.98.5 Utenti con cui ho trattato |
![]() |
![]() |
![]() |
#24 |
Senior Member
Iscritto dal: Apr 2000
Città: Roma
Messaggi: 15625
|
Sì.
Ti conviene cercare in rete la procedura corretta sotto windows; se non ricordo male, occorre aprire la com con CreateFile, quindi usare qualche funzione per settare le impostazioni desiderate della porta, poi puoi accedere al dispositivo con le normali funzioni di read/write.
__________________
0: or %edi, %ecx; adc %eax, (%edx); popf; je 0b-22; pop %ebx; fadds 0x56(%ecx); lds 0x56(%ebx), %esp; mov %al, %al andeqs pc, r1, #147456; blpl 0xff8dd280; ldrgtb r4, [r6, #-472]; addgt r5, r8, r3, ror #12 |
![]() |
![]() |
![]() |
#25 |
Senior Member
Iscritto dal: Nov 2001
Città: Trento
Messaggi: 7095
|
ok, anche sotto linux e' necessario fare la stessa cosa?
magari prima faccio una prova sotto linux e poi provo sotto win. ciao ciao e ancora grazie
__________________
MyPC: A7A266 - Thoro1800+@2000+ - SK6 - 512DDR - FX5200 128MB - SBLive!1024 - MAXTOR120GB - Liteon LTR52327S LDW-451S HTPC: Case uATX QTec - GA 7VM400M - Duron1600 - ALX800 - 256DDR - Radeon7000 - LiteOn166 - Pow by GeexBox 0.98.5 Utenti con cui ho trattato |
![]() |
![]() |
![]() |
#26 |
Senior Member
Iscritto dal: Apr 2000
Città: Roma
Messaggi: 15625
|
Il concetto è simile, anche se le funzioni utilizzate sono ovviamente diverse.
__________________
0: or %edi, %ecx; adc %eax, (%edx); popf; je 0b-22; pop %ebx; fadds 0x56(%ecx); lds 0x56(%ebx), %esp; mov %al, %al andeqs pc, r1, #147456; blpl 0xff8dd280; ldrgtb r4, [r6, #-472]; addgt r5, r8, r3, ror #12 |
![]() |
![]() |
![]() |
#27 |
Senior Member
Iscritto dal: Nov 2001
Città: Trento
Messaggi: 7095
|
ok grazie
__________________
MyPC: A7A266 - Thoro1800+@2000+ - SK6 - 512DDR - FX5200 128MB - SBLive!1024 - MAXTOR120GB - Liteon LTR52327S LDW-451S HTPC: Case uATX QTec - GA 7VM400M - Duron1600 - ALX800 - 256DDR - Radeon7000 - LiteOn166 - Pow by GeexBox 0.98.5 Utenti con cui ho trattato |
![]() |
![]() |
![]() |
#28 |
Senior Member
Iscritto dal: Apr 2000
Città: Roma
Messaggi: 15625
|
Esistono diverse guide in rete riguardo i sistemi posix come linux; ad es. questa:
http://www.virtualblueness.net/serial/serial.html
__________________
0: or %edi, %ecx; adc %eax, (%edx); popf; je 0b-22; pop %ebx; fadds 0x56(%ecx); lds 0x56(%ebx), %esp; mov %al, %al andeqs pc, r1, #147456; blpl 0xff8dd280; ldrgtb r4, [r6, #-472]; addgt r5, r8, r3, ror #12 |
![]() |
![]() |
![]() |
#29 |
Senior Member
Iscritto dal: Nov 2001
Città: Trento
Messaggi: 7095
|
grazie
__________________
MyPC: A7A266 - Thoro1800+@2000+ - SK6 - 512DDR - FX5200 128MB - SBLive!1024 - MAXTOR120GB - Liteon LTR52327S LDW-451S HTPC: Case uATX QTec - GA 7VM400M - Duron1600 - ALX800 - 256DDR - Radeon7000 - LiteOn166 - Pow by GeexBox 0.98.5 Utenti con cui ho trattato |
![]() |
![]() |
![]() |
#30 | |
Senior Member
Iscritto dal: Apr 2000
Città: Vicino a Montecatini(Pistoia) Moto:Kawasaki Ninja ZX-9R Scudetti: 29
Messaggi: 53971
|
Quote:
![]() http://msdn.microsoft.com/library/de...s_resource.asp |
|
![]() |
![]() |
![]() |
#31 |
Senior Member
Iscritto dal: Nov 2001
Città: Trento
Messaggi: 7095
|
grazie a tutti!
domani pomeriggio provo e vi faccio sapere
__________________
MyPC: A7A266 - Thoro1800+@2000+ - SK6 - 512DDR - FX5200 128MB - SBLive!1024 - MAXTOR120GB - Liteon LTR52327S LDW-451S HTPC: Case uATX QTec - GA 7VM400M - Duron1600 - ALX800 - 256DDR - Radeon7000 - LiteOn166 - Pow by GeexBox 0.98.5 Utenti con cui ho trattato |
![]() |
![]() |
![]() |
#32 |
Senior Member
Iscritto dal: Apr 2000
Città: Vicino a Montecatini(Pistoia) Moto:Kawasaki Ninja ZX-9R Scudetti: 29
Messaggi: 53971
|
Se cerchi un po' a partire dal mio link vedraic he ce ne sono acnche altri di esempi: http://msdn.microsoft.com/library/de...ons_events.asp
|
![]() |
![]() |
![]() |
#33 |
Senior Member
Iscritto dal: Apr 2000
Città: Roma
Messaggi: 15625
|
Comunque, tornando al discorso AT:
http://www.daniel-hertrich.de/mob_hplx/atc35i.pdf Non è riferito specificamente al tuo modello, ma per lo più i comandi sono i soliti.
__________________
0: or %edi, %ecx; adc %eax, (%edx); popf; je 0b-22; pop %ebx; fadds 0x56(%ecx); lds 0x56(%ebx), %esp; mov %al, %al andeqs pc, r1, #147456; blpl 0xff8dd280; ldrgtb r4, [r6, #-472]; addgt r5, r8, r3, ror #12 |
![]() |
![]() |
![]() |
#34 |
Senior Member
Iscritto dal: Nov 2001
Città: Trento
Messaggi: 7095
|
grazie
![]()
__________________
MyPC: A7A266 - Thoro1800+@2000+ - SK6 - 512DDR - FX5200 128MB - SBLive!1024 - MAXTOR120GB - Liteon LTR52327S LDW-451S HTPC: Case uATX QTec - GA 7VM400M - Duron1600 - ALX800 - 256DDR - Radeon7000 - LiteOn166 - Pow by GeexBox 0.98.5 Utenti con cui ho trattato |
![]() |
![]() |
![]() |
#35 |
Senior Member
Iscritto dal: Nov 2001
Città: Trento
Messaggi: 7095
|
sto usando la funzione ReadFile che pero' a volte da problemi, infatti non legge tutta la risposta, ma solo 8 caratteri, anche se specifico di leggerne 40.
ciao ciao e grazie
__________________
MyPC: A7A266 - Thoro1800+@2000+ - SK6 - 512DDR - FX5200 128MB - SBLive!1024 - MAXTOR120GB - Liteon LTR52327S LDW-451S HTPC: Case uATX QTec - GA 7VM400M - Duron1600 - ALX800 - 256DDR - Radeon7000 - LiteOn166 - Pow by GeexBox 0.98.5 Utenti con cui ho trattato |
![]() |
![]() |
![]() |
#36 |
Senior Member
Iscritto dal: Apr 2000
Città: Roma
Messaggi: 15625
|
Evidentemente quando hai effettuato la read erano presenti solo 8 caratteri nel buffer di ricezione.
Il "40" è il limite massimo, la read può benissimo ritornarne meno.
__________________
0: or %edi, %ecx; adc %eax, (%edx); popf; je 0b-22; pop %ebx; fadds 0x56(%ecx); lds 0x56(%ebx), %esp; mov %al, %al andeqs pc, r1, #147456; blpl 0xff8dd280; ldrgtb r4, [r6, #-472]; addgt r5, r8, r3, ror #12 |
![]() |
![]() |
![]() |
#37 |
Senior Member
Iscritto dal: Jan 2005
Città: A casa mia
Messaggi: 825
|
ragazzi scusate non ho capitio bene..state scrivendo un programma ke permette di scrivere un sms da tastiera ke viene inviato al cellulare tramite porta com,e poi dal cellulare alla rete gsm?
Teoricamente,non è possibile inviare sms tramite l'adsl?cioè scrivere un sms client ke si collega al tipico numero centro servizi ,tim wind o vodafone e mandare sms da casa senza ausilio di cellulare sfruttando il collegamento adsl? io sapeo ke era possibile grazie a hyperterminal con il modem 56 kb(se non sbaglio la stessa cosa la potrei fare via telnet?anke da linux),ma non con l'adsl in quanto non compone numeri.. ne sapete qualcosa di piu?(SPERO DI NON AVER SCRITTO CAVOLATE,L'ARGOMENTO è AL QUANTO INTERESSANTE SOLO KE NON DI FACILE DOCUMENTAZIONE) grazie 3NiGm@666 Ultima modifica di 3nigma666 : 17-03-2005 alle 16:31. |
![]() |
![]() |
![]() |
#38 |
Senior Member
Iscritto dal: Apr 2000
Città: Vicino a Montecatini(Pistoia) Moto:Kawasaki Ninja ZX-9R Scudetti: 29
Messaggi: 53971
|
Sta comandando un cellulare/modem GSM per inviare un SMS...
|
![]() |
![]() |
![]() |
#39 | |
Senior Member
Iscritto dal: Nov 2001
Città: Trento
Messaggi: 7095
|
Quote:
Alla prima read mi da NO CARRI e alla seconda ER, sfasando tutto. ciao ciao
__________________
MyPC: A7A266 - Thoro1800+@2000+ - SK6 - 512DDR - FX5200 128MB - SBLive!1024 - MAXTOR120GB - Liteon LTR52327S LDW-451S HTPC: Case uATX QTec - GA 7VM400M - Duron1600 - ALX800 - 256DDR - Radeon7000 - LiteOn166 - Pow by GeexBox 0.98.5 Utenti con cui ho trattato |
|
![]() |
![]() |
![]() |
#40 |
Senior Member
Iscritto dal: Apr 2000
Città: Vicino a Montecatini(Pistoia) Moto:Kawasaki Ninja ZX-9R Scudetti: 29
Messaggi: 53971
|
Prova ad inserire un piccolo ritardo fra lettura e scrittura...qualcosa come 100 o 200 ms (con Sleep)...
|
![]() |
![]() |
![]() |
Strumenti | |
|
|
Tutti gli orari sono GMT +1. Ora sono le: 01:55.