Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

non-standard baud rate at PDA serial port

I wonder whether there is some simple way to use different baud rates for SERIAL_PORT.vi than specified in PocketPC com16550.dll. I would like to set non-standard baud rate of 10472 (automotive). I even can compile the .exe application, but get Error_4_at_Seriaal_Port_Init (End of file encountered).

From http://www.arlab.it/vc/remarks.html:
"Car ECUs communicates using various baud rate (i.e 9600, 4800, 10472). The Pocket PC serial ports driver doesn't support "not-standard" baudrate (i.e. 10472), so VAG-Check set the serial speed without using the system driver. Running at "not-standard" baudrate depends on hardware type and for that reason isn't guaranteed that it always work."

Thanks
0 Kudos
Message 1 of 9
(5,211 Views)
hi everbits,

like you quoted it's possible that feasibility depends on which hardware you're using.
but perhaps you can attach your VI so we can have a look at how you're configuring the serial port VI.

greets!
0 Kudos
Message 2 of 9
(5,188 Views)
Hi,

there is the VI. It compiles well, amd there are no errors while operating at standard baud rates: 9600, 19200 etc.

As I have just 3 lines of rs232: txd, rxd, gnd; I cannot use different baud rate then specified 10472.
0 Kudos
Message 3 of 9
(5,180 Views)
for the buffer-size I found this:

"For all serial port VIs, the default buffer sizes are 64 for Mac OS, 1024 for Windows Me/9x, and 4096 for Windows 2000/NT/XP. If you specify a buffer size of 0, the system keeps the same buffer size as before. The maximum buffer size on Mac OS is 32767 bytes, or 32 KB minus 1. The maximum buffer size on Windows is 65534 bytes, or 64 KB minus 2."


when I try the VI and use another non-specified baud rate, I also get the error you discribed...
for the moment I don't know how to get the serial-communication to work with a baud rate out of standard...
0 Kudos
Message 4 of 9
(5,175 Views)
I guess, I have already seen the discussion on that topic for Palm OS. They use so called SerialFix for Serial driver, which allows to specify the non-standard baud rates. The problem seems to be typical for Windows CE. As far as I know there is some "mother" frequency for those devices which can be downgraded using some _deviders_. Example:

_mother_frequency_: 115200 bps (bits per second = baud rate)

devider >> outgoing baud

2 >> 57600
4 >> 28800
6 >> 19200
12>> 9600

All deviders are even

11>> 10472 !!!!
13>> 8862 etc.

The clue: it is possible. But: who will write the apropriate FIX for the serial driver? And: is it the MS problem or NI bug?
0 Kudos
Message 5 of 9
(5,171 Views)
hi everbits,

the thing with the divider sounds logical but I found nothing about such a SerialFix...

did you try to program with the VISA VI's? you could do this like in the example attached.
down in the VISA folder there is also another VI to configure the serial port called "VISA configure serial port".
don't know if there is a difference to the normal "configure serial port" but you can give it a try...
0 Kudos
Message 6 of 9
(5,159 Views)
NI-VISA currently does not supported Win CE or PDA. The only VIs that you can use are the older ones (non-VISA), however I don't think they support non-standard baud rates. At this point in time I'm not sure that their is a work around. VISA does support non-standard baud rates, but I know that you can't use it with LabVIEW 7 for PDA. You might want to call customer support and talk to them to see if they know of a work around.

Josh Prewitt
National Instruments
0 Kudos
Message 7 of 9
(5,152 Views)
About SerialFix for PALM:

SerialFix 2.3 has been updated, and may help those of you looking to link the T3 to a serial device.

Application Type: Shareware EUR11,16
http://pda247.palmgear.com/index.cfm?fuseaction=software.showsoftware&SID=2CC09FBF-CF18-ADC1-A0CC3E089E0AF2D3&PartnerREF=&prodid=58447&catid=0

"SerialFix is an OS/5 system extension that corrects a variety of problems with serial support in Tungsten/T and Tungsten/T3 devices.

Version 2 allows the Tungsten/T3 to communicate with devices that do not support hardware flow control, such as GPS units.

Non-standard baud rates are provided on the Tungsten/T. Devices such as MIDI controllers or automotive computer interfaces that require special baud rates can operate normally with SerialFix installed."

I will try to test it soon. Does anybody have a Tungsten?
0 Kudos
Message 8 of 9
(5,136 Views)
>>You might want to call customer support and talk to them to see if they know of a work around.

Yeahhhh. I did. Both in Germany and in the States. But as they learned, that I have a students license... they told me that the only service is the forum.

So I'm in the forum.
0 Kudos
Message 9 of 9
(5,134 Views)