This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Lm2 and Lm3 ! port USB ?
#1
Hi everybody !
I have trouble following:
Write a script to check the data via USB to the LM.
-----------
require ('serial')

if not ready then
   Ready = true
   port, err = serial.open ('/ dev / ttyUSB2')
   log (port, err)
end
-----------
On Lm2 will be announced:
Lua serials @ / dev / ttyUSB2; baud: 115200; parity: none, data bits: 8, stop bits: 1, duplex: full, flow: none
Such is the success!
-----------
On LM3 will be announced:
* Arg: 1
   * luaserial
* Arg: 2
   * nil
Such is successful or unsuccessful?
Plug the device was still on the LM2 and LM3 is the same USB device
Reply


Messages In This Thread
Lm2 and Lm3 ! port USB ? - by phongvucba - 06.10.2016, 08:31
RE: Lm2 and Lm3 ! port USB ? - by admin - 06.10.2016, 08:34
RE: Lm2 and Lm3 ! port USB ? - by phongvucba - 06.10.2016, 08:40
RE: Lm2 and Lm3 ! port USB ? - by admin - 06.10.2016, 11:18
RE: Lm2 and Lm3 ! port USB ? - by phongvucba - 08.10.2016, 00:01

Forum Jump: