Basic4ppc - Windows Mobile Development  

Go Back   Basic4ppc - Windows Mobile Development > Main Category > Questions & Help Needed
Home Register FAQ Members List Search Today's Posts Mark Forums Read

Questions & Help Needed Post any question regarding Basic4ppc.


Serial IrDa - still a problem


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-24-2008, 07:58 AM
Newbie
 
Join Date: Nov 2007
Posts: 9
Default Serial IrDa - still a problem

Bought a refurb iPaq H5550 and basic4ppc to check if it will be a workable solution - front end to configure a controller via InfraRed. These units are underground in the mines (3000m deep is not nice for a laptop).
The H5550 has Pocket PC 2003 Premium - and it works.
Now the customer needs a new PDA - bought a new iPAQ 2790b with Windows Mobile 5 - and it does not work!
Using .net2 and installed the latest sp2 on both handhelds.
Surely this seems odd??

Have checked IrDa Port - to beam from other PDA - slow, but works.

Tried basic terminal example - no go.

yet all work on H5550.
Reply With Quote
  #2 (permalink)  
Old 04-24-2008, 10:19 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,334
Default

You can try to use the older SerialDevice library instead of Serial2.
You will need to create a .Net 1.0 application (without the optimized compilation).
Reply With Quote
  #3 (permalink)  
Old 04-24-2008, 10:54 AM
Newbie
 
Join Date: Nov 2007
Posts: 9
Default

Did that earlier this year, when I e-mailed you with the problem.

Have also checked for bios/firmware = most current.
Tried original .net 2 compact framework = no luck
Note that serial fixes were in one of the sp's of the compact framework = back to latest sp2.

Have tried all comm devices = no luck.
Your registry utility does not identify the infrared port on this wm5 handheld.
Just putting the info that was in e-mails etc to avoid duplicate angles of attack

How do I go to HP and tell them it does not work, not keen to purchase another pocket pc to prove this - or maybe ms have changed the rules. In XP they have ditched the com port association for infrared.
Reply With Quote
  #4 (permalink)  
Old 04-24-2008, 05:36 PM
Newbie
 
Join Date: Nov 2007
Posts: 9
Default

@Erel
I have established the IrDa is com3 for now.
Now to work out what it is sending before the error message.
Reply With Quote
  #5 (permalink)  
Old 04-24-2008, 06:31 PM
Newbie
 
Join Date: Nov 2007
Posts: 9
Default

@Erel - more update.
It sends data, but all trash - loads of ????????????
Have checked baud etc
Initialized as follows:
Serial.CommPort = port
Serial.BitRate = 9600
Serial.DataBits = 8
Serial.StopBits = 1
Serial.Parity = "N"
Serial.PortOpen = true
port is assigned 3 initially and can be changed from the comport menu.

It is supposed to be Serial Text - where do I ensure that the mode is such?
Reply With Quote
  #6 (permalink)  
Old 04-25-2008, 06:47 AM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 3,334
Default

What data are you sending?
Try to send binary data with Serial.Output2 and receive it with InputArray.
Reply With Quote
  #7 (permalink)  
Old 04-25-2008, 07:06 AM
Newbie
 
Join Date: Nov 2007
Posts: 9
Default

Sending and receiving normal text - instructions and parameters eg "RT" & CR
Initialize it with serial.new1 in the open app sub, then the code provided above in the open port sub.
Basically the same as I did on the H5550.
Will try binary then.
Reply With Quote
  #8 (permalink)  
Old 05-06-2008, 05:20 PM
Newbie
 
Join Date: Nov 2007
Posts: 9
Default

Sounds dumb.
I have string eg "RT" - with serial.output2 I need buffer() of byte.
Would I then have to traverse the string and convert each character to byte, then serial.output2 = each_byte or the whole buffer??
Reply With Quote
  #9 (permalink)  
Old 05-06-2008, 06:15 PM
taximania's Avatar
Basic4ppc Veteran
 
Join Date: May 2007
Location: Derbyshire. UK
Posts: 262
Awards Showcase
Beta Tester 
Total Awards: 1
Default

Quote:
Originally Posted by dion View Post
Sounds dumb.
I have string eg "RT" - with serial.output2 I need buffer() of byte.
Would I then have to traverse the string and convert each character to byte, then serial.output2 = each_byte or the whole buffer??
Have you had a quick read of my pages about IrDA to a Pic microprocesser.
I had to send data byte by byte, it only ever read the 1st byte sent as a string.

IR - IRDA RS232 from microchip Pic to Pocket PC
__________________
I'm a little crazy at times . . . .

O2 XDA Artemis Touch Flo 4.02 Full Cube Rom WM6.1

http://www.taximania.net
Reply With Quote
  #10 (permalink)  
Old 05-06-2008, 09:38 PM
Newbie
 
Join Date: Nov 2007
Posts: 9
Default

Quote:
Originally Posted by taximania View Post
Have you had a quick read of my pages about IrDA to a Pic microprocesser.
I had to send data byte by byte, it only ever read the 1st byte sent as a string.

IR - IRDA RS232 from microchip Pic to Pocket PC
Yes, actually posted in the forum when the topic was still warm.
I recall you using the franson lib and a wrapper you wrote, right? Also the cheer in the forum when you got it working.

What beats me is that it works on the slightly older ppc with pocket 2003, but not on the new one with mobile 5. To verify if the irda actually works, I sent stuff from one pda to the other - worked, but appeared slow.

Either the new ppc has a suspect irda port - can only prove it if I lay my hands on another like it, or mobile 5 handles it different.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Serial data receive problem Aaron Padilla Bug Reports 3 08-01-2008 02:23 PM
Problem with Serial. ("before loop" error) jesb4ppc Questions & Help Needed 3 02-15-2008 06:41 PM
serial Cor Questions & Help Needed 1 01-18-2008 01:49 PM
irda text send error lee inmo Questions & Help Needed 2 07-01-2007 04:50 PM
binary serial input problem lucifer1 Questions & Help Needed 3 06-03-2007 07:26 PM


All times are GMT. The time now is 05:14 PM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.1.0