WRSC / tracking

WRSC boat tracking system with web dashboard
Other
13 stars 7 forks source link

Functionment of the Tracker #19

Open Nanoseb opened 6 years ago

Nanoseb commented 6 years ago

Hello all, Today we got around to test the trackers a bit more in depth. We however still have a couple of questions:

+CPIN: READY

SMS DONE

PB DONE


on serial, but the autorun script doesn't always starts, why so, and how to make it run?

- running manually `at+cscriptstart=d:/autorun.lua` (with the file autorun.lua on the sd card) gives me `ERROR` does any of you know why?

Does any of you know this? @chinchifou @SylvainHunault @Sylyon maybe?
SylvainHunault commented 6 years ago

Hello.

I never touched the switches. It works fine as shown in your picture. If you like you may test the effect of those buttons.

From SIMCOM doc :

AT+CSCRIPTSTART Start running a LUA script file. Description The command is used to start running a LUA script file. The script file must exist in c:\ in the module EFS. This command shouldn’t be used by sio LIB in LUA script files.

Copy file in c:. It cannot be launched on the SIM card.

To copy :

at+fscopy="D:/autorun.lua","C:/autorun.lua"

Then to run :

at+cscriptstart="autorun.lua"

Keep us in touched.

Regards.

Sylvain HUNAULT Ingénieur ENSTA Bretagne Option SPID - Profil Robotique & Systèmes Embarqués Promotion 2016 Ingénieur Systèmes Embarqués à RUAG Defence France (Albi)


De : Nanoseb notifications@github.com Envoyé : samedi 4 août 2018 17:28:16 À : WRSC/tracking Cc : Sylvain HUNAULT (CI2016); Mention Objet : [WRSC/tracking] Functionment of the Tracker (#19)

Hello all, Today we got around to test the trackers a bit more in depth. We however still have a couple of questions:

START

+CPIN: READY

SMS DONE

PB DONE

on serial, but the autorun script doesn't always starts, why so, and how to make it run?

Does any of you know this? @chinchifouhttps://github.com/chinchifou @SylvainHunaulthttps://github.com/SylvainHunault @Sylyonhttps://github.com/Sylyon maybe?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/WRSC/tracking/issues/19, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AJJRCi7KozchEBTD1g1sqfa7R-0pZrC8ks5uNb2QgaJpZM4VvCKG.

SylvainHunault commented 6 years ago

In addition, the script runs the following commands at start:

Hope it helps.

Regards.

Sylvain

chinchifou commented 6 years ago

Hello all,

In addition to Sylvain's answer :

Le sam. 4 août 2018 à 17:52, SylvainHunault notifications@github.com a écrit :

In addition, the script runs the following commands at start:

  • at+cpin=1234 => Enters the pin of the SIM card Then you received the ack of the SIM card correctly unlock.

  • at+cgps=1 => Starts GPS

  • at+netopen=,,1 => Opens socket with mode multiclient. It relies on the default defined socket. The default defines socket must have been configured before hand on each tracker with the following commands :

  • at+cgsockcon=[0],[1],[2] =>[0] is for the "context", you kind of choose a configuration ID that you could refer afterward with at+csocksetpn. You may use "IP" (with the ") for the first parameter [1] and look at this website ( https://www.hw-group.com/support/international-apn-settings-for-mobile-broadband-network-operators) to find out [2] according to your SIM card provider.

  • at+csockauth=[0], 1, [username],[password] => [0] to refer to your configuration setup ID, 1 to specify PAP (you can dive in the datasheet to find out) With the same website, put the username and password between "".

  • at+csocksetpn=[0] => Set the active configuration for the socket. Use your configuration.

  • at+printdir=1 => Enables print.

Hope it helps.

Regards.

Sylvain

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/WRSC/tracking/issues/19#issuecomment-410458547, or mute the thread https://github.com/notifications/unsubscribe-auth/AGXZUIH2WsgzXd0qd0hARPS6uNwYxs6Iks5uNcMlgaJpZM4VvCKG .

Nanoseb commented 6 years ago

Thank you both for your help, I have gathered the info I had in a wiki page, feel free to edit it if you find mistakes. https://github.com/WRSC/tracking/wiki/Tracker-handling

Nanoseb commented 6 years ago

Hello guys, Quick question: do you know if the trackers have the charging circuitry working properly? Can we charge the batteries from them?

chinchifou commented 6 years ago

Hello,

As far as I remember, we used to charge the battery separetely (disconnected from the board). I suppose that when plugged into a PC, the small USB of the board device does not charge the battery.

Le dim. 26 août 2018 à 18:25, Nanoseb notifications@github.com a écrit :

Hello guys, Quick question: do you know if the trackers have the charging circuitry working properly? Can we charge the batteries from them?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/WRSC/tracking/issues/19#issuecomment-416050815, or mute the thread https://github.com/notifications/unsubscribe-auth/AGXZUJz1WH3CiUAkwb1zUZ-fzRqZ5wwiks5uUsv0gaJpZM4VvCKG .

saerdnaer commented 6 years ago

Just to clarify: It is possible to charge a battery via the tracker via USB, but it is slower than directly connecting the battery to a external charger.