Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/jerdew5/orbworks.com/forum/includes/bbcode.php on line 472
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3368: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:472)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3370: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:472)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3371: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:472)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 3372: Cannot modify header information - headers already sent by (output started at /includes/bbcode.php:472)
OrbWorks Community Forum • View topic - IRDA and GSM

IRDA and GSM

Discuss PocketC for CE (including Desktop Edition)

Postby onelinus on Mon Aug 26, 2002 8:37 am

I wrote this little program to test my irda connection with gsm. Someone can tell me why it does not function on my device (PocketPC 2002 and siemens s45):

main() {
SOCKET sock;
string name;
pointer deviceid;
int timeout=1000;
string result;
int l;

showconsole();
putsl("Opening IR Port");
if(iropen(sock)) {
if(irdetect(sock,name,deviceid,timeout)) {
putsl("Connection detected "+name);
if(irsendstr(sock,"AT\n",timeout) {
putsl("Sent AT command...waiting for answer");
} else {
{ putsl("Error sending"); }
...
....
...

Opening port is ok...
Detecting device is OK .... SIEMES S45
When I try to send a data throw the ir port ... ERROR 10057
I tried also with COM3 connection using irda port as a normal serial port...I see my irda connection blinking on my phone during sending but no answer from phone.

Thanks
Antonio
onelinus
 
Posts: 2
Joined: Wed Aug 14, 2002 12:10 pm

Postby onelinus on Mon Sep 09, 2002 12:56 pm

<blockquote id="quote"><font size="1" face="Verdana, Arial, Helvetica" id="quote">quote:<hr height="1" noshade id="quote"><i>Originally posted by onelinus</i>
<br />I wrote this little program to test my irda connection with gsm. Someone can tell me why it does not function on my device (PocketPC 2002 and siemens s45):

main() {
SOCKET sock;
string name;
pointer deviceid;
int timeout=1000;
string result;
int l;

showconsole();
putsl("Opening IR Port");
if(iropen(sock)) {
if(irdetect(sock,name,deviceid,timeout)) {
putsl("Connection detected "+name);
if(irsendstr(sock,"AT\n",timeout) {
putsl("Sent AT command...waiting for answer");
} else {
{ putsl("Error sending"); }
...
....
...

Opening port is ok...
Detecting device is OK .... SIEMES S45
When I try to send a data throw the ir port ... ERROR 10057
I tried also with COM3 connection using irda port as a normal serial port...I see my irda connection blinking on my phone during sending but no answer from phone.

Thanks
Antonio
<hr height="1" noshade id="quote"></blockquote id="quote"></font id="quote">
onelinus
 
Posts: 2
Joined: Wed Aug 14, 2002 12:10 pm

Postby joh.becker on Mon Sep 09, 2002 1:23 pm

I am wondering whether you tried to use a return after the "AT" instead a newline. Return is usually expected by modems.

Johannes
joh.becker
 
Posts: 86
Joined: Tue Apr 17, 2001 6:51 am
Location: Germany


Return to PocketC for CE

Who is online

Users browsing this forum: No registered users and 1 guest

cron