Weird WriteLn output

  • 1
  • 2
  • Page 2 of 2
Merlin
Administrator
Avatar
Gender:
Age: 24
Posts: 1409
Registered: 03 / 2005
Subject:

Re: Weird WriteLn output

 · 
Posted: 16.10.2014 - 15:23  ·  #9
Well, yes, but it is not necessarily AVRCo even so. There are many layers of VCP and it could be the Microsoft part of serial driver, although I agree, if the output is entirely repeatable, this is unlikely. However, I did not find that it was all that repeatable - the error occurred pretty much in the same place but the output was not always exactly the same, although it did seem to mix the two lines of output. And sometimes two successive WriteLn statements did not produce an error, although it was always the same pairs of WriteLn statements that produced an error, not random. I think that your output shows the same symptoms from that point of view. I don't have time to do it at the moment, but when I get a chance I will hook up two machines (one XP and one Windows 7) to the same serial port and see if the same strings go to both machines. that should at least prove if it is the windows machines or AVRCo.
Harald_K
 
Avatar
 
Subject:

Re: Weird WriteLn output

 · 
Posted: 16.10.2014 - 18:46  ·  #10
would say it depends on Win7

as mentioned above, changing the reading PC-System from XPprof to Win7 lets the on-board COM-Port loose a char (or more?) from time to time.

Our data stream consists of a line of chars of different length, always containing a ASCII-codes Position numer and some data, about 5 or 6 of these data-lines are placed on the screen in the line belonging to the received position-Number. Sometimes, the dataline with the biggest amount of data is lost ....

i dont know exactly what is lost, you just see that a part of the received data on the screen remains empty.


running the complete system for about 10 years from Win95 to XP the data loss never occured - changed to Win7 it took just one week or two ...
Avra
Schreiberling
Avatar
Gender:
Location: Belgrade, Serbia
Age: 53
Homepage: rs.linkedin.com/in…
Posts: 653
Registered: 07 / 2002
Subject:

Re: Weird WriteLn output

 · 
Posted: 16.10.2014 - 23:37  ·  #11
Thanks everyone very much! Problem solved now. I will share my/our findings for future reference here.

At first I tried compiling with old AvrCo 4.99, but after flashing to EvaBoard-485 the serial output was still weird in Win7 and Bray Terminal. It looked like it was AvrCo but I remember few projects back then who used serial a lot and didn't have this problem. Hmmmm.... Then I have connected to WinXP and the same output now showed well in Bray Terminal. Then I have connected the same output to Win7 but through Digitus SERIAL<>USB connector I had laying around. Output was good. Well, it must be Win7 serial driver, I thought. Wrong again! Searching the net for missing characters in Win7 serial driver showed nothing useful, so I switched to another terminal software, and output was finally good in all tested cases.

It turned out that my old trusty Bray Terminal, which served me reliably for more then 10 years, in version 20140110 which I was using, had a problem on Win7 with both internal motherboard serial port and FT230X on my boards, but not with Digitus SERIAL<>USB convertor. When I have reverted to old 20130116 version, problems were gone. Downloading latest 20140703 version also fixed the problem. I will test further but after quick tests everything looks good now.

Once again thank you all !!!
Avra
Schreiberling
Avatar
Gender:
Location: Belgrade, Serbia
Age: 53
Homepage: rs.linkedin.com/in…
Posts: 653
Registered: 07 / 2002
Subject:

Re: Weird WriteLn output

 · 
Posted: 21.10.2014 - 07:35  ·  #12
@Merlin:

I wonder what terminal application you have used for testing XMEGA? Does problem disappear if you change terminal application?
Merlin
Administrator
Avatar
Gender:
Age: 24
Posts: 1409
Registered: 03 / 2005
Subject:

Re: Weird WriteLn output

 · 
Posted: 23.10.2014 - 12:29  ·  #13
Hi Avra.

I use my own - a Delphi application using VCP (virtual comm port) application through FTDI drivers.
  • 1
  • 2
  • Page 2 of 2
Selected quotes for multi-quoting:   0

Registered users in this topic

Currently no registered users in this section

The statistic shows who was online during the last 5 minutes. Updated every 90 seconds.
MySQL Queries: 15 · Cache Hits: 14   85   99 · Page-Gen-Time: 0.025787s · Memory Usage: 2 MB · GZIP: on · Viewport: SMXL-HiDPI