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 - PM_COMMEVENT in serial example

PM_COMMEVENT in serial example

Discuss PocketC for CE (including Desktop Edition)

Postby Tuna on Wed Feb 19, 2003 8:03 pm

I'm trying to learn about serial communication techniques using the sample serial code. I am using a Casio BE-300. After changing from seropen to seropenex, I have been able to establish a connection and have been able to write to my pc (hyperterminal). However, I have not been successful in receiving characters from the pc on the BE. Actually, I am receiving them, because if I terminate the pocketc app and start up a terminal program on the BE, the contents of the buffer pops up (whatever I typed using the serial chat app). So I know that the data is coming to me, but the program is not catching it as an event. I apparently never receive a PM_COMMEVENT event message. Any ideas?
Tuna
 
Posts: 4
Joined: Wed Feb 19, 2003 7:54 pm
Location: USA

Postby Tuna on Mon Feb 24, 2003 12:51 pm

Still looking for feedback on this topic, please.
Tuna
 
Posts: 4
Joined: Wed Feb 19, 2003 7:54 pm
Location: USA

Postby joh.becker on Mon Feb 24, 2003 2:54 pm

Did you use the example code for the serial port, or did you write that yourself?

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

Postby Tuna on Mon Feb 24, 2003 3:31 pm

I used the example code. I couldn't get it to work at all until I changed from seropen to seropenex. The only other thing I changed is I added some putsl commands in certain locations to let me know if my code got that far.
Tuna
 
Posts: 4
Joined: Wed Feb 19, 2003 7:54 pm
Location: USA

Postby joh.becker on Tue Feb 25, 2003 6:41 am

What do you get back from commsetmask(ret,EV_RXCHAR)?

Does the program ever get into the PM_COMEVENT case?

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

Postby Tuna on Wed Feb 26, 2003 5:07 pm

I doesn't appear that I ever get into the PM_COMEVENT case. I get into the PM_CHAR case. I'm going off of memory here, but I believe when I had a putsl to show me the return from event(1) that I kept getting a PM_COMMAND return, but I'm not sure why.
Tuna
 
Posts: 4
Joined: Wed Feb 19, 2003 7:54 pm
Location: USA

Postby joh.becker on Thu Feb 27, 2003 6:16 am

You can send me your source code (offline) and see whther I can run it on my PocketPC (HP). May take until after the weekend.

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