Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

SIM5218E EVB & LUA scripting

Status
Not open for further replies.

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 think I resolved this... at least I managed to transfer and run lua script successfuly

Can be closed...
 

hello
i'm having the same issue and the same error message pops up,,,
will you tell me how did you solve this
 

Hello lg84 i am having the same problem to coul you be so kind to tell me how you did to solve this issue.

Best regards.
 

Hi,

I'have the same problem with the SIM5320E...
unexpected symbol near 'char(26)'
Can you tell me how you have resolve this ?

Thanks by advance.

Best regards

Thomas
 

Hello,
I'm having the same problem with sim5320, 'unexpected symbol near 'char(26)'. I've tried encoding the text file in many ways. After unsuccessfully uploading and running the script files, I downloaded them from the modem and it looks like a bunch of char(26) chars are appended to the end of each of the files.

Does it look like the xmodem receive protocol implementation the sim module is interpreting char(26) as a character in the file instead of an end of file?

I double checked the file I downloaded from the sim5320. I counted all of the characters and they add up to 128 characters... I'll try writing something with more than 128 characters.

Thanks,
DB
 
Last edited:

I tried making the text file exactly 128 bytes long but it didn't work. char(26) went away, but now i'm getting 'unexpected symbol near 'n''
 

I have exactly the same problem. Did you solve it?
 

I did. I contacted SIMCOM and they told me that not to use xmodem. They have their own Lua development software to upload and compile the script files.

View attachment 91062

Oh, Thanks! I will try it later. Hopefully it will work this time.
Anyway, it is strange, right? It is SIMCOM that told us to use Xmodem in SIM52XX_LUA_Application_note_V0.04.pdf. Now they have their own Lua IDE?
 

I did. I contacted SIMCOM and they told me that not to use xmodem. They have their own Lua development software to upload and compile the script files.

View attachment 91062

When I open the LUA IDE, the module is always disconnected. But it works for hyperterminal. What's wrong??
 

I have to tap the reset button to get the module to communicate. I've also had to restart the computer a number of times to reset the USB connection when it drops out. the software and documentation are both pretty but it works.

edit: I forgot to mention that I've only ever uploaded scripts with usb. I only used the uart to interface with a micro (before realizing that I can eliminate it by utilizing the micro in the sim5320).
 
Last edited:

Re: SIM5218E EVB & LUA scripting

hi,everyone,
i use sim5320,but cannot disconnect at luadevide,have you install other driver on computer?
such as usb and uart?

- - - Updated - - -

hi,everyone,
i use sim5320,but cannot disconnect at luadevide,have you install other driver on computer?
such as usb and uart?
 

Re: SIM5218E EVB & LUA scripting

Here are the windows drivers for the sim5320
 

Attachments

  • WindowsDrivers_SIM5320_2.4.00.rar
    102.3 KB · Views: 139

I have grabbed that luadevide program, and it seems to do something useful. I'm at an early stage.

However my disty has contacted SIMCOM, and the engineer had never heard of it. But ho DID get me a copy of

SIMCom EFS Explorer-Customer

Which looks like just the "file download" function from luadevide.

David
 

I'm having the very same issue myself... Unexpected symbol near 'char(26)' when trying to run lua script.

I tried to use this LUA IDE as someone suggested, but I'm getting error ("Failed to find the diag port") when I try to upload my lua script to module. Any idea where I could get this SIMCom EFS Explorer-Customer tool? Any sort of help would be much appreciated.
 

Hi relay,
as per your pm here are the 32 and 64 bit usb drivers.
 

Attachments

  • signed_DRIVER.rar
    265.8 KB · Views: 110
  • Like
Reactions: replay

    replay

    Points: 2
    Helpful Answer Positive Rating
I did. I contacted SIMCOM and they told me that not to use xmodem. They have their own Lua development software to upload and compile the script files.

View attachment 91062


thanks for the link.
i have installed the ide but i found there are a missing library .because i checked the lua manual they explain about another library.
my question if i contact simcom company, will they give the new ide with that come with all the library
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top