Comments (11)
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.
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.
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.
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.
Do you have the php-redis extension installed?
from gps-tracker.
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.
@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.
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.
Anyway all Sinotrack devices uses the same H02 protocol, it should work as st-901 or st-906.
from gps-tracker.
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.
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)
- Cannot change language HOT 4
- does it support coban devices? HOT 16
- Support JimiLab JM-LL01 HOT 9
- Problem with server HOT 12
- Problem with coban protocol HOT 6
- Error in socket HOT 2
- response for coban devices HOT 5
- Theme issue: can't read texts HOT 4
- location jump during driving HOT 5
- ST-901 Current States, Alarms HOT 10
- redirect to this address http://127.0.0.1:8000/user/login HOT 4
- concox GT08 is not connected to my site HOT 20
- QUESTION Mobile App HOT 1
- Support Teltonika FMC003 HOT 2
- Add Hebrew Translation HOT 3
- Coban not save my data HOT 4
- Alarm Not Working HOT 17
- Instalacion fallida HOT 6
- Error al Iniciar Servidor HOT 4
- OBD II Datas HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gps-tracker.