Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > sci.electronics.design > #541318

Re: Video data compression for serial link

From DecadentLinuxUserNumeroUno@decadence.org
Newsgroups sci.electronics.design
Subject Re: Video data compression for serial link
Date 2019-04-30 22:04 +0000
Organization Aioe.org NNTP Server
Message-ID <qaagpi$nr9$2@gioia.aioe.org> (permalink)
References <XVmxE.157951$bA.69332@fx26.iad> <c68b44e2-829b-4710-8027-5b8293847386@googlegroups.com> <B8GxE.398358$oy5.350898@fx06.iad> <qa943s$67m$1@gioia.aioe.org> <chvgceptjabvns9b4h6049ogl10ui76mjt@4ax.com>

Show all headers | View raw


upsidedown@downunder.com wrote in
news:chvgceptjabvns9b4h6049ogl10ui76mjt@4ax.com: 

> On Tue, 30 Apr 2019 10:22:03 +0100, Martin Brown
> <'''newspam'''@nezumi.demon.co.uk> wrote:
> 
>>On 29/04/2019 18:04, bitrex wrote:
>>> On 4/29/19 7:10 AM, gnuarm.deletethisbit@gmail.com wrote:
>>>> On Sunday, April 28, 2019 at 3:11:55 PM UTC-4, bitrex wrote:
>>>>> I have a client who needs to send 10 bit greyscale video data
>>>>> over a serial link from a PC to an ARM Cortex uP. Right now
>>>>> just using a KISS implementation,
>>>>> constant-overhead-byte-stuffing protocol, two bytes per value,
>>>>> with a simple CRC-type checksum appended to each scanline the 
>>>>> link needs to be around 384kbps to support the amount of
>>>>> data required to transmit.
>>>>>
>>>>> the hardware is on-paper capable of that but in practice the
>>>>> lash up is unstable, there's a bottleneck somewhere, most
>>>>> likely on the PC side as it's not a "real" hardware serial
>>>>> port but virtualized via USB and it has to go thru all the
>>>>> multiple layers of abstraction from the application until it
>>>>> finally gets spit out; the application code isn't even
>>>>> complied it's from a scripting language. 
>>
>>Windoze is nothing like an RTOS and has always been dodgy at fast
>>serial data since forever. My money is on a FIFO buffer overflow
>>whilst the PC 
> 
> While Windows is not a hard RTOS, this affects mainly half duplex
> causing large latencies, if some protocol is done in user mode.
> Assuming a half duplex slave protocol, the kernel mode driver
> receives the request and tries to wake up the user mode protocol
> processing. The user mode activates after some undefined amount of
> time, generates a response, which is sent by the kernel mode
> driver back to the serial line. The foreign master sees this as a
> greatly varying response time and if the master timeout is set too
> tightly, may eve timeout, before the response from Windows
> arrives. 
> 
> Last century, some bad PC hardware caused a lot of lost interrupts
> on serial lines by disabling interrupts. Some floppy and CD
> controllers, some Ethernet adapters and some display adapters were
> particularity bad.  By avoiding these bad apples, the Windows
> serial handler can capture all received bytes, before any UART
> hardware with reasonable sized hardware FIFO overflows.
> 
> I haven't seen such problems with modern hardware.
> 
> The next problematic point is the kernel mode to user mode
> transition. By using SetupComm() quite large kernel mode buffers
> can be allocated, into which the kernel driver inserts more bytes,
> until the user mode code wakes up and handles the received bytes.
> If the user mode protocol code doesn't call SetupComm(), at least
> previously, the default kernel mode Rx buffer was quite small,
> increasing the risk of overflowing the kernel mode buffer.
> 
> 

RTMP  Real Time Messaging Protocol.  It buffers things and reduces 
dropped frames.  Made for streaming.

Back to sci.electronics.design | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Video data compression for serial link bitrex <user@example.net> - 2019-04-28 15:11 -0400
  Re: Video data compression for serial link whit3rd <whit3rd@gmail.com> - 2019-04-28 13:12 -0700
  Re: Video data compression for serial link Hul Tytus <ht@panix.com> - 2019-04-28 20:25 +0000
    Re: Video data compression for serial link bitrex <user@example.net> - 2019-04-28 16:31 -0400
      Re: Video data compression for serial link Tauno Voipio <tauno.voipio@notused.fi.invalid> - 2019-04-29 14:16 +0300
  Re: Video data compression for serial link gnuarm.deletethisbit@gmail.com - 2019-04-29 04:10 -0700
    Re: Video data compression for serial link bitrex <user@example.net> - 2019-04-29 13:04 -0400
      Re: Video data compression for serial link Joe Chisolm <jchisolm6@earthlink.net> - 2019-04-29 13:20 -0500
      Re: Video data compression for serial link dplatt@coop.radagast.org (Dave Platt) - 2019-04-29 11:21 -0700
        Re: Video data compression for serial link DecadentLinuxUserNumeroUno@decadence.org - 2019-04-29 18:56 +0000
          Re: Video data compression for serial link DecadentLinuxUserNumeroUno@decadence.org - 2019-04-29 19:13 +0000
          Re: Video data compression for serial link Tauno Voipio <tauno.voipio@notused.fi.invalid> - 2019-04-29 22:41 +0300
            Re: Video data compression for serial link DecadentLinuxUserNumeroUno@decadence.org - 2019-04-30 00:53 +0000
              Re: Video data compression for serial link Tauno Voipio <tauno.voipio@notused.fi.invalid> - 2019-04-30 10:24 +0300
                Re: Video data compression for serial link DecadentLinuxUserNumeroUno@decadence.org - 2019-04-30 09:59 +0000
                Re: Video data compression for serial link Rick C <gnuarm.deletethisbit@gmail.com> - 2019-05-08 17:59 -0700
                Re: Video data compression for serial link dplatt@coop.radagast.org (Dave Platt) - 2019-05-09 10:42 -0700
                Re: Video data compression for serial link upsidedown@downunder.com - 2019-05-09 06:56 +0300
          Re: Video data compression for serial link dplatt@coop.radagast.org (Dave Platt) - 2019-04-29 12:58 -0700
            Re: Video data compression for serial link bitrex <user@example.net> - 2019-04-29 16:33 -0400
              Re: Video data compression for serial link dplatt@coop.radagast.org (Dave Platt) - 2019-04-30 18:02 -0700
                Re: Video data compression for serial link bitrex <user@example.net> - 2019-04-30 21:13 -0400
                Re: Video data compression for serial link Lasse Langwadt Christensen <langwadt@fonz.dk> - 2019-04-30 18:32 -0700
            Re: Video data compression for serial link DecadentLinuxUserNumeroUno@decadence.org - 2019-04-30 00:59 +0000
              Re: Video data compression for serial link Lasse Langwadt Christensen <langwadt@fonz.dk> - 2019-04-29 18:27 -0700
      Re: Video data compression for serial link Martin Brown <'''newspam'''@nezumi.demon.co.uk> - 2019-04-30 10:22 +0100
        Re: Video data compression for serial link bitrex <user@example.net> - 2019-04-30 12:20 -0400
        Re: Video data compression for serial link upsidedown@downunder.com - 2019-04-30 20:19 +0300
          Re: Video data compression for serial link DecadentLinuxUserNumeroUno@decadence.org - 2019-04-30 22:04 +0000
            Re: Video data compression for serial link whit3rd <whit3rd@gmail.com> - 2019-04-30 16:30 -0700
              Re: Video data compression for serial link Martin Brown <'''newspam'''@nezumi.demon.co.uk> - 2019-05-01 08:49 +0100
                Re: Video data compression for serial link bitrex <user@example.net> - 2019-05-01 10:28 -0400
  Re: Video data compression for serial link upsidedown@downunder.com - 2019-04-30 13:50 +0300
  Re: Video data compression for serial link david eather <eatDELETEher@tpg.com.au> - 2019-05-01 13:45 +1000
    Re: Video data compression for serial link bitrex <user@example.net> - 2019-05-08 16:57 -0400
      Re: Video data compression for serial link Martin Brown <'''newspam'''@nezumi.demon.co.uk> - 2019-05-08 22:22 +0100
        Re: Video data compression for serial link bitrex <user@example.net> - 2019-05-08 22:09 -0400
          Re: Video data compression for serial link bitrex <user@example.net> - 2019-05-08 22:11 -0400
          Re: Video data compression for serial link Martin Brown <'''newspam'''@nezumi.demon.co.uk> - 2019-05-09 08:44 +0100
            Re: Video data compression for serial link bitrex <user@example.net> - 2019-05-09 10:41 -0400
            Re: Video data compression for serial link bitrex <user@example.net> - 2019-05-09 10:52 -0400
        Re: Video data compression for serial link david eather <eatDELETEher@tpg.com.au> - 2019-05-10 14:30 +1000
          Re: Video data compression for serial link jrwalliker@gmail.com - 2019-05-10 04:30 -0700
            Re: Video data compression for serial link Martin Brown <'''newspam'''@nezumi.demon.co.uk> - 2019-05-14 11:17 +0100
              Re: Video data compression for serial link upsidedown@downunder.com - 2019-05-14 14:51 +0300
                Re: Video data compression for serial link Martin Brown <'''newspam'''@nezumi.demon.co.uk> - 2019-05-14 13:45 +0100

csiph-web