libftdi Archives

Subject: Re: [SPAM] Re: libFTDI based program does not read properly pin state of FT245

From: mackowiakp <mackowiakp@xxxxx>
To: libftdi@xxxxxxxxxxxxxxxxxxxxxxx
Date: Tue, 4 Oct 2016 01:44:04 -0700 (MST)
No. It does not help. It is not time relayted problem. Look at the
output from command line below. Initial state of relay outputs - off

root@asus:/opt# ./arco 7;./arco
f0
f7

That is, acro program wa run twice, without any pause

W dniu 04.10.2016 o 10:04, Thomas Jarosch [via libFTDI] pisze:

> On Monday, 3. October 2016 22:29:32 mackowiakp wrote:
>>         pkod=(unsigned char)parametr;
>>         ftdi_write_data(&ftdic, &pkod, 1);}
>>
>>         ftdi_read_data(&ftdic, &c, 1);
>
> what happens if you add a "sleep(1);"
> between ftdi_write_data() and ftdi_read_data()?
>
> It might take some time until the receiving end
> actually acts on the "command".
>
> Cheers,
> Thomas
>
>
> --
> libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
> To unsubscribe send a mail to [hidden email]
> </user/SendEmail.jtp?type=node&node=4026121&i=0>  
>
>
>
> ------------------------------------------------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
> http://libftdi.141977.n3.nabble.com/libFTDI-based-program-does-not-read-properly-pin-state-of-FT245-tp4026120p4026121.html
>
> To start a new topic under libFTDI, email
> [hidden email]
> To unsubscribe from libFTDI based program does not read properly pin
> state of FT245, click here
> <
> NAML
> <
http://libftdi.141977.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>
--

Z poważaniem

Piotr Maćkowiak

TEN MAIL JEST PODPISANY ELEKTRONICZNIE S/MIME


smime.p7s (5K) Download Attachment


View this message in context: Re: [SPAM] Re: libFTDI based program does not read properly pin state of FT245
Sent from the libFTDI mailing list archive at Nabble.com.


libftdi - see http://www.intra2net.com/en/developer/libftdi for details.
To unsubscribe send a mail to libftdi+unsubscribe@xxxxxxxxxxxxxxxxxxxxxxx


Current Thread