Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > sci.electronics.design > #511280 > unrolled thread
| Started by | "mook Jonhon" <mook@mook.net> |
|---|---|
| First post | 2018-07-17 23:53 +0000 |
| Last post | 2018-07-18 15:22 -0700 |
| Articles | 18 on this page of 78 — 21 participants |
Back to article view | Back to sci.electronics.design
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 4 of 4 — ← Prev page 1 2 3 [4]
| From | Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> |
|---|---|
| Date | 2018-07-21 14:07 -0400 |
| Subject | Re: FTDI chips VCP or VX drivers |
| Message-ID | <5OCdnZHkoO_3687GnZ2dnUU7-SWdnZ2d@supernews.com> |
| In reply to | #511676 |
On 07/21/2018 06:16 AM, Rob wrote: > 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. > Yikes! Backing up an open file is an invitation to a corrupted backup. There's no guarantee that the file is in a consistent state when a program is using it, and you wouldn't find that out till you tried to restore it. 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]
| From | "Tim Williams" <tiwill@seventransistorlabs.com> |
|---|---|
| Date | 2018-07-21 15:28 -0500 |
| Subject | Re: FTDI chips VCP or VX drivers |
| Message-ID | <pj0519$4i4$1@dont-email.me> |
| In reply to | #511684 |
"Phil Hobbs" <pcdhSpamMeSenseless@electrooptical.net> wrote in message news:5OCdnZHkoO_3687GnZ2dnUU7-SWdnZ2d@supernews.com... > Yikes! Backing up an open file is an invitation to a corrupted backup. > There's no guarantee that the file is in a consistent state when a program > is using it, and you wouldn't find that out till you tried to restore it. That said, there are plenty of applications that should open a file in read-only mode, so other things can still read it. Or open it once to load it into memory, then open it again to save changes. Some PDF readers do this, for example. Handy when I'm iterating changes. Tim -- Seven Transistor Labs, LLC Electrical Engineering Consultation and Design Website: https://www.seventransistorlabs.com/
[toc] | [prev] | [next] | [standalone]
| From | Rob <nomail@example.com> |
|---|---|
| Date | 2018-07-22 18:15 +0000 |
| Subject | Re: FTDI chips VCP or VX drivers |
| Message-ID | <slrnpl9ie7.dff.nomail@xs9.xs4all.nl> |
| In reply to | #511684 |
Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> wrote: > On 07/21/2018 06:16 AM, Rob wrote: >> 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. >> > > Yikes! Backing up an open file is an invitation to a corrupted backup. > There's no guarantee that the file is in a consistent state when a > program is using it, and you wouldn't find that out till you tried to > restore it. So you prefer "having no backup at all" over "having a backup that might be inconsistent"?
[toc] | [prev] | [next] | [standalone]
| From | pcdhobbs@gmail.com |
|---|---|
| Date | 2018-07-22 11:25 -0700 |
| Subject | Re: FTDI chips VCP or VX drivers |
| Message-ID | <be5f9ca0-b5b5-4337-ae49-fc6143e40ff5@googlegroups.com> |
| In reply to | #511736 |
>So you prefer "having no backup at all" over "having a backup that >might be inconsistent"? You betcha. The backup s/w can complain and ask you to close the files. Cheers Phil Hobbs
[toc] | [prev] | [next] | [standalone]
| From | Jeff Liebermann <jeffl@cruzio.com> |
|---|---|
| Date | 2018-07-22 14:06 -0700 |
| Subject | Re: FTDI chips VCP or VX drivers |
| Message-ID | <6sq9lddg16m58e672tmvscnhm060as9ejk@4ax.com> |
| In reply to | #511737 |
On Sun, 22 Jul 2018 11:25:10 -0700 (PDT), pcdhobbs@gmail.com wrote: >>So you prefer "having no backup at all" over "having a backup that >>might be inconsistent"? >You betcha. The backup s/w can complain and ask you to close the files. >Cheers >Phil Hobbs I beg to differ. Microsloth VSS (Volume Shadow Copy Service) allows backing up and restoring files while the files are being written to or read by other applications: <https://docs.microsoft.com/en-us/windows/desktop/vss/volume-shadow-copy-service-portal> <https://blog.macrium.com/backup-internals-what-is-vss-how-does-it-work-and-why-do-we-use-it-4e566223125a> I've been using various Windoze image backup programs for many years and can testify that VSS mostly works. Unfortunately, about 10 years ago, I decided to use an image backup program that used VSS, but wasn't really tested very well by either the programmers or the users (me). It went badly, very badly. Today, I beat the hell out of anything I use for backup and things go much better. Also see VSSadmin: <https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/vssadmin> Macrium Reflect: <https://www.macrium.com/reflectfree> Very easy to use and so far quite reliable. However, it's a total horror to install and setup. Program updates are very easy. Free for personal use. It's blindingly fast and I have no problem running an image backup while I'm reading email or posting drivel to Usenet. -- Jeff Liebermann jeffl@cruzio.com 150 Felker St #D http://www.LearnByDestroying.com Santa Cruz CA 95060 http://802.11junk.com Skype: JeffLiebermann AE6KS 831-336-2558
[toc] | [prev] | [next] | [standalone]
| From | pcdhobbs@gmail.com |
|---|---|
| Date | 2018-07-22 15:41 -0700 |
| Subject | Re: FTDI chips VCP or VX drivers |
| Message-ID | <e73b84c2-5993-4d12-8d99-ef4c9eec25f0@googlegroups.com> |
| In reply to | #511774 |
>I beg to differ. Microsloth VSS (Volume Shadow Copy Service) allows >backing up and restoring files while the files are being written to or >read by other applications: That could potentially help if the inconsistencies were purely OS things like disk cache or file system buffers, but there's no guarantee whatsoever that J Random App maintains consistency even at that level. I keep work files in git repositories and do volume backups with a live CD. Cheers Phil Hobbs
[toc] | [prev] | [next] | [standalone]
| From | Jeff Liebermann <jeffl@cruzio.com> |
|---|---|
| Date | 2018-07-22 20:22 -0700 |
| Subject | Re: FTDI chips VCP or VX drivers |
| Message-ID | <fpgaldtrqquvubor5j1aouc50uutrbdsqh@4ax.com> |
| In reply to | #511785 |
On Sun, 22 Jul 2018 15:41:16 -0700 (PDT), pcdhobbs@gmail.com wrote: >>I beg to differ. Microsloth VSS (Volume Shadow Copy Service) allows >>backing up and restoring files while the files are being written to or >>read by other applications: > >That could potentially help if the inconsistencies were purely OS things >like disk cache or file system buffers, but there's no guarantee >whatsoever that J Random App maintains consistency even at that level. "Looking at Common VSS Myths" <https://blog.storagecraft.com/looking-common-vss-myths/> I'm not a big fan of Microsloth, but I think they got VSS right (after a few bad starts). However, if VSS fails to create a shadow copy for some reason, it will belch a nasty error message on the screen so that the problem can be corrected. Having an anti-virus program scan the entire hard disk during an image backup is a good way to produce such an error. I've run verify passes on my image backups and find that only the usual mess of Windoze logging, snooping, and "telemetry" files are the only ones that show a discrepancy. I once found a large database that failed the verify pass. Upon inspection of the transaction files, I found that the index pointers and data were consistent with what the database had been just prior to running the backup. Good enough as I didn't expect to backup all the data to the last millisecond. My big problem is that I cannot get customers to do backups unless the backup program backups everything, is painless, not disruptive, fast, and reliable. That means no incremental backups or file by file backups. It's taken me many years to get to this point and I'm not about to throw away these features because there MIGHT be some mangled data. I would rather recover what little is lost by hand, than not have any backup at all because the customer was too busy or lazy to run the backup. However, the authors of Macrium Reflect thought about the problem and have 2 answers. One is to create a book CD or flash drive running Windoze PE. Boot this custom CD and there are no open files on the hard disk drive. The other is to add Macrium Reflect to the hard disk boot menu. On boot, the machine displays for 10 seconds a choice of boot partitions, Windoze and Macrium. If the user does nothing, it boots into Windoze. However, if they select Macrium, it brings up a stand alone version of the backup/restore program. These two methods are also handy for machines that fail to boot for one reason or other. >I keep work files in git repositories and do volume backups with a live CD. The Linux LiveCD is similar to the Windoze PE boot environment. Same idea where there are no open files during the backup. I did it like that using Acronis True Image for many years. It worked fine, but my customers would not use it. They didn't want to boot from the CD and did not want to go through an arcane question and answer process in order to get a decent image backup. I had the same problem with Clonezilla. With Macrium, there's an icon on the desktop that says "backup everything". They plug in a USB 3.0 hard disk drive, punch the backup button, make sure it starts, and walk away. It's not as fast as running it from a bootable CD or flash drive, but good enough. Drivel: Some "experts" believe that VSSadmin should be renamed because it is used by many virus and ransomeware programs to burn the bridges behind them. <https://www.bleepingcomputer.com/news/security/why-everyone-should-disable-vssadmin-exe-now/> I'm undecided if it's a good, bad, dumb, evil, dangerous, or stupid idea. -- Jeff Liebermann jeffl@cruzio.com 150 Felker St #D http://www.LearnByDestroying.com Santa Cruz CA 95060 http://802.11junk.com Skype: JeffLiebermann AE6KS 831-336-2558
[toc] | [prev] | [next] | [standalone]
| From | Terry Newton <nbill@bellsouth.net> |
|---|---|
| Date | 2018-07-31 18:36 +0000 |
| Subject | Re: FTDI chips VCP or VX drivers |
| Message-ID | <pjqa6l$cjh$1@gioia.aioe.org> |
| In reply to | #511635 |
On Fri, 20 Jul 2018 19:05:16 -0400, Phil Hobbs 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. For a single process, yes that should be a bug. For another process it's very handy (and dangerous:), I use this feature all the time when programming embedded stuff, can have a terminal open to some serial gizmo then use another script to write stuff to /dev/ttyUSB0 with the right char/line delay, and the "progress dots" show up on the open terminal. Got a sendUSB script on a right-click, doesn't even care about baud etc, just assumes the port is already open. It works because Linux treats almost everything as a file and unless locked anyone else can read and write to it. No idea how to do something like that in Windows, there end up having to write custom terminal apps with the download stuff built in. Terry
[toc] | [prev] | [next] | [standalone]
| From | Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> |
|---|---|
| Date | 2018-07-31 15:43 -0400 |
| Subject | Re: FTDI chips VCP or VX drivers |
| Message-ID | <fIednRWkgvloJv3GnZ2dnUU7-UudnZ2d@supernews.com> |
| In reply to | #512538 |
On 07/31/2018 02:36 PM, Terry Newton wrote: > On Fri, 20 Jul 2018 19:05:16 -0400, Phil Hobbs 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. > > For a single process, yes that should be a bug. For another process > it's very handy (and dangerous:), I use this feature all the time > when programming embedded stuff, can have a terminal open to some > serial gizmo then use another script to write stuff to /dev/ttyUSB0 > with the right char/line delay, and the "progress dots" show up on > the open terminal. Got a sendUSB script on a right-click, doesn't > even care about baud etc, just assumes the port is already open. > It works because Linux treats almost everything as a file and > unless locked anyone else can read and write to it. No idea how > to do something like that in Windows, there end up having to > write custom terminal apps with the download stuff built in. > > Terry > Windows and OS/2 have the notion of a shared file handle, so you can still do that if you like but the default is exclusive. Cheers Phil Hobbs -- Dr Philip C D Hobbs Principal Consultant ElectroOptical Innovations LLC Optics, Electro-optics, Photonics, Analog Electronics 160 North State Road #203 Briarcliff Manor NY 10510 hobbs at electrooptical dot net http://electrooptical.net
[toc] | [prev] | [next] | [standalone]
| From | Rob <nomail@example.com> |
|---|---|
| Date | 2018-07-31 21:07 +0000 |
| Subject | Re: FTDI chips VCP or VX drivers |
| Message-ID | <slrnpm1jsn.jkr.nomail@xs9.xs4all.nl> |
| In reply to | #512538 |
Terry Newton <nbill@bellsouth.net> wrote: > On Fri, 20 Jul 2018 19:05:16 -0400, Phil Hobbs 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. > > For a single process, yes that should be a bug. For another process > it's very handy (and dangerous:), I use this feature all the time > when programming embedded stuff, can have a terminal open to some > serial gizmo then use another script to write stuff to /dev/ttyUSB0 > with the right char/line delay, and the "progress dots" show up on > the open terminal. Got a sendUSB script on a right-click, doesn't > even care about baud etc, just assumes the port is already open. > It works because Linux treats almost everything as a file and > unless locked anyone else can read and write to it. No idea how > to do something like that in Windows, there end up having to > write custom terminal apps with the download stuff built in. Even in a single process and with a normal diskfile it can be useful to have the file open multiple times (on different fd) e.g. to read it at one position and write it at another position without having to seek between te positions all the time. (a single fd has a single read/write position) This can be done in the same thread or in different threads in the same process. Having threads in the process can be another reason to want to open it several times, so you don't have to needlessly interlock the threads to share the access to the file. (e.g. when one thread reads and another thread writes the same file at a different position)
[toc] | [prev] | [next] | [standalone]
| From | dplatt@coop.radagast.org (Dave Platt) |
|---|---|
| Date | 2018-07-31 14:20 -0700 |
| Subject | Re: FTDI chips VCP or VX drivers |
| Message-ID | <4d073f-sam.ln1@coop.radagast.org> |
| In reply to | #512551 |
In article <slrnpm1jsn.jkr.nomail@xs9.xs4all.nl>, Rob <nomail@example.com> wrote: >Even in a single process and with a normal diskfile it can be useful >to have the file open multiple times (on different fd) e.g. to >read it at one position and write it at another position without >having to seek between te positions all the time. Yup. The whole Unix file-descriptor-and-process model accomodates this, in several ways. Consider the whole function of dup() - take an existing file descriptor, and "clone" it into a different and independent file descriptor while leaving the first one open. Consider fork(), which spawns off a separate child process, and clones _all_ of the existing file descriptors from the parent process into the child. Neither of these is (technically) "opening" the file more than once within a single process... in both cases you only call open() once... but they all have a similar effect, of providing two or more independent access paths to a single underlying file. Unix/Linux/POSIX would be a very different beast, if these APIs didn't work that way. The knowledgeable POSIX programmer is expected to be aware of these things, and either (1) not use them when not needed, (2) be aware of the need to close() descriptors you don't need, or (3) use them appropriately with the proper safeguards e.g. locks and semaphores and mutexes and so forth. No different than working with a propane torch, or a soldering iron, or a hacksaw, or a hammer. You have to know which end to grab and which end not to grab :-)
[toc] | [prev] | [next] | [standalone]
| From | John Larkin <jjlarkin@highlandtechnology.com> |
|---|---|
| Date | 2018-07-19 06:36 -0700 |
| Subject | Re: FTDI chips VCP or VX drivers |
| Message-ID | <oo41ld17lg5cf9f6gle5vihg0am815bgmf@4ax.com> |
| In reply to | #511382 |
On 19 Jul 2018 08:21:22 GMT, Rob <nomail@example.com> wrote: >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... My port scanners don't affect a port that's already open. And a port scanner is usually run at powerup (or manually sometimes) to find out who is where. -- John Larkin Highland Technology, Inc lunatic fringe electronics
[toc] | [prev] | [next] | [standalone]
| From | Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> |
|---|---|
| Date | 2018-07-19 08:07 -0400 |
| Subject | Re: FTDI chips VCP or VX drivers |
| Message-ID | <A9KdnavJv5d3483GnZ2dnUU7-S2dnZ2d@supernews.com> |
| In reply to | #511360 |
On 07/18/18 20:25, John Larkin wrote: > 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. There's more opportunity for collisions that way, though. Somebody else's box might interpret "ID" as "ignite detonator". ;) 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]
| From | John Larkin <jjlarkin@highlandtechnology.com> |
|---|---|
| Date | 2018-07-19 06:42 -0700 |
| Subject | Re: FTDI chips VCP or VX drivers |
| Message-ID | <4951ld9qj40kf4g37ckk74aggns19anqaf@4ax.com> |
| In reply to | #511396 |
On Thu, 19 Jul 2018 08:07:06 -0400, Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> wrote: >On 07/18/18 20:25, John Larkin wrote: >> 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. > >There's more opportunity for collisions that way, though. Somebody >else's box might interpret "ID" as "ignite detonator". ;) > >Cheers > >Phil Hobbs Gosh, we never thought about that. That could explain a few things. -- John Larkin Highland Technology, Inc lunatic fringe electronics
[toc] | [prev] | [next] | [standalone]
| From | Clive Arthur <cliveta@nowaytoday.co.uk> |
|---|---|
| Date | 2018-07-18 22:36 +0100 |
| Subject | Re: FTDI chips VCP or VX drivers |
| Message-ID | <piobsv$600$1@dont-email.me> |
| In reply to | #511300 |
On 18/07/2018 14:14, Phil Hobbs 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. > > Cheers > > Phil Hobbs > Yes, the whole thing is dodgy. Chip manufacturers may change things, the there's Windows, then the compiler writers. Potential bugs everywhere. It's a miracle anything works at all. Cheers -- Clive
[toc] | [prev] | [next] | [standalone]
| From | Rob <nomail@example.com> |
|---|---|
| Date | 2018-07-19 08:30 +0000 |
| Subject | Re: FTDI chips VCP or VX drivers |
| Message-ID | <slrnpl0j0e.ftu.nomail@xs9.xs4all.nl> |
| In reply to | #511347 |
Clive Arthur <cliveta@nowaytoday.co.uk> wrote: > Yes, the whole thing is dodgy. Chip manufacturers may change things, > the there's Windows, then the compiler writers. Potential bugs > everywhere. It's a miracle anything works at all. And then it may happen that people "copy" the chip, the original manufacturer revenges by modifying the driver to look for and "destroy" those copies (by setting the device ID to something the driver does not recognize) and then distributes this "driver update" as an "important update" via Microsoft's update service...
[toc] | [prev] | [next] | [standalone]
| From | Clive Arthur <cliveta@nowaytoday.co.uk> |
|---|---|
| Date | 2018-07-19 10:17 +0100 |
| Subject | Re: FTDI chips VCP or VX drivers |
| Message-ID | <pipkvk$4ei$1@dont-email.me> |
| In reply to | #511385 |
On 19/07/2018 09:30, Rob wrote: > Clive Arthur <cliveta@nowaytoday.co.uk> wrote: >> Yes, the whole thing is dodgy. Chip manufacturers may change things, >> the there's Windows, then the compiler writers. Potential bugs >> everywhere. It's a miracle anything works at all. > > And then it may happen that people "copy" the chip, the original manufacturer > revenges by modifying the driver to look for and "destroy" those copies > (by setting the device ID to something the driver does not recognize) > and then distributes this "driver update" as an "important update" via > Microsoft's update service... > Yes, I have a load of 'Prolific' USB serial ports which I use for diagnostics on a multi-processor system. I didn't know they were fakes. Now every so often I have to re-load the old driver from 2008 because Windows keeps updating it. Cheers -- Clive
[toc] | [prev] | [next] | [standalone]
| From | "John Miles, KE5FX" <jmiles@gmail.com> |
|---|---|
| Date | 2018-07-18 15:22 -0700 |
| Subject | Re: FTDI chips VCP or VX drivers |
| Message-ID | <6b9822d6-0367-451c-950a-02c0bc5e4f72@googlegroups.com> |
| In reply to | #511300 |
On Wednesday, July 18, 2018 at 6:15:00 AM UTC-7, Phil Hobbs wrote: > 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. > Installation headaches are some of the worst bugs of all, because they hose the very first experience your customer has with your product. That's the problem FTDI solves. No one, amateur or professional, is immune to driver installation hassles. There isn't much room for bugs in the FTDI ecosystem in any event. Their stuff Just Worked(tm) 10 years ago and has continued to do so ever since. The problem they solve isn't a technical one, anyway, but a spiritual one. They intercede with an omnipotent but indifferent entity -- i.e., Microsoft -- on behalf of the user, no doubt with sighs too deep for words. FTDI sucks in other respects, such as punishing end users for the sins of their vendors, but I'll still use their (genuine) parts whenever I can. -- john, KE5FX
[toc] | [prev] | [standalone]
Page 4 of 4 — ← Prev page 1 2 3 [4]
Back to top | Article view | sci.electronics.design
csiph-web