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
> [email protected]
> To unsubscribe from libFTDI based program does not read properly pin
> state of FT245, click here
> <http://libftdi.141977.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4026120&code=bWFja293aWFrcEBvcC5wbHw0MDI2MTIwfC0xMjE1MTgwMzAy>.
> 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) 
<http://libftdi.141977.n3.nabble.com/attachment/4026122/0/smime.p7s>




--
View this message in context: 
http://libftdi.141977.n3.nabble.com/libFTDI-based-program-does-not-read-properly-pin-state-of-FT245-tp4026120p4026122.html
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 [email protected]   

Reply via email to