LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-25-2008, 09:17 PM   #1
indelible
LQ Newbie
 
Registered: Aug 2008
Posts: 25

Rep: Reputation: 2
Question KVM serial i/o not outputting correct bits


Hi,

I am running windows XP, virtualised using KVM (with VT-d) and I am trying to upgrade the firmware on the radios we make. This uses a serial port and I can do a lot of interaction with the radio, like reading its configuration etc, but when I try to download a new firmware to it, it fails. After a lot of research into exactly what's happening we have discovered that it occurs when an ascii NULL is being sent. It comes out the other side of KVM as either 0xFF or 0x80 (depending on how you measure it). 0xFF came from a wire sniffer and 0x80 came from directing output to a file, but curiously, in the file, I sent 10 NULLs and only every second character came out as 0x80. It isn't the serial driver in the kernel as I can download firmware using wine (I just can't do anything else, like read the radio's config). Does anyone have any ideas on what might be happening?

Thanks,
Michael
 
Old 08-26-2008, 01:55 PM   #2
Ian D
Member
 
Registered: Aug 2005
Location: Solihull, UK
Distribution: Fedora 39
Posts: 215

Rep: Reputation: 18
In 'normal data' there would be frequent transitions from 1 to 0 and back. Normally, the hardware would be able to 're-sync' on those if there was a tendency to drift. I wonder whether, with 10 bytes of null (or even 2 bytes of null) the hardware (in the KVM) is drifting off spec and causing the problems.

Have you tried without the KVM? DOes the problem persist?

Just a thought.
 
Old 08-26-2008, 10:16 PM   #3
indelible
LQ Newbie
 
Registered: Aug 2008
Posts: 25

Original Poster
Rep: Reputation: 2
Perhaps my original post was misleading. I meant the Kernel Virtual Machine not a KVM switch. I don't think it's a timing issue because, before the NULL occurs in the file, something like 400 characters have already been sent successfully. It only doesn't handle NULL chars. I don't know the rs232 spec in the slightest, but maybe it's KVM's implementation that allows it to drift off-spec thus fooling the devices. I will ask around. In the meantime, if anyone has any ideas on how I could fix KVM, that would be great. I can program, I'm just not good with hardware issues Thanks,

Michael
 
  


Reply



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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Things to consider when compiling C using 32 bits instead of 64 bits processors rpomerleau Programming 2 07-08-2008 01:22 PM
How to change MAC address from 48 bits to 32 bits? cywong.digi Linux - Networking 1 09-05-2007 09:28 AM
32 bits version distros running 64 bits CPU javb Linux - General 4 04-02-2006 07:21 AM
Parport_pc driver not correct for the IT8874 serial port card. jimeotis Linux - Hardware 0 04-19-2005 03:39 PM
serial connection - missing bits drum1975 Linux - General 1 01-15-2002 05:50 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration