This came from the driver CD that came with a cheap CH341 based USB to Serial adapter that had numerous other drivers on the CD as well. This is a PL2303 and from everything Ive read no additional drivers are required.ĭynex are a bunch of assholes and haven t published the driver or the fact that it uses the HL-340 controller not the Prolific 2303 one. The Device Manager shows under Other Devices PCI Serial Port Properties The drivers for this device are not installed. Qinheng Electronics Hl-340 Usb-Serial Adapter Drivers For This I hate to say it, but the answer is no, there is not way to uniquely identify multiple 340 based usb-serial converters.
Qinheng Electronics Hl-340 Usb-Serial Adapter Windows 7 64 Bit.The server can be synchronized with ntpd to a NTP time server. A simple solution for the old firmware is to create a PHP page on your server which returns the time.
Unfortunately none of these modules are in the old pre-compiled firmware archive. There is no internal clock in the firmware, but there is the rtctime module in later releases, which in combination with sntp.sync could be used to load the time from a NTP time server for initialization and then display it. An interesting application is to get data from the web and display it with some device, for example a clock. Once I'm done with developing, I can upload a to the platform, so that I don't need a local webserver anymore.
Yeah, good idea for beginners With this setup, I can just change a on my PC, then hit the reset button on the module and the new code gets loaded. In later releases of the firmware you can use, but for this you have to build your own version of the firmware, or use the firmware build service here: For the the later releases they don't provide a default firmware anymore, because they say there are too many modules which the user can select. "\r\nConnection: close\r\n\r\n") end tmr.alarm(0, 3000, 1, function() tmr.stop(0) runScript("192.168.11.27","a") end) The 3 second delay before starting is necessary, because it needs some time after reset to establish the wifi connection. data end) conn:on("disconnection", function(conn, data) executeString(stripHeader(receivedPage)) end) conn:connect(80, host) conn:send("GET /". You can upload it to the module like this:Ĭode: tmode(wifi.STATION) ("ROUTER_ESSID","WIFI_PASSWORD") function executeString(s) local fun = loadstring(s) fun() end function stripHeader(s) local pos = string.find(s, "\r\n\r\n") return s:sub(pos + 4) end function runScript(host, url) receivedPage = "" conn = net.createConnection(net.TCP, false) conn:on("receive", function(conn, data) receivedPage = receivedPage. Code: tmode(wifi.STATION) ("ROUTER_ESSID","WIFI_PASSWORD") print(()) gpio.mode(0, gpio.OUTPUT) gpio.mode(4, gpio.OUTPUT) srv=net.createServer(net.TCP) srv:listen(80,function(conn) conn:on("receive", function(client,request) local buf = "" local _, _, method, path, vars = string.find(request, "(+) (.+)?(.+) HTTP") if(method = nil)then _, _, method, path = string.find(request, "(+) (.+) HTTP") end local _GET = if (vars ~= nil)then for k, v in string.gmatch(vars, "(%w+)=(%w+)&*") do _GET = v end end buf = buf." ESP8266 Web Server" buf = buf."GPIO0 ON OFF" buf = buf."GPIO4 / LED ON OFF" local _on,_off = "","" if(_GET.pin = "ON1")then gpio.write(0, gpio.HIGH) elseif(_GET.pin = "OFF1")then gpio.write(0, gpio.LOW) elseif(_GET.pin = "ON2")then gpio.write(4, gpio.HIGH) elseif(_GET.pin = "OFF2")then gpio.write(4, gpio.LOW) end client:send(buf) client:close() collectgarbage() end) end) Replace ROUTER_ESSID and WIFI_PASSWORD with your router information.