Thursday, October 23, 2014
I have a C++ application that is reading data from a serial port but I'm seeing some weird behavior with regards to the amount of time it takes to complete a select call. I'm trying to read some data from another device which is streaming out 5 kB blocks at 115200 baud, the device streams out a total of 200 kB total during an entire transaction. The actual read calls grab 512 bytes at a time. When grabbing the 5 kB blocks the first select call takes ~475ms then the subsequent ones take 48ms. So it looks like select is only unblocking once all the data reaches the port. Since 475ms at 115200 baud gets me about 5 kB. Then the 48ms gets me about 512 bytes which is the size of the UART buffer on my device. What's strange is that when grabbing the last 3-4 blocks the first select call returns in 48ms which is what I'd expect it to do in the first place. From what I gather it looks like select is blocking until the device is finished writing all data over UART since it's only the initial one in each block that's effected. Is select supposed to return once there's any data to read on the device? Or are there some other conditions it's looking for? Is there any way I can configure my serial port to return from select once there is data available on the handle? ... More @
News
Subscribe to:
Post Comments (Atom)
Blog Archive
-
▼
2014
(407)
-
▼
October
(192)
- Windows Phone Updated with Evening Reminders for C...
- Microsoft Global Readiness: Diverse cultures. Many...
- Microsoft Launches Azure Cloud Services In Austral...
- Monday, October 27, 2014Xbox One : nouvelle baisse...
- Microsoft now giving Office 365 users unlimited st...
- Microsoft brings Black Friday early with another X...
- An Offer You Can't Refuse? All Office 365 Subscrib...
- Storage Wars: Microsoft offers unlimited OneDrive ...
- Microsoft’s Bing beats Google to emoji search
- Microsoft Just Made Its Google Apps Killer Much Mo...
- NYC has been struck by first case of Ebola
- How long can Ebola live on a surface?
- WHO sends medics to Mali; moves up Ebola vaccine t...
- After 1st Ebola case in NYC, 3 others quarantined
- NY governor: Doctor had 100.3 temp, not 103
- Doctors Without Borders: Ebola risk can't be zero
- Retracing the Steps of Doctor Who Tested Positive ...
- Obama offers federal help to NY with Ebola case
- NYC man diagnosed with Ebola amid official reassur...
- New Linux Releases from Ubuntu and SuSE
- New Linux Releases from Ubuntu and SuSE: In the sa...
- How does Linux determine filename case on ISO 9660?
- Linux - select() call not returning when I expect
- Very Large Linux Distribution Performance Comparis...
- IC Software: Validation Engineer - Linux / Android...
- Troubleshooting INET Routing - Linux IPsec (Racoon...
- YiKai Chen replied to Secure setting issue with Ne...
- Linux VPS Hosting - CentOS, Ubuntu, or Debian|Fast...
- U2 album stumbles in Billboard chart after free iT...
- Early Apple computer sells for $905,000 at auction
- Apple computer sells for record $905K in NY: Bonhams
- Christian Bale to play Apple's Steve Jobs
- Apple's iPad Air 2 has anti-reflective coating, a ...
- Apple's new iPad Air starts at $499
- iPhone rollout likely widened T-Mobile's growth lead
- APPLE LIVE: iPad Air 2, Apple Pay, new Macs debut
- New Apple iPad can switch wireless carriers with a...
- Patient isolated at Massachusetts clinic after dis...
- From ebola phone call to the golf course — click t...
- Texas Health Worker Tests Positive for Ebola
- Ebola Response: Maining one ebola free area in Sei...
- Health IT: Ebola technology survey
- Ebola Response: How can we Spiked M. tuberculosis ...
- Ebola Response: Maintaining one ebola free area in...
- DOH rolls out multi-sectoral response plan versus ...
- CBS Medical Expert Praises Ebola Response, Discour...
- Breach in Protocol Led to New Ebola Diagnosis: CDC
- Texas health worker with Ebola wore full protectiv...
- Second US Ebola case raises questions about safety...
- Dallas Health Care Worker Tests Positive For Ebola
- ABC Chief Medical Expert: CDC Wrong, All US Hospit...
- Suspected Ebola case isolated at Braintree clinic
- The Extremely Remote Accuracy of Ebola Predictions
- Scientists in Russia developing three Ebola vaccin...
- 2nd Ebola case in Dallas: Nurse tests positive
- NIH Official: ‘The System Worked’ on Ebola
- Second case of Ebola in Texas
- At Least 100,000 Snapchat Photos Hacked
- v1: Ebola screening for NHS 111 calls announced
- Snapchat videos and pictures stored on a third par...
- Get up to speed on Ebola outbreak
- SNAPCHAT LEAK Hackers get their hands on 100K 'del...
- More Than 200,000 Snapchat Accounts Hackeds
- There is still uncertainly over whether there will...
- SnapChat Pics Leaked From Hacked Archive
- Snapchat is the latest service to have images leak...
- Snapchat leak affects tens of thousands of people,...
- Snapchat photo leak: Company says its servers are ...
- ICYMI: Still trust Snapchat?
- skypestripper: snapchat must be fun for hot people
- Snapchat hacked
- Privacy Breach: Hackers Plan To Leak Thousands Of ...
- Latest Snapchat photo leak shows why you don’t use...
- Snapchat Warning....
- Illinois Official Warns of Ebola Email Scam
- Ebola Death Toll Eclipses 4,000 With No Signs of S...
- Return of the Android SMS virus - self-spreading "...
- Police thwarted by remote wiping of tablets and ph...
- FBI's warrantless 'hack' of Silk Road was legal, p...
- Reminder: iCloud's going to demand app-specific pa...
- Adobe will update e-reader to mop up clear-text da...
- Chinese workers strike at Foxconn factory after HP...
- Omron image sensors designed to be 'eyes' of IoT
- SeaMonkey 2.30 Beta 1
- Python 3.4.2
- Wireshark 1.99.0 (32-bit) Beta
- Sandra Lite 2014 SP3e (20.50)
- Dropbox 2.10.39
- Twitter sues US federal agencies in attempt to rem...
- Any Video Converter 5.7.3
- Sharp, NHK push 8K TVs ahead of 2020 Olympics
- Google asks Supreme Court to decide Oracle's Andro...
- Judges spar with attorneys on national security da...
- Four-digit passcodes remain a weak point in iOS 8 ...
- Enterprise mobile messaging market gets more crowd...
- The Zuli Smartplug shrinks geo-fencing to room-fen...
- Jitters over US surveillance could break the Inter...
- Passpoint Wi-Fi system makes it even easier to roa...
- Sprint's long, rocky WiMax journey will end next N...
- AMD names Lisa Su to replace Rory Read as CEO, con...
-
▼
October
(192)
No comments:
Post a Comment