lg84
Newbie level 4
- Joined
- Sep 27, 2011
- Messages
- 6
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Activity points
- 1,344
Hello!
I purchased SIM5218E with EVB - and have some issues with lua programming
Maybe someone can help with giving me hint.
I'm able to connect to module via serial port and make a call, send sms, and get gps location via AT command. But when I write hello world LUA script (hello world app example from documentation: SIM52XX_LUA_AN_V_004.pdf)
printdir(1)
print("HELLO WORLD!\r\n“)
and send that script to module using XMODEM transfer:
at+crxfile="hwtest.lua"
after that I run script:
at+cscriptstart="hwtest.lua",1
i get LUA error:
at+cscriptstart="hwtest.lua",1
OK
+LUA ERROR: hwtest.lua:2: unexpected symbol near 'char(26)'
+CSCRIPT: 3
I try convert to different encoding in notetpad++ but no results...
What I'm missing?
I'm using notepad++ for wrinting script and Tera Term for serial communication and xmodem transfer
Any info is welcome!
Thnx!
I purchased SIM5218E with EVB - and have some issues with lua programming
Maybe someone can help with giving me hint.
I'm able to connect to module via serial port and make a call, send sms, and get gps location via AT command. But when I write hello world LUA script (hello world app example from documentation: SIM52XX_LUA_AN_V_004.pdf)
printdir(1)
print("HELLO WORLD!\r\n“)
and send that script to module using XMODEM transfer:
at+crxfile="hwtest.lua"
after that I run script:
at+cscriptstart="hwtest.lua",1
i get LUA error:
at+cscriptstart="hwtest.lua",1
OK
+LUA ERROR: hwtest.lua:2: unexpected symbol near 'char(26)'
+CSCRIPT: 3
I try convert to different encoding in notetpad++ but no results...
What I'm missing?
I'm using notepad++ for wrinting script and Tera Term for serial communication and xmodem transfer
Any info is welcome!
Thnx!