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


Groups > sci.electronics.design > #511280 > unrolled thread

FTDI chips VCP or VX drivers

Started by"mook Jonhon" <mook@mook.net>
First post2018-07-17 23:53 +0000
Last post2018-07-18 15:22 -0700
Articles 20 on this page of 78 — 21 participants

Back to article view | Back to sci.electronics.design


Contents

  FTDI chips   VCP or VX drivers "mook Jonhon" <mook@mook.net> - 2018-07-17 23:53 +0000
    Re: FTDI chips VCP or VX drivers Clive Arthur <cliveta@nowaytoday.co.uk> - 2018-07-18 10:21 +0100
      Re: FTDI chips VCP or VX drivers jack4747@gmail.com - 2018-07-18 02:42 -0700
        Re: FTDI chips VCP or VX drivers Clive Arthur <cliveta@nowaytoday.co.uk> - 2018-07-18 11:01 +0100
      Re: FTDI chips VCP or VX drivers Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2018-07-18 09:14 -0400
        Re: FTDI chips VCP or VX drivers Rob <nomail@example.com> - 2018-07-18 18:12 +0000
          Re: FTDI chips VCP or VX drivers Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2018-07-18 17:58 -0400
            Re: FTDI chips VCP or VX drivers Clive Arthur <cliveta@nowaytoday.co.uk> - 2018-07-19 00:07 +0100
              Re: FTDI chips VCP or VX drivers Rob <nomail@example.com> - 2018-07-19 08:23 +0000
              Re: FTDI chips VCP or VX drivers Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2018-07-19 08:05 -0400
                Re: FTDI chips VCP or VX drivers Rob <nomail@example.com> - 2018-07-19 12:21 +0000
                  Re: FTDI chips VCP or VX drivers Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2018-07-19 08:35 -0400
                    Re: FTDI chips VCP or VX drivers <698839253X6D445TD@nospam.org> - 2018-07-19 14:00 +0000
                      Re: FTDI chips VCP or VX drivers gnuarm.deletethisbit@gmail.com - 2018-07-19 08:05 -0700
                        Re: FTDI chips VCP or VX drivers <698839253X6D445TD@nospam.org> - 2018-07-19 15:38 +0000
                          Re: FTDI chips VCP or VX drivers gnuarm.deletethisbit@gmail.com - 2018-07-19 12:56 -0700
                      Re: FTDI chips VCP or VX drivers Johnny B Good <johnny-b-good@invalid.ntlworld.com> - 2018-07-19 18:22 +0000
                      Re: FTDI chips VCP or VX drivers Lasse Langwadt Christensen <langwadt@fonz.dk> - 2018-07-19 11:37 -0700
                        Re: FTDI chips VCP or VX drivers <698839253X6D445TD@nospam.org> - 2018-07-19 19:20 +0000
                          Re: FTDI chips VCP or VX drivers Lasse Langwadt Christensen <langwadt@fonz.dk> - 2018-07-19 12:39 -0700
                            Re: FTDI chips VCP or VX drivers <698839253X6D445TD@nospam.org> - 2018-07-20 03:45 +0000
                              Re: FTDI chips VCP or VX drivers Neon John <no@never.com> - 2018-07-21 17:20 -0400
                                Re: FTDI chips VCP or VX drivers <698839253X6D445TD@nospam.org> - 2018-07-22 03:05 +0000
                                  Re: FTDI chips VCP or VX drivers Neon John <no@never.com> - 2018-07-22 15:28 -0400
                                    Re: FTDI chips VCP or VX drivers <698839253X6D445TD@nospam.org> - 2018-07-22 19:44 +0000
                                      Re: FTDI chips VCP or VX drivers Neon John <no@never.com> - 2018-07-22 20:43 -0400
                        Re: FTDI chips VCP or VX drivers Gerhard Hoffmann <ghf@hoffmann-hochfrequenz.de> - 2018-07-19 21:54 +0200
                      Re: FTDI chips VCP or VX drivers Jasen Betts <jasen@xnet.co.nz> - 2018-07-20 06:11 +0000
                        Re: FTDI chips VCP or VX drivers <698839253X6D445TD@nospam.org> - 2018-07-20 06:53 +0000
                          Re: FTDI chips VCP or VX drivers Jasen Betts <jasen@xnet.co.nz> - 2018-07-20 11:05 +0000
                            Re: FTDI chips VCP or VX drivers <698839253X6D445TD@nospam.org> - 2018-07-20 12:21 +0000
                        Re: FTDI chips VCP or VX drivers <698839253X6D445TD@nospam.org> - 2018-07-20 07:31 +0000
                    Re: FTDI chips VCP or VX drivers John Larkin <jjlarkin@highlandtechnology.com> - 2018-07-19 07:48 -0700
                      Re: FTDI chips VCP or VX drivers Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2018-07-19 12:05 -0400
                        Re: FTDI chips VCP or VX drivers Rob <nomail@example.com> - 2018-07-19 16:40 +0000
                          Re: FTDI chips VCP or VX drivers Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2018-07-20 19:03 -0400
                            Re: FTDI chips VCP or VX drivers Rob <nomail@example.com> - 2018-07-21 10:13 +0000
                              Re: FTDI chips VCP or VX drivers Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2018-07-21 14:08 -0400
                            Re: FTDI chips VCP or VX drivers Neon John <no@never.com> - 2018-07-21 17:33 -0400
                    Re: FTDI chips VCP or VX drivers Neon John <no@never.com> - 2018-07-19 11:15 -0400
                Re: FTDI chips VCP or VX drivers Clive Arthur <cliveta@nowaytoday.co.uk> - 2018-07-19 22:50 +0100
                  Re: FTDI chips VCP or VX drivers pcdhobbs@gmail.com - 2018-07-19 15:38 -0700
                  Re: FTDI chips VCP or VX drivers <698839253X6D445TD@nospam.org> - 2018-07-20 03:45 +0000
                    Re: FTDI chips VCP or VX drivers Clive Arthur <cliveta@nowaytoday.co.uk> - 2018-07-20 08:51 +0100
            Re: FTDI chips VCP or VX drivers John Larkin <jjlarkin@highland_snip_technology.com> - 2018-07-18 17:25 -0700
              Re: FTDI chips VCP or VX drivers Rob <nomail@example.com> - 2018-07-19 08:21 +0000
                Re: FTDI chips VCP or VX drivers "Tim Williams" <tiwill@seventransistorlabs.com> - 2018-07-19 08:06 -0500
                  Re: FTDI chips VCP or VX drivers Rob <nomail@example.com> - 2018-07-19 16:08 +0000
                  Re: FTDI chips VCP or VX drivers Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2018-07-19 12:12 -0400
                    Re: FTDI chips VCP or VX drivers Rob <nomail@example.com> - 2018-07-19 16:41 +0000
                      Re: FTDI chips VCP or VX drivers Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2018-07-20 19:05 -0400
                        Re: FTDI chips VCP or VX drivers "Tim Williams" <tiwill@seventransistorlabs.com> - 2018-07-20 18:29 -0500
                          Re: FTDI chips VCP or VX drivers Neon John <no@never.com> - 2018-07-21 17:02 -0400
                            Re: FTDI chips VCP or VX drivers Gerhard Hoffmann <ghf@hoffmann-hochfrequenz.de> - 2018-07-22 00:04 +0200
                              Re: FTDI chips VCP or VX drivers Neon John <no@never.com> - 2018-07-22 16:15 -0400
                                Re: FTDI chips VCP or VX drivers John Larkin <jjlarkin@highlandtechnology.com> - 2018-07-22 14:45 -0700
                                Re: FTDI chips VCP or VX drivers Gerhard Hoffmann <ghf@hoffmann-hochfrequenz.de> - 2018-07-24 23:59 +0200
                                  Re: FTDI chips VCP or VX drivers Rob <nomail@example.com> - 2018-07-25 07:27 +0000
                              Re: FTDI chips VCP or VX drivers DecadentLinuxUserNumeroUno@decadence.org - 2018-08-01 01:49 +0000
                        Re: FTDI chips VCP or VX drivers Rob <nomail@example.com> - 2018-07-21 10:16 +0000
                          Re: FTDI chips VCP or VX drivers Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2018-07-21 14:07 -0400
                            Re: FTDI chips VCP or VX drivers "Tim Williams" <tiwill@seventransistorlabs.com> - 2018-07-21 15:28 -0500
                            Re: FTDI chips VCP or VX drivers Rob <nomail@example.com> - 2018-07-22 18:15 +0000
                              Re: FTDI chips VCP or VX drivers pcdhobbs@gmail.com - 2018-07-22 11:25 -0700
                                Re: FTDI chips VCP or VX drivers Jeff Liebermann <jeffl@cruzio.com> - 2018-07-22 14:06 -0700
                                  Re: FTDI chips VCP or VX drivers pcdhobbs@gmail.com - 2018-07-22 15:41 -0700
                                    Re: FTDI chips VCP or VX drivers Jeff Liebermann <jeffl@cruzio.com> - 2018-07-22 20:22 -0700
                        Re: FTDI chips VCP or VX drivers Terry Newton <nbill@bellsouth.net> - 2018-07-31 18:36 +0000
                          Re: FTDI chips VCP or VX drivers Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2018-07-31 15:43 -0400
                          Re: FTDI chips VCP or VX drivers Rob <nomail@example.com> - 2018-07-31 21:07 +0000
                            Re: FTDI chips VCP or VX drivers dplatt@coop.radagast.org (Dave Platt) - 2018-07-31 14:20 -0700
                Re: FTDI chips VCP or VX drivers John Larkin <jjlarkin@highlandtechnology.com> - 2018-07-19 06:36 -0700
              Re: FTDI chips VCP or VX drivers Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> - 2018-07-19 08:07 -0400
                Re: FTDI chips VCP or VX drivers John Larkin <jjlarkin@highlandtechnology.com> - 2018-07-19 06:42 -0700
        Re: FTDI chips VCP or VX drivers Clive Arthur <cliveta@nowaytoday.co.uk> - 2018-07-18 22:36 +0100
          Re: FTDI chips VCP or VX drivers Rob <nomail@example.com> - 2018-07-19 08:30 +0000
            Re: FTDI chips VCP or VX drivers Clive Arthur <cliveta@nowaytoday.co.uk> - 2018-07-19 10:17 +0100
        Re: FTDI chips VCP or VX drivers "John Miles, KE5FX" <jmiles@gmail.com> - 2018-07-18 15:22 -0700

Page 3 of 4 — ← Prev page 1 2 [3] 4  Next page →


#511478 — Re: FTDI chips VCP or VX drivers

FromClive Arthur <cliveta@nowaytoday.co.uk>
Date2018-07-19 22:50 +0100
SubjectRe: FTDI chips VCP or VX drivers
Message-ID<pir12u$1qa$1@dont-email.me>
In reply to#511395
On 19/07/2018 13:05, Phil Hobbs wrote:
> On 07/18/18 19:07, Clive Arthur wrote:
>> On 18/07/2018 22:58, Phil Hobbs wrote:
>> <snipped>
>>>
>>> One approach to the COM port problem is to have the gizmo spit its ID 
>>> string out the UART periodically when it's idle.  Enumerate the 
>>> ports, look for the one with a valid ID string, and you're done.
>>>
>>> Using putty or another terminal emulator would do this the manual way.
>>>
>>> Cheers
>>>
>>> Phil Hobbs
>>>
>>
>> Customers want to plug in their very expensive box-of-tricks like it 
>> was a mouse.  Com ports are great for development, and ideal for cowboys.
>>
>> Cheers
> 
> Well, if your customers are all on Windows, God bless.  We're an 
> all-Linux shop here, and our customers are mostly technical folks.
> 
> Cheers
> 
> Phil Hobbs
> 

Maybe I should tell my customers not to use Windows.  Be a man.  Take a 
stand.  "Sorry, sir, we're an all-Linux shop here and non-technical 
folks are most certainly not welcome!".

Those bastard customers with their perfectly functioning software, who 
the hell do they think they are?  Complacent fuckers.

Riiight.

Cheers
-- 
Clive

[toc] | [prev] | [next] | [standalone]


#511481 — Re: FTDI chips VCP or VX drivers

Frompcdhobbs@gmail.com
Date2018-07-19 15:38 -0700
SubjectRe: FTDI chips VCP or VX drivers
Message-ID<c1825f72-9d9d-4f89-907f-612d44636ac8@googlegroups.com>
In reply to#511478
>Maybe I should tell my customers not to use Windows.  Be a man.  Take a 
>stand.  "Sorry, sir, we're an all-Linux shop here and non-technical 
>folks are most certainly not welcome!". 

>Those bastard customers with their perfectly functioning software, who 
>the hell do they think they are?  Complacent fuckers. 

There, there, old man. Here, put your feet up and I'll bring you a nice cuppa. Feeling better now?

We're in different businesses, is all. 

Cheers

Phil Hobbs

[toc] | [prev] | [next] | [standalone]


#511505 — Re: FTDI chips VCP or VX drivers

From<698839253X6D445TD@nospam.org>
Date2018-07-20 03:45 +0000
SubjectRe: FTDI chips VCP or VX drivers
Message-ID<pirlvi$17iq$3@gioia.aioe.org>
In reply to#511478
Clive Arthur wrote:
>Maybe I should tell my customers not to use Windows.  Be a man.  Take a 
>stand.  "Sorry, sir, we're an all-Linux shop here and non-technical 
>folks are most certainly not welcome!".
>
>Those bastard customers with their perfectly functioning software, who 
>the hell do they think they are?  Complacent fuckers.
>
>Riiight.
>
>Cheers

No, it is not the fault of your customers, it is bad education.

I *have* proposed to make the use of that Redmond OS illegal in Europe,
as it is clearly a security risk here (sanctions tariffs you know).
Just after I wrote that, Macron (the French trump hugging boss) announced he will use it in his army.
You never can win.
;-)

[toc] | [prev] | [next] | [standalone]


#511531 — Re: FTDI chips VCP or VX drivers

FromClive Arthur <cliveta@nowaytoday.co.uk>
Date2018-07-20 08:51 +0100
SubjectRe: FTDI chips VCP or VX drivers
Message-ID<pis49v$6j7$1@dont-email.me>
In reply to#511505
On 20/07/2018 04:45, 698839253X6D445TD@nospam.org wrote:
> Clive Arthur wrote:
>> Maybe I should tell my customers not to use Windows.  Be a man.  Take a
>> stand.  "Sorry, sir, we're an all-Linux shop here and non-technical
>> folks are most certainly not welcome!".
>>
>> Those bastard customers with their perfectly functioning software, who
>> the hell do they think they are?  Complacent fuckers.
>>
>> Riiight.
>>
>> Cheers
> 
> No, it is not the fault of your customers, it is bad education.
> 
> I *have* proposed to make the use of that Redmond OS illegal in Europe,
> as it is clearly a security risk here (sanctions tariffs you know).
> Just after I wrote that, Macron (the French trump hugging boss) announced he will use it in his army.
> You never can win.
> ;-)
> 
Problem is that the industry standard software they all use is Windows 
only, it's large, it works, and no-one is going to start fixing 
something which ain't broke.  Our software must run on the same machines.

Cheers
-- 
Clive

[toc] | [prev] | [next] | [standalone]


#511360 — Re: FTDI chips VCP or VX drivers

FromJohn Larkin <jjlarkin@highland_snip_technology.com>
Date2018-07-18 17:25 -0700
SubjectRe: FTDI chips VCP or VX drivers
Message-ID<n6mvkdpt5265649smpcktkj47vflgen1ps@4ax.com>
In reply to#511352
On Wed, 18 Jul 2018 17:58:49 -0400, Phil Hobbs
<pcdhSpamMeSenseless@electrooptical.net> wrote:

>On 07/18/18 14:12, Rob wrote:
>> Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> wrote:
>>> On 07/18/18 05:21, Clive Arthur wrote:
>>>> On 18/07/2018 00:53, mook Jonhon wrote:
>>>>> Looking into a test box that will need a USB input.
>>>>>
>>>>> I have always taken the easy route and used a Virtual Com Port chip
>>>>> form FTDI and run it to a SCI port on a microcontroller.
>>>>>
>>>>> It appears I can use the chip as a native USB device instead of a
>>>>> virtual Com Port and I was curious as to the advantages to this
>>>>> approach.
>>>>>
>>>>>
>>>>> Have any of you used a FTDI as a native USB device in Windows 7 or 10
>>>>> where the native windows driver found and installed the device once
>>>>> plugged in.  (no VDP driver install necessary)
>>>>>
>>>>> When programming the windows application (Labview, C++ etc) how do I
>>>>> find and access the FTDI chip.   Does USB justmake it look like it is
>>>>> on part ofthe machine and I can talk directly to it (transparent link)
>>>>> or is there some driver/handle that needs to be interfaced to.
>>>>>
>>>>> I'm new for all this stuff so basic information is all I need.
>>>>>
>>>>> Overall, besides not having to install the VCP drivers, is there any
>>>>> advantage to using the FTDI chip in native mode?
>>>>>
>>>>> thanks
>>>>>
>>>>
>>>> The big advantage is that you don't have to go chasing com ports, your
>>>> software can connect automatically.
>>>>
>>>> I've done this in VB using the D2XX drivers from FTDI.  I'm no PC
>>>> software expert, so it can't be too hard.  What one fool can do, so can
>>>> another.
>>>>
>>>> Basically, FTDI provide a load of VB functions (or C++ whatever) which
>>>> you call from your software.  These do things like open the device, set
>>>> baud rate etc.  The FTDI chip can be programmed with an ID string (using
>>>> FTprog from FTDI)) so that you only open something called 'Mook's
>>>> Widget' or whatever with no reference to a com port.
>>>>
>>>> Functions are provided for data read, write etc.
>>>>
>>>> It's more complicated than a VCP, but much more professional.
>>>>
>>>
>>> Provided your customers are amateurs.  ;)
>>>
>>> It's closed-source only, which is a problem--you have to rely on the
>>> manufacturer for bug fixes etc.
>> 
>> ... and you still need to install the driver!
>> I think the only advantages are:
>> 
>> - no intermixing with existing COM port numbers so you know where to look
>> - vendor lock-in because your device works only with your software and
>>    your software works only with your device
>> 
>> I once bought a "programming cable" which is merely a TTL Serial to USB
>> cable with a connector matching my equipment, and found it was not
>> recognized under Linux.  It would work only with the Windows sofware.
>> But soon enough I found that it was merely such a FTDI chip with
>> re-programmed ID, found the software to re-program it, set it to the
>> standard ID and then it was recognized by Linux and I could use open
>> software with it (via a TTY device).
>> 
>
>One approach to the COM port problem is to have the gizmo spit its ID 
>string out the UART periodically when it's idle.  Enumerate the ports, 
>look for the one with a valid ID string, and you're done.
>
>Using putty or another terminal emulator would do this the manual way.
>
>Cheers
>
>Phil Hobbs

We use the FTDI chips a lot. We just make the gadgets look like serial
ports. Every box responds to the "ID" command with its model number
and serial number. It's easy to scan all the serial ports and find our
boxes.

In a multi-box system, you need to identify the boxes by serial
number, no matter which port or hub they are plugged into. S/N 101 may
be controlling a water pump and 102 may be wired to a detonator.


-- 

John Larkin         Highland Technology, Inc
picosecond timing   precision measurement 

jlarkin att highlandtechnology dott com
http://www.highlandtechnology.com

[toc] | [prev] | [next] | [standalone]


#511382 — Re: FTDI chips VCP or VX drivers

FromRob <nomail@example.com>
Date2018-07-19 08:21 +0000
SubjectRe: FTDI chips VCP or VX drivers
Message-ID<slrnpl0ig2.ftu.nomail@xs9.xs4all.nl>
In reply to#511360
John Larkin <jjlarkin@highland_snip_technology.com> wrote:
> We use the FTDI chips a lot. We just make the gadgets look like serial
> ports. Every box responds to the "ID" command with its model number
> and serial number. It's easy to scan all the serial ports and find our
> boxes.

I *hate* that kind of software!  Once I had 10 COM ports in the system,
with all kinds of equipment and some even used as "bit banging" generic
I/O ports.  Several programs were running as daemon (service) with a
port open and configured.

Evey once in a while a "new" program would do such a stupid scan and
upset all the settings and the state of the running software.  E.g. when
starting the network config program that would helpfully locate modems
by setting all ports to 9600 baud one by one and sending AT<CR> to each
of them.  It did not even bother to set the port back to the setup it
had when first opening it...

[toc] | [prev] | [next] | [standalone]


#511405 — Re: FTDI chips VCP or VX drivers

From"Tim Williams" <tiwill@seventransistorlabs.com>
Date2018-07-19 08:06 -0500
SubjectRe: FTDI chips VCP or VX drivers
Message-ID<piq2dj$lfe$1@dont-email.me>
In reply to#511382
"Rob" <nomail@example.com> wrote in message 
news:slrnpl0ig2.ftu.nomail@xs9.xs4all.nl...
> John Larkin <jjlarkin@highland_snip_technology.com> wrote:
>> We use the FTDI chips a lot. We just make the gadgets look like serial
>> ports. Every box responds to the "ID" command with its model number
>> and serial number. It's easy to scan all the serial ports and find our
>> boxes.
>
> I *hate* that kind of software!  Once I had 10 COM ports in the system,
> with all kinds of equipment and some even used as "bit banging" generic
> I/O ports.  Several programs were running as daemon (service) with a
> port open and configured.
>
> Evey once in a while a "new" program would do such a stupid scan and
> upset all the settings and the state of the running software.  E.g. when
> starting the network config program that would helpfully locate modems
> by setting all ports to 9600 baud one by one and sending AT<CR> to each
> of them.  It did not even bother to set the port back to the setup it
> had when first opening it...

How does a program open an already-open port?

Tim

-- 
Seven Transistor Labs, LLC
Electrical Engineering Consultation and Design
Website: https://www.seventransistorlabs.com/ 

[toc] | [prev] | [next] | [standalone]


#511439 — Re: FTDI chips VCP or VX drivers

FromRob <nomail@example.com>
Date2018-07-19 16:08 +0000
SubjectRe: FTDI chips VCP or VX drivers
Message-ID<slrnpl1drp.emn.nomail@xs9.xs4all.nl>
In reply to#511405
Tim Williams <tiwill@seventransistorlabs.com> wrote:
> "Rob" <nomail@example.com> wrote in message 
> news:slrnpl0ig2.ftu.nomail@xs9.xs4all.nl...
>> John Larkin <jjlarkin@highland_snip_technology.com> wrote:
>>> We use the FTDI chips a lot. We just make the gadgets look like serial
>>> ports. Every box responds to the "ID" command with its model number
>>> and serial number. It's easy to scan all the serial ports and find our
>>> boxes.
>>
>> I *hate* that kind of software!  Once I had 10 COM ports in the system,
>> with all kinds of equipment and some even used as "bit banging" generic
>> I/O ports.  Several programs were running as daemon (service) with a
>> port open and configured.
>>
>> Evey once in a while a "new" program would do such a stupid scan and
>> upset all the settings and the state of the running software.  E.g. when
>> starting the network config program that would helpfully locate modems
>> by setting all ports to 9600 baud one by one and sending AT<CR> to each
>> of them.  It did not even bother to set the port back to the setup it
>> had when first opening it...
>
> How does a program open an already-open port?

In Linux that is not so difficult.  Don't know about Windows.
However, even opening a not-open port can disturb things.
As I wrote I used some ports for "bit banging" and e.g. a relay was
controlled by the RTS pin of a port.  Opening the port would change
the state of the relay.

[toc] | [prev] | [next] | [standalone]


#511440 — Re: FTDI chips VCP or VX drivers

FromPhil Hobbs <pcdhSpamMeSenseless@electrooptical.net>
Date2018-07-19 12:12 -0400
SubjectRe: FTDI chips VCP or VX drivers
Message-ID<piqd95$rhm$1@dont-email.me>
In reply to#511405
On 07/19/18 09:06, Tim Williams wrote:
> "Rob" <nomail@example.com> wrote in message 
> news:slrnpl0ig2.ftu.nomail@xs9.xs4all.nl...
>> John Larkin <jjlarkin@highland_snip_technology.com> wrote:
>>> We use the FTDI chips a lot. We just make the gadgets look like serial
>>> ports. Every box responds to the "ID" command with its model number
>>> and serial number. It's easy to scan all the serial ports and find our
>>> boxes.
>>
>> I *hate* that kind of software!  Once I had 10 COM ports in the system,
>> with all kinds of equipment and some even used as "bit banging" generic
>> I/O ports.  Several programs were running as daemon (service) with a
>> port open and configured.
>>
>> Evey once in a while a "new" program would do such a stupid scan and
>> upset all the settings and the state of the running software.  E.g. when
>> starting the network config program that would helpfully locate modems
>> by setting all ports to 9600 baud one by one and sending AT<CR> to each
>> of them.  It did not even bother to set the port back to the setup it
>> had when first opening it...
> 
> How does a program open an already-open port?
> 
> Tim
> 

Linux lets you open a file N times within a single process, which is 
irritating--you can't use file handles alone to enforce thread safety 
the way you can in Windows or OS/2.

Cheers

Phil Hobbs

-- 
Dr Philip C D Hobbs
Principal Consultant
ElectroOptical Innovations LLC / Hobbs ElectroOptics
Optics, Electro-optics, Photonics, Analog Electronics
Briarcliff Manor NY 10510

http://electrooptical.net
http://hobbs-eo.com

[toc] | [prev] | [next] | [standalone]


#511444 — Re: FTDI chips VCP or VX drivers

FromRob <nomail@example.com>
Date2018-07-19 16:41 +0000
SubjectRe: FTDI chips VCP or VX drivers
Message-ID<slrnpl1fpc.5bf.nomail@xs9.xs4all.nl>
In reply to#511440
Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> wrote:
> Linux lets you open a file N times within a single process, which is 
> irritating--you can't use file handles alone to enforce thread safety 
> the way you can in Windows or OS/2.

Of course there are plenty explicit locking mechanisms available...

[toc] | [prev] | [next] | [standalone]


#511635 — Re: FTDI chips VCP or VX drivers

FromPhil Hobbs <pcdhSpamMeSenseless@electrooptical.net>
Date2018-07-20 19:05 -0400
SubjectRe: FTDI chips VCP or VX drivers
Message-ID<4fOdnZkxabQ298_GnZ2dnUU7-K2dnZ2d@supernews.com>
In reply to#511444
On 07/19/18 12:41, Rob wrote:
> Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> wrote:
>> Linux lets you open a file N times within a single process, which is
>> irritating--you can't use file handles alone to enforce thread safety
>> the way you can in Windows or OS/2.
> 
> Of course there are plenty explicit locking mechanisms available...
> 

Yeah, there are workarounds, but it's still a serious wart, almost in 
the same class as the Linux thread scheduler (but don't get me started).

I can't think of a single reason why one would want to be able to do 
that--AFAIK doing it is _always_ a bug.

Can you?

Cheers

Phil Hobbs

-- 
Dr Philip C D Hobbs
Principal Consultant
ElectroOptical Innovations LLC / Hobbs ElectroOptics
Optics, Electro-optics, Photonics, Analog Electronics
Briarcliff Manor NY 10510

http://electrooptical.net
http://hobbs-eo.com

[toc] | [prev] | [next] | [standalone]


#511639 — Re: FTDI chips VCP or VX drivers

From"Tim Williams" <tiwill@seventransistorlabs.com>
Date2018-07-20 18:29 -0500
SubjectRe: FTDI chips VCP or VX drivers
Message-ID<pitr8l$p8u$1@dont-email.me>
In reply to#511635
"Phil Hobbs" <pcdhSpamMeSenseless@electrooptical.net> wrote in message 
news:4fOdnZkxabQ298_GnZ2dnUU7-K2dnZ2d@supernews.com...
> I can't think of a single reason why one would want to be able to do 
> that--AFAIK doing it is _always_ a bug.

I'm sure that, if "fixed", it breaks something obscure and archaic.

Linux fanbois are great at forgetting their own history.  While Microsoft's 
operating systems are built on a terrible raft of awkward solutions and 
backwards compatibility... Linux is built on a terrible raft of volunteered 
solutions and backwards compability.

That any of it at all works is remarkable; that every operating system is a 
mire of arbitrary decisions, compromises and inconsistent coding, is only 
natural.

Tim

-- 
Seven Transistor Labs, LLC
Electrical Engineering Consultation and Design
Website: https://www.seventransistorlabs.com/ 

[toc] | [prev] | [next] | [standalone]


#511697 — Re: FTDI chips VCP or VX drivers

FromNeon John <no@never.com>
Date2018-07-21 17:02 -0400
SubjectRe: FTDI chips VCP or VX drivers
Message-ID<3mi6ldp2bjp3k62dlgtg149st7u06sf5qf@4ax.com>
In reply to#511639
On Fri, 20 Jul 2018 18:29:17 -0500, "Tim Williams"
<tiwill@seventransistorlabs.com> wrote:

>I'm sure that, if "fixed", it breaks something obscure and archaic.
>
>Linux fanbois are great at forgetting their own history.  While Microsoft's 
>operating systems are built on a terrible raft of awkward solutions and 
>backwards compatibility... Linux is built on a terrible raft of volunteered 
>solutions and backwards compability.

Umm. I think that you've forgotten or didn't know the actual history.
MS-DOS was stolen by Gates from Seattle Computer Works and was very
CP/M-86-like with a few features from Unix.  Windows was glommed onto
the MS-DOS using Xerox PARC technology and some features of X.

Linux was written to be an almost-clone of AT&T Unix System V which in
turn was designed by some of the very best software engineers of the
time.  Unix in turn, was written as a personal OS that implemented the
best of Multics.

The GUI is GNOME (or occasionally some other desktop) on top of X.  My
team developed a proprietary application for a client in the early 90s
that used pure X plus a mix of open source and created widgets.  All
my programmers, coming from an MS-dos and Win2 backgrounds really
loved programming a real OS that didn't crash every few hours.

I use Linux simply because it works and doesn't crash and everything
my company needed to do could be done on Linux.

Linux is works well on old, slow hardware, with a kernel size a tiny
fraction of microsoft's monstrosity.

All my machines run without reboot between update-required reboots.
One machine which is dedicated to one task and is not updated has been
running for nearly 4 years.

IF you'd actually worked with Linux kernel code, you'd say quite the
opposite.  The code is well organized inside a framework.  A couple of
years ago I had a project that required very low jitter SPI commands.
I started working on the device driver but realized quickly that I was
in over my head so I hired an expert.  We quickly settled on a
strategy of allowing the device driver shut down the kernel until the
SPI task was completed.

It ran on a Beagle Board Black slaved to a master.  It had no other
real-time tasks so the brief system halts posed no problem.  The
development went smoothly and was finished in about 3 weeks.  As of
now, no bugs have been found.

The cherry on top is, of course, that it's all open source and is
free.  Not without cost, of course.  Any company of any size must have
maintainers.  Even so, it is vastly cheaper to maintain Linux than it
is the microsloth crap.

John

John DeArmond
http://www.neon-john.com
http://www.tnduction.com 
Tellico Plains, Occupied TN
See website for email address

[toc] | [prev] | [next] | [standalone]


#511700 — Re: FTDI chips VCP or VX drivers

FromGerhard Hoffmann <ghf@hoffmann-hochfrequenz.de>
Date2018-07-22 00:04 +0200
SubjectRe: FTDI chips VCP or VX drivers
Message-ID<frhov6F16q0U1@mid.individual.net>
In reply to#511697
Am 21.07.2018 um 23:02 schrieb Neon John:
> On Fri, 20 Jul 2018 18:29:17 -0500, "Tim Williams"
> <tiwill@seventransistorlabs.com> wrote:
> 
>> I'm sure that, if "fixed", it breaks something obscure and archaic.
>>
>> Linux fanbois are great at forgetting their own history.  While Microsoft's
>> operating systems are built on a terrible raft of awkward solutions and
>> backwards compatibility... Linux is built on a terrible raft of volunteered
>> solutions and backwards compability.
> 
> Umm. I think that you've forgotten or didn't know the actual history.
> MS-DOS was stolen by Gates from Seattle Computer Works and was very

more like cheaply bought. But then, there was not too much flesh on it.

> CP/M-86-like with a few features from Unix.  Windows was glommed onto
> the MS-DOS using Xerox PARC technology and some features of X.

That Xerox Parc thing was Apple's "inspiration".

> Linux was written to be an almost-clone of AT&T Unix System V which in
> turn was designed by some of the very best software engineers of the
> time.  Unix in turn, was written as a personal OS that implemented the
> best of Multics.

Unix was the exact anti-position to Multics. The name says it all.

And System V was crap against BSD. Unix V6 on the PDP11 was wonderful.
We had the first installation on this side of the pond.
But later, BSD definitely took the lead with innovations.

> IF you'd actually worked with Linux kernel code, you'd say quite the
> opposite.  The code is well organized inside a framework.  A couple of
> years ago I had a project that required very low jitter SPI commands.
> I started working on the device driver but realized quickly that I was
> in over my head so I hired an expert.  We quickly settled on a
> strategy of allowing the device driver shut down the kernel until the
> SPI task was completed.
> 
> It ran on a Beagle Board Black slaved to a master.  It had no other
> real-time tasks so the brief system halts posed no problem.  The
> development went smoothly and was finished in about 3 weeks.  As of
> now, no bugs have been found.

That's more like running Linux under the control of the device driver.
Instead, that's what the PRUs are made for.

~100 MHz SPI on BBB is currently a topic here (with LTC2500-32).
The transition to Debian and boot time device-trees makes all existing
documentation pretty much obsolete.

Cheers, Gerhard

[toc] | [prev] | [next] | [standalone]


#511762 — Re: FTDI chips VCP or VX drivers

FromNeon John <no@never.com>
Date2018-07-22 16:15 -0400
SubjectRe: FTDI chips VCP or VX drivers
Message-ID<30o9ldpnodatvj37rhsk1igvhh2r8krn76@4ax.com>
In reply to#511700
On Sun, 22 Jul 2018 00:04:22 +0200, Gerhard Hoffmann
<ghf@hoffmann-hochfrequenz.de> wrote:

>Am 21.07.2018 um 23:02 schrieb Neon John:

>> Umm. I think that you've forgotten or didn't know the actual history.
>> MS-DOS was stolen by Gates from Seattle Computer Works and was very
>more like cheaply bought. But then, there was not too much flesh on it.

What Gates did was buy a license for a limited number of copies.  50k
if my ancient memory serves.  Gates then said screw the license and
stole it from there.  I think Seattle Computer works filed a suit but
could not compete with Gates' money

>
>> CP/M-86-like with a few features from Unix.  Windows was glommed onto
>> the MS-DOS using Xerox PARC technology and some features of X.
>
>That Xerox Parc thing was Apple's "inspiration".

Parc inspired everyone who produced a GUI.  Apple was simply the
first, making a $10,000 "personal computer", the Lisa that nobody
bought.

>
>> Linux was written to be an almost-clone of AT&T Unix System V which in
>> turn was designed by some of the very best software engineers of the
>> time.  Unix in turn, was written as a personal OS that implemented the
>> best of Multics.
>
>Unix was the exact anti-position to Multics. The name says it all.

I didn't say they copied Multics.  I said what is true, that they took
the best features from Multics and built a personal OS to run on the
personal computer of the era, the PDP-11 - at least for those who
could afford it.
>
>And System V was crap against BSD. Unix V6 on the PDP11 was wonderful.
>We had the first installation on this side of the pond.
>But later, BSD definitely took the lead with innovations.

Rubbish.  During Sys V's reign, BSD was a crappy, unstable source
distribution far from ready for prime time.  The source distribution
was a nightmare.  No ./configure.  No customized make file.  The user
had to satisfy all the dependencies manually, a pain in the ass for
experienced programmers; an impossibility for the ordinary user.

On the other side, one could buy commercially stable Sys V in the form
of Interactive Unix.  It was expensive at $2k/copy but it was
stone-cold reliable, used binary distributions and was easy to roll
out.

I started my company to slide networked Unix systems underneath
applications being handled by IBM big iron.  We looked at BSD and
vomited.  Interactive was a godsend.  We added our own symmetrical
multitasking so that using 16 Mhz Compaqs, we could displace IBM
mainframes.

My company was very successful and I ended up selling it to my
programmers so I could escape Atlanta.

Today, it simply doesn't matter whether BSD or Linux is technically
better.  Linux has won.  Period.

>
>> IF you'd actually worked with Linux kernel code, you'd say quite the
>> opposite.  The code is well organized inside a framework.  A couple of
>> years ago I had a project that required very low jitter SPI commands.
>> I started working on the device driver but realized quickly that I was
>> in over my head so I hired an expert.  We quickly settled on a
>> strategy of allowing the device driver shut down the kernel until the
>> SPI task was completed.
>> 
>> It ran on a Beagle Board Black slaved to a master.  It had no other
>> real-time tasks so the brief system halts posed no problem.  The
>> development went smoothly and was finished in about 3 weeks.  As of
>> now, no bugs have been found.
>
>That's more like running Linux under the control of the device driver.
>Instead, that's what the PRUs are made for.

Yep.  Where's the problem?  We deemed that approach faster, simpler
and less expensive than implementing an RTOS on the board.

We looked at the PRUs but the documentation on them was so bad that
neither of us wanted to spend the time figuring them out.

John

John DeArmond
http://www.neon-john.com
http://www.tnduction.com 
Tellico Plains, Occupied TN
See website for email address

[toc] | [prev] | [next] | [standalone]


#511781 — Re: FTDI chips VCP or VX drivers

FromJohn Larkin <jjlarkin@highlandtechnology.com>
Date2018-07-22 14:45 -0700
SubjectRe: FTDI chips VCP or VX drivers
Message-ID<7hu9ld5h6g7uc1vc4vmefj5jfm2jfpr69k@4ax.com>
In reply to#511762
On Sun, 22 Jul 2018 16:15:31 -0400, Neon John <no@never.com> wrote:

>On Sun, 22 Jul 2018 00:04:22 +0200, Gerhard Hoffmann
><ghf@hoffmann-hochfrequenz.de> wrote:
>
>>Am 21.07.2018 um 23:02 schrieb Neon John:
>
>>> Umm. I think that you've forgotten or didn't know the actual history.
>>> MS-DOS was stolen by Gates from Seattle Computer Works and was very
>>more like cheaply bought. But then, there was not too much flesh on it.
>
>What Gates did was buy a license for a limited number of copies.  50k
>if my ancient memory serves.  Gates then said screw the license and
>stole it from there.  I think Seattle Computer works filed a suit but
>could not compete with Gates' money
>
>>
>>> CP/M-86-like with a few features from Unix.  Windows was glommed onto
>>> the MS-DOS using Xerox PARC technology and some features of X.
>>
>>That Xerox Parc thing was Apple's "inspiration".
>
>Parc inspired everyone who produced a GUI.  Apple was simply the
>first, making a $10,000 "personal computer", the Lisa that nobody
>bought.
>
>>
>>> Linux was written to be an almost-clone of AT&T Unix System V which in
>>> turn was designed by some of the very best software engineers of the
>>> time.  Unix in turn, was written as a personal OS that implemented the
>>> best of Multics.
>>
>>Unix was the exact anti-position to Multics. The name says it all.
>
>I didn't say they copied Multics.  I said what is true, that they took
>the best features from Multics and built a personal OS to run on the
>personal computer of the era, the PDP-11 - at least for those who
>could afford it.
>>
>>And System V was crap against BSD. Unix V6 on the PDP11 was wonderful.

RSTS on the PDP11 was great. It timeshared a dozen people and ran
solid between power failures. It had a tiny kernal, then multiple
runtime systems (really OS's) and then various user environments.


-- 

John Larkin         Highland Technology, Inc

lunatic fringe electronics 

[toc] | [prev] | [next] | [standalone]


#511973 — Re: FTDI chips VCP or VX drivers

FromGerhard Hoffmann <ghf@hoffmann-hochfrequenz.de>
Date2018-07-24 23:59 +0200
SubjectRe: FTDI chips VCP or VX drivers
Message-ID<frplqpFpgs7U1@mid.individual.net>
In reply to#511762
Am 22.07.2018 um 22:15 schrieb Neon John:
> On Sun, 22 Jul 2018 00:04:22 +0200, Gerhard Hoffmann
> <ghf@hoffmann-hochfrequenz.de> wrote:
> 
>> Am 21.07.2018 um 23:02 schrieb Neon John:
> 
>>> Umm. I think that you've forgotten or didn't know the actual history.
>>> MS-DOS was stolen by Gates from Seattle Computer Works and was very
>> more like cheaply bought. But then, there was not too much flesh on it.
> 
> What Gates did was buy a license for a limited number of copies.  50k
> if my ancient memory serves.  Gates then said screw the license and
> stole it from there.  I think Seattle Computer works filed a suit but
> could not compete with Gates' money

Gates didn't have so much money at that time. In fact, it was
Gates's mummie's money. And DOS2 was real rewrite. In the driver
development kit, there was no stone left unturned. I earned some
money porting drivers and the story was that they were moving
to the Xenix style, i.e. set_strategy() / interrupt(). The old
stuff was not supposed to work any longer.


>>> CP/M-86-like with a few features from Unix.  Windows was glommed onto
>>> the MS-DOS using Xerox PARC technology and some features of X.
>>
>> That Xerox Parc thing was Apple's "inspiration".
> 
> Parc inspired everyone who produced a GUI.  Apple was simply the
> first, making a $10,000 "personal computer", the Lisa that nobody
> bought.

Don't forget the Perq!


>>> Linux was written to be an almost-clone of AT&T Unix System V which in
>>> turn was designed by some of the very best software engineers of the
>>> time.  Unix in turn, was written as a personal OS that implemented the
>>> best of Multics.
>>
>> Unix was the exact anti-position to Multics. The name says it all.
> 
> I didn't say they copied Multics.  I said what is true, that they took
> the best features from Multics and built a personal OS to run on the
> personal computer of the era, the PDP-11 - at least for those who
> could afford it.
>>
>> And System V was crap against BSD. Unix V6 on the PDP11 was wonderful.
>> We had the first installation on this side of the pond.
>> But later, BSD definitely took the lead with innovations.
> 
> Rubbish.  During Sys V's reign, BSD was a crappy, unstable source
> distribution far from ready for prime time.  The source distribution
> was a nightmare.  No ./configure.  No customized make file.  The user
> had to satisfy all the dependencies manually, a pain in the ass for
> experienced programmers; an impossibility for the ordinary user.

If anything was rubbish at all, then it was sysV. We had them run
side by side, all of them, including 68K, PDP11, 11/23, Vax, microVAX,
Fairchild Clipper, X86, NS 32032, SUN. And we had the sources for all
of them but the 32032. Just what you would expect at a univ's operating
system group where the students are sucked up by spinoffs.

It is irritating when a customer calls and tells you that the C compiler
of your new 68K sys5 distributed last week emits instructions that the
assembler cannot handle. And it turns out that it sometimes generates
VAX floating point instructions  =:-O     So much for SysV quality.

All networking after uucp and bang paths, sockets, csh, job control
came from BSD.

> On the other side, one could buy commercially stable Sys V in the form
> of Interactive Unix.  It was expensive at $2k/copy but it was
> stone-cold reliable, used binary distributions and was easy to roll
> out.

I had Interactive Unix personally on my Bullet board 286. There were
worse systems, but it was unsuitable to run Spice, which was one
of my interests at that time. Oh, a 70 MB Fujitsu disk, I had to patch
the bios eprom tables to get disks that large recognized.
  > 20% of the space of those Fujitsu Eagles we had on the VAX to do chip
design at the univ.
And that on a student's private machine. Hubris if there ever was. :-)
But Interactive Unix had no future.

Cheers, Gerhard

-- 
We had Joy, we had fun, we had Unix on a SUN!

[toc] | [prev] | [next] | [standalone]


#511994 — Re: FTDI chips VCP or VX drivers

FromRob <nomail@example.com>
Date2018-07-25 07:27 +0000
SubjectRe: FTDI chips VCP or VX drivers
Message-ID<slrnplg9je.dsk.nomail@xs9.xs4all.nl>
In reply to#511973
Gerhard Hoffmann <ghf@hoffmann-hochfrequenz.de> wrote:
> Gates didn't have so much money at that time. In fact, it was
> Gates's mummie's money. And DOS2 was real rewrite. In the driver
> development kit, there was no stone left unturned. I earned some
> money porting drivers and the story was that they were moving
> to the Xenix style, i.e. set_strategy() / interrupt(). The old
> stuff was not supposed to work any longer.

It was unfortunate that he did not make somewhat larger and more
daring jumps at that time.  Things like not wanting to change the option
indicator '/' and then introducing a system call that would set the option
character, use '\' as default pathname separator but allow '/' as well
(only practical after changing the option character to '-'), man why
was there no bold move to make everything a bit more Xenix compatible...
that '\' has been causing so many headaches.

Earlier preparation for multitasking (like making the kernel re-entrant)
would have been nice as well.

[toc] | [prev] | [next] | [standalone]


#512576 — Re: FTDI chips VCP or VX drivers

FromDecadentLinuxUserNumeroUno@decadence.org
Date2018-08-01 01:49 +0000
SubjectRe: FTDI chips VCP or VX drivers
Message-ID<pjr3ic$48r$1@gioia.aioe.org>
In reply to#511700
Gerhard Hoffmann <ghf@hoffmann-hochfrequenz.de> wrote in news:frhov6F16q0U1
@mid.individual.net:

> That Xerox Parc thing was Apple's "inspiration".
> 

Billy was there too.

[toc] | [prev] | [next] | [standalone]


#511676 — Re: FTDI chips VCP or VX drivers

FromRob <nomail@example.com>
Date2018-07-21 10:16 +0000
SubjectRe: FTDI chips VCP or VX drivers
Message-ID<slrnpl61vc.dff.nomail@xs9.xs4all.nl>
In reply to#511635
Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> wrote:
> On 07/19/18 12:41, Rob wrote:
>> Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> wrote:
>>> Linux lets you open a file N times within a single process, which is
>>> irritating--you can't use file handles alone to enforce thread safety
>>> the way you can in Windows or OS/2.
>> 
>> Of course there are plenty explicit locking mechanisms available...
>> 
>
> Yeah, there are workarounds, but it's still a serious wart, almost in 
> the same class as the Linux thread scheduler (but don't get me started).
>
> I can't think of a single reason why one would want to be able to do 
> that--AFAIK doing it is _always_ a bug.
>
> Can you?

I have always considered it a big bug / misfeature in Windows that a
backup program cannot open files that are open in another process and
thus has to skip them in the backup.  Open files tend to be valuable,
and valuable files tend to be open.  And then THOSE are the files that
are skipped in the backup!  Disaster...

Of course later a mechanism was introduced to solve this (volume snapshots)
but it requires dedicated backup software.  You still cannot zip or rar
a directory tree where some files are open.  Stupid.

[toc] | [prev] | [next] | [standalone]


Page 3 of 4 — ← Prev page 1 2 [3] 4  Next page →

Back to top | Article view | sci.electronics.design


csiph-web