Navigation

    IO Ninja IO Ninja Forum
    • Register
    • Login
        No matches found
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    1. Home
    2. Luis Ramírez
    Luis Ramírez

    Luis Ramírez

    @Luis Ramírez

    0
    Reputation
    7
    Posts
    6
    Profile views
    0
    Followers
    0
    Following
    Joined Last Online
    Location Costa Rica

    • Profile
    • More
      • Following
      • Followers
      • Topics
      • Posts
      • Best
      • Groups
    Luis Ramírez Follow

    Best posts made by Luis Ramírez

    This user hasn't posted anything yet.

    Latest posts made by Luis Ramírez

    RE: Tracker Simulator

    I thought I responded to your answer Vladimir. Thank you for taking the time to create the script. I can tell you that it works perfectly and has saved me a lot of time in testing tasks. By the way, the process is very efficient and precise.

    posted in Support & Troubleshooting •
    Tracker Simulator

    Can anybody help me with an example of a tracker simulator that sends parameters from a CSV file to a server via UDP.

    The message is HEX. The idea is that the script can read parameters from a csv file, use current date/time and create the string following the next table format. Then send the message and go to the next CSV file line. There must be a delay after every message sent.

    Keyword Default Value Bytes Description
    OptionsByte 83 1 Indicates the type of data in the message
    MobileIDLength 08 1 Length of MobileID in bytes
    MobileID "From CSV file" 8 ID of the device that originated the message
    MobileIDTypeLen 01 1 Length of the MobileID type
    MobileIDType 02 1 Type of identification (IMEI, ESN, etc.)
    Service Type 01 1 Type of service for the message
    Message Type 02 1 Type of message (event, report, etc.)
    Sequence# 0000 2 Sequence number of the message
    Update Time "Current Time" 4 Time of message update
    Time of Fix "Current Time" 4 Time of the last GPS fix
    Latitude "From CSV file" 4 Latitude in decimal degrees
    Longitude "From CSV file" 4 Longitude in decimal degrees
    Altitude "From CSV file" 4 Altitude in centimeters
    Speed "From CSV file" 4 Speed in centimeters per second
    Heading "From CSV file" 2 Heading in degrees from true north
    Satellites 10 1 Number of satellites used
    Fix Status 02 1 GPS fix status
    Carrier 0004 2 Network carrier identifier
    RSSI FFBF 2 Received signal strength indicator
    Comm State 0F 1 Communication modem state
    HDOP 00 1 Horizontal dilution of precision
    Inputs "From CSV file" 1 Status of digital inputs
    Unit Status A1 1 Status of key modules within the unit
    Event Index 99 1 Index of the event that generated the report
    Event Code 03 1 Event code reported
    Accums 06 1 Number of accumulators
    Spare 00 1 Reserved space, not used
    Accum 0 00000000 4 First accumulator
    Accum 1 00000000 4 Second accumulator
    Accum 2 10600000 4 Third accumulator
    Accum 3 001A35DF 4 Fourth accumulator
    Accum 4 02C80269 4 Fifth accumulator
    Accum 5 62347EF0 4 Sixth accumulator

    An example of the output could be this one:

    8308860796050307380F01020102000066BADC8166BADC8105F30E41CE7B98490000000000000000007410020004FFBF0F001Ea199030600000000000000106000000000001A35DF02C8026962347EF0

    Thanks.

    posted in Support & Troubleshooting •
    RE: TxT over UDP

    Thanks Vladimir!

    posted in Support & Troubleshooting •
    RE: TxT over UDP

    I made a mistake with the file I was using. Everything is fine with the script. Thank you very much. This has saved me a lot of work.

    I am now very interested in how this script works. If you don't feel that I abuse your willingness, can you briefly explain how the script works? The operation of file.view is particularly confusing to me as I don't know whether the value of the pointer or the contents of the file is stored in "p".

    posted in Support & Troubleshooting •
    RE: TxT over UDP

    Hi, it worked perfectly. It was suppose to send the lines one by one, but it doesn't. I set a delay at the end of the "while" however is not the solution. How can I solve it?

    posted in Support & Troubleshooting •
    RE: TxT over UDP

    Thanks Vladimir!

    I set the path to my txt file and run the script. I know it found the file but I get this error:

    "Script transmit error:
    The filename, directory name, or volume label syntax is incorrect."

    File name syntax is in MS-DOS format. "file.open("C:\TMP\script\text.txt", io.FileOpenFlags.ReadOnly);"

    Text file looks like this:

    8308864495038423916F010201020000628C1DA7628C1DA705F37E4CCDD503B40000000000000000007410020004FFBF0F001Ea199030600000000000000106000000000001A35DF02C8026962347EF0
    8308864495038423916F010201020001628C1DA7628C1DA705F37E4CCDD503B40000000000000000007411020004FFBF0F001Ea199030600000000000000106100000000001B333702C8026A62347EF0

    ...those are just two lines, the file has many more.

    What could I have done wrong?

    posted in Support & Troubleshooting •
    TxT over UDP

    Hello, I need to send several lines contained inside a TxT file, one at the time, over UDP. I am not very good at programming and would like someone to give me some advice. Thanks.

    I currently do this manually every time I need to. It will be great if I can make it automatically.

    posted in Support & Troubleshooting •