Code Monkey home page Code Monkey logo

Comments (11)

eusonlito avatar eusonlito commented on September 15, 2024 1

Also, configure the redis settings as your current environment at https://github.com/eusonlito/GPS-Tracker/blob/e5f33bb89d24390a9d5bb69cd4547f3f79ae3999/.env.example#L47:L49

Maybe host as localhost and port 6379.

from gps-tracker.

JakeOcean avatar JakeOcean commented on September 15, 2024 1

Yes, it was actually that simple, thank you! -- I had some issues during my composer install and completely forgot to circle back to this

from gps-tracker.

eusonlito avatar eusonlito commented on September 15, 2024 1

Related issue #5

Can you upload the debug log? Some sources say that is the same as H02 protocol.

You can create a new server in your installation with the protocol debug-socket, for example.

from gps-tracker.

eusonlito avatar eusonlito commented on September 15, 2024 1

Yes, it is a normal error (laravel log) since in PHP it is not possible to know if the client of a socket connection is still connected or not, so you must always try to read (and be prepared for failure).

from gps-tracker.

eusonlito avatar eusonlito commented on September 15, 2024

Do you have the php-redis extension installed?

from gps-tracker.

eusonlito avatar eusonlito commented on September 15, 2024

You can comment any issue (like the composer one) in a new issue to help me to improve setup and usage :)

Thanks!

from gps-tracker.

JakeOcean avatar JakeOcean commented on September 15, 2024

@eusonlito have you tested this with the sinotrack st-902 OBD version?

I have updated the server URL using the default sinotrack software, which was a bit of a pain, but not seeing data in my logs.

Is there a good way to test the server port using Curl or something to send it well structered data as a test?

Also, can I leave my server in "debug" mode at all times? What does that actually do?

from gps-tracker.

eusonlito avatar eusonlito commented on September 15, 2024

Do you have running the server at port 8091? See Server > Status.

Debug mode creates a new log file with debug suffix and store the raw request, valid or invalid.

Check Server > Logs > server folder and search log files by date.

You can test the request open your url from browser like https://domain.com:8091

from gps-tracker.

eusonlito avatar eusonlito commented on September 15, 2024

Anyway all Sinotrack devices uses the same H02 protocol, it should work as st-901 or st-906.

from gps-tracker.

eusonlito avatar eusonlito commented on September 15, 2024

After some researching, the ST-902 is using a different protocol named Husbao https://www.traccar.org/forums/topic/decode-obd-data-from-st-902/

I'm going to open a new issue to add support to this protocol, but I need some time to test it.

from gps-tracker.

JakeOcean avatar JakeOcean commented on September 15, 2024

You can create a new server in your installation with the protocol debug-socket, for example.

Yes, will do! My device is not communicating with me now, I think after it wasnt able to connect to the server it takes a few hours to go back to the default server -- but I will let you know when I can test that.

I did notice 1 error in the laravel log, not the server log, not sure if related:

[2023-02-24 06:57:42] develop.ERROR: socket_read(): unable to read from socket [104]: Connection reset by peer {"exception":"[object] (ErrorException(code: 0): socket_read(): unable to read from socket [104]: Connection reset by peer at /home/forge/MyDomain.com/app/Services/Server/Socket/Client.php:69)
[stacktrace]
#1 [internal function]: Illuminate\\Foundation\\Bootstrap\\HandleExceptions->Illuminate\\Foundation\\Bootstrap\\{closure}()
#2 /home/forge/MyDomain.com/app/Services/Server/Socket/Client.php(69): socket_read()
#3 /home/forge/MyDomain.com/app/Services/Server/Socket/Client.php(37): App\\Services\\Server\\Socket\\Client->readBuffer()
#4 /home/forge/MyDomain.com/app/Services/Server/Socket/Server.php(176): App\\Services\\Server\\Socket\\Client->handle()
#5 /home/forge/MyDomain.com/app/Services/Server/Socket/Server.php(118): App\\Services\\Server\\Socket\\Server->clientRead()
#6 /home/forge/MyDomain.com/app/Services/Server/Socket/Server.php(88): App\\Services\\Server\\Socket\\Server->read()
#7 /home/forge/MyDomain.com/app/Domains/Server/Action/StartPort.php(105): App\\Services\\Server\\Socket\\Server->accept()
#8 /home/forge/MyDomain.com/app/Domains/Server/Action/StartPort.php(39): App\\Domains\\Server\\Action\\StartPort->serve()
#9 /home/forge/MyDomain.com/app/Domains/Shared/Action/ActionFactoryAbstract.php(52): App\\Domains\\Server\\Action\\StartPort->handle()
#10 /home/forge/MyDomain.com/app/Domains/Server/Action/ActionFactory.php(60): App\\Domains\\Shared\\Action\\ActionFactoryAbstract->actionHandle()
#11 /home/forge/MyDomain.com/app/Domains/Server/Command/StartPort.php(29): App\\Domains\\Server\\Action\\ActionFactory->startPort()
#18 /home/forge/MyDomain.com/vendor/symfony/console/Command/Command.php(312): Illuminate\\Console\\Command->execute()
#20 /home/forge/MyDomain.com/vendor/symfony/console/Application.php(1022): Illuminate\\Console\\Command->run()
#21 /home/forge/MyDomain.com/vendor/symfony/console/Application.php(314): Symfony\\Component\\Console\\Application->doRunCommand()
#22 /home/forge/MyDomain.com/vendor/symfony/console/Application.php(168): Symfony\\Component\\Console\\Application->doRun()
#25 /home/forge/MyDomain.com/artisan(37): Illuminate\\Foundation\\Console\\Kernel->handle()
#26 {main}
"}

from gps-tracker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.