Jump to content

MarkCheavens

Members
  • Posts

    4
  • Joined

  • Last visited

MarkCheavens's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. I had no problem making the changes, I just didn't know if there were any limits in the DLL for maxbaud. I have tested the dll to 1M. I have a USB/serial uart that can talk to a micro at up to 2mbs. The project uses non-standard baud rates with a common divisor. I will test @ 2M later in the project (I really don't need but 1M for the current project I am working on) (Monitoring a HS-CAN network in a car) Here is the changelog and I have attached the modified version of the sample app. The example/sample was a great starting point! I do need to look at the strip lf checkbox, from a quick scan I think the UI is there, but the code is commented out. (I moved on) ;Version 2.1 21th June 2011 ;changes- ;Added $progname variable and utilized in all titles. ;bugfix - version of dll shown as unknown until port setting menu closed. ;changed output window to courier font. Monospaced fonts easier to read if data is lined up in terminal output. ;changed - removed sorting of baud rate in drop down window. Sorting was from left character, not from numeric value. ;changed/added additional "standard baud rates": 300, 230400, 460800, 921600 as well as 1000000 and 2000000 (Tested to 921600) ;bugfix - only display error message box if error exists. ;bugfix - fixed spelling of "quit" from "quite" Thank you again for your work and attention! Mark Cheavens CommgExampleA.au3
  2. Martin, I have fixed a few minor annoyances in your sample comm app. Works great as a basic terminal app. Thank you very much for the work on this. From reading all of the other posts it appears that the dll will now support non-standard baud rates. Is that correct? Is there any maximum baud rate that will work? I have an device that I am trying to control at 1M (The device supports up to 2Mbps). It is a USB serial interface to a car network. I have modified your sample app and it works reliably at 115,200bps, and your sample app only goes to 256kbs. Thank you, Mark Cheavens
  3. Works great! The full code compares the two times and if a webcam fails to update twice (Greater than 11 minutes) then it cycles the power on the webcam. Normally the update occurs every 5 minutes, so the code that I provided was stripped down to show the heart of what it was doing. (Now I just need to spend the time to understand HOW you fixed it!) Thank you Authenticity!
  4. I have written a small watcher application that looks at the server time, the last modified date of a file on a web server and then "does" something if the time is too great. (The file is too old). I have attached a very stripped down version of the code. It will reliably fail when the time difference between the server date and the Last Modified date are near 5 minutes of one another. I know WHY this is: It is due to the file being updated on the server (FTP process). What I need it for my script to ignore the error and continue. I know this should be "simple", but none of my error traps have helped. Thanks in advance. Mark While 1 $url="http://www.cheavens.com/purg/webcam/camera1.jpg" $WinHttpReq = ObjCreate("winhttp.winhttprequest.5.1") $WinHttpReq.open("HEAD",$URL) $WinHttpReq.send() $headerLM = $WinHttpReq.GetResponseHeader("Last-Modified") $headerD = $WinHttpReq.GetResponseHeader("Date") ConsoleWrite("Last Modified: " & $headerLM & @CRLF ) ConsoleWrite("Server Time : " & $headerD & @CRLF & @CRLF ) Sleep(1000) WEnd
×
×
  • Create New...