yonghui WROTE:Hi,
for LSA08 UART Command, u can refer to LSA08's User Manual section 6.5. commands sent to LSA08 needs to be in correct format of ADDRESS COMMAND DATA CHECKSUM. LSA08 will response with 'OK' if packet of the command is in correct format and the UART Baud rate is matching.
for retrieving line position from LSA08, its not necessary to use the command packet. just set the uart data output mode to 1 or 2 by using the push button and LCD on LSA08, then PULL DOWN the UEN line, the Data will automatically and continuosly send out from LSA08. UEN in this case is for flow control purpose, this means that if your processor /controller unable to handle too much continously data output from LSA08, u can stop LSA08 from sending out data by Setting UEN high until you finish process the previous data, then re-enable the data output by pulling UEN LOW.
Good evening,
Thank you for your quick reply, Unfortunately I haven't got any response from the LSA08 module via UART port, I set and connect the module as following:
Scenario No. 1,
Set the UART ADD to 1.
Set the BAUDRATE to 0.
Set the UARTMODE to 2.
Then,
Connect the RX of LSA08 to ARDUINO TX pin 1
Connect the TX of LSA08 to ARDUINO RX pin 0
Connect the UEN of LSA08 to ARDUINO GND
Connect the GND of LSA08 to ARDUINO GND
Then,
Uploaded ARDUINO with blank sketch.
At the serial terminal set the baudrate to 9600
Then,
Got nothing.
Nonresponse.
----------------------------------------------------------
Scenario No. 2,
Set the UART ADD to 1.
Set the BAUDRATE to 0.
Set the UARTMODE to 2.
Then,
Connect the RX of LSA08 to ARDUINO pin 3
Connect the TX of LSA08 to ARDUINO pin 2
Connect the UEN of LSA08 to ARDUINO pin 13
Connect the GND of LSA08 to ARDUINO GND
Then,
Uploaded ARDUINO with softserial with 9600 baudrate sketch as shown above.
At the serial terminal set the baudrate to 9600
Then,
Got nothing.
Nonresponse.
----------------------------------------------------------
Scenario No. 3,
Set the UART ADD to 2.
Set the BAUDRATE to 1.
Set the UARTMODE to 3.
Then,
Connect the RX of LSA08 to UC00A TX pin
Connect the TX of LSA08 to UC00A RX pin
Connect the UEN of LSA08 to UC00A GND
Connect the GND of LSA08 to UC00A GND
Then,
Used X-CTU, with 19200 Baud, NONE Flow, 8 Data Bits, Parity NONE
Then,
Got nothing.
Nonresponse.
-----------------------------------------------------
Scenario No. 4,
Set the UART ADD to 1.
Set the BAUDRATE to 0.
Set the UARTMODE to 2.
Then,
Connect the RX of LSA08 to UC00A TX pin
Connect the TX of LSA08 to UC00A RX pin
Connect the UEN of LSA08 to UC00A GND
Connect the GND of LSA08 to UC00A GND
Then,
Used X-CTU, with 9600 Baud, NONE Flow, 8 Data Bits, Parity NONE
Send a data packet "01 41 02 44" as shown in photo bellow.
Then Send a data packet "01 43 00 44"
Then,
Got nothing.
Nonresponse.
Any help please!
Thank you