lorenzo-deluca / silence-private-server

Self-Hosted solution for Silence and Seat scooter’s Astra GPS module, ensuring data privacy and independence from the manufacturer.
https://buymeacoffee.com/lorenzodeluca
GNU Affero General Public License v3.0
21 stars 2 forks source link

Seat Mo RS232 #6

Closed lucasimons closed 1 month ago

lucasimons commented 3 months ago

Hi, i m tryng to connect to my Seat but i recive some strange data, i have also triple checked the connectio and tried to swap tx and rx

I connect the cable to OBD port and RS232 to my laptop, after i turn on the Seat and start the comunication on the terminal... This is the result

image

I see some info are missing when the serial comunication is strarted

IMG_20240820_111725.jpg

IMG_20240820_111723.jpg

noiwid commented 2 months ago

Hello,

I also had a lot of difficulties connecting my SEAT Mo. I managed to do it by changing the mapping of my OBD/RS232 cable.

I'm not sure if the OBD plug is wired on the SEAT the same way as on Silence; here is what worked for me:

It's based on this OBD scheme : image

You can see below what kind of cables I used : image + image

I hope this will help :)

Mocheto commented 2 months ago

Hello!

Today I've tried to plug my laptop with my recent adquisition from Aliexpress and I had same issue with my SEAT. Maybe is my other way to connect throught cable as cheaper mechanism hahaha

IMG_20240903_093822

I think all are connected ok, but I got no response. I gonna try your configuration . I will explain the news afterward.

BTW, I wanted to use docker image and docker is not pushed, or pushed in a private repository, I built and pushed at my docker account to use it, it is just an advice to clarify / improve readme file to install and run private server as docker.

Maybe I will create a PR improving that, and add docker-compose file

lorenzo-deluca commented 2 months ago

Hello!

Today I've tried to plug my laptop with my recent adquisition from Aliexpress and I had same issue with my SEAT. Maybe is my other way to connect throught cable as cheaper mechanism hahaha

IMG_20240903_093822

I think all are connected ok, but I got no response.

I gonna try your configuration . I will explain the news afterward.

BTW, I wanted to use docker image and docker is not pushed, or pushed in a private repository, I built and pushed at my docker account to use it, it is just an advice to clarify / improve readme file to install and run private server as docker.

Maybe I will create a PR improving that, and add docker-compose file

Sorry, for the Docker image there was a typo on Readme, I've fix it now, correct url is lorenzodeluca/silence-server

Anyway for RS232 issue is strange because several user report to me that it's working. Now I'm on vacation till end of week, if you have time to check pin out, remember the GND..! Try to reverse TX/RX and let me know.

It's VERY strange missing information on display, seems that you're connect on CANBUS pin..!

Mocheto commented 2 months ago

Using your setup cable I've retrieved strange data but still my problem to change setup, I can't do that...

image

Anyone can help about this?

Ou, with the engine started the info change

image

Mocheto commented 2 months ago

Hello! Today I've tried to plug my laptop with my recent adquisition from Aliexpress and I had same issue with my SEAT. Maybe is my other way to connect throught cable as cheaper mechanism hahaha IMG_20240903_093822 I think all are connected ok, but I got no response. I gonna try your configuration . I will explain the news afterward. BTW, I wanted to use docker image and docker is not pushed, or pushed in a private repository, I built and pushed at my docker account to use it, it is just an advice to clarify / improve readme file to install and run private server as docker. Maybe I will create a PR improving that, and add docker-compose file

Sorry, for the Docker image there was a typo on Readme, I've fix it now, correct url is lorenzodeluca/silence-server

Anyway for RS232 issue is strange because several user report to me that it's working. Now I'm on vacation till end of week, if you have time to check pin out, remember the GND..! Try to reverse TX/RX and let me know.

It's VERY strange missing information on display, seems that you're connect on CANBUS pin..!

no worries, I will try another ways, enjoy your days off!!

lucasimons commented 2 months ago

@Mocheto i see your pic and the connection are different from @noiwid the rs232 is correct, so you can try to change the dupont on obd...

I'm also in vacation so next week i try the @noiwid connection

lorenzo-deluca commented 2 months ago

Using your setup cable I've retrieved strange data but still my problem to change setup, I can't do that...

image

Anyone can help about this?

Ou, with the engine started the info change

image

Seems GND missing...

Mocheto commented 2 months ago

changing rx and tx

image I will find the proper setup! haha

thanks in advance! no worries I can wait until monday ;)

lorenzo-deluca commented 2 months ago

changing rx and tx

image I will find the proper setup! haha

thanks in advance! no worries I can wait until monday ;)

Mmmh. This output is something good. Astra module by Silence/Seat it’s in debug mode so you have A LOT of debug messages on serial.. try some commands 😉

There’s also a message for sending SMS (Seat pays…)

$SSMS,#number#,#message#

Mocheto commented 2 months ago

more extra info but I don't receive SMS image

with international prefix, with "+", without, all possible combinations...

:(

noiwid commented 2 months ago

more extra info but I don't receive SMS image

with international prefix, with "+", without, all possible combinations...

:(

It start looking good but you still have too much bad characters, my guess, you found RX, but not ground, for TX hard to guess... I would stop trying to send command (except $PARAMS) until fix the issue, it might send Bad command to ASTRA..

lucasimons commented 2 months ago

changing rx and tx

image I will find the proper setup! haha

thanks in advance! no worries I can wait until monday ;)

How you have connected the obd and db9 wires?

Mocheto commented 2 months ago

I've pinned following this picture:

image

in this case I obtained strange chars. When I changed number 3 for 11 retrieved legible chars.

GND changed between 4 and 6 and no change there, maybe in pin number 6 has extra info

image

thx in advance for your replies :)

lucasimons commented 2 months ago

Hi, i m tryng to connect to my Seat but i recive some strange data, i have also triple checked the connectio and tried to swap tx and rx

I connect the cable to OBD port and RS232 to my laptop, after i turn on the Seat and start the comunication on the terminal... This is the result

image

I see some info are missing when the serial comunication is strarted

This is my setup if I swap rx and tx ( 2 and 3 in pic) change the respond text but there are strange characters

IMG_20240905_192022.jpg

lucasimons commented 2 months ago

This is the only "valid" responce, what i can sent to show my IMEI? i have tried to $IMEI but i recive the same result like $TEST, $PROT image

sugar012 commented 2 months ago

try this https://github.com/lorenzo-deluca/silence-private-server/issues/4#issuecomment-2254121313

lucasimons commented 2 months ago

try this #4 (comment)

i have tried to send $IPAD1, xx.xxx.xxx.xx with ticked append CR but i recive the same message QISTATE mode TCP, hostname xx.xxx.xxx.xx...

Grazie

noiwid commented 2 months ago

Hi, do you knows what obd pins are connected to your serial 2, 3 & 5 ? I'm not sure $IPAD command resuire a space before ip/domain 🤔

lucasimons commented 2 months ago

Yes 2, 3 and 5...

IMG_20240905_221148.jpg

I have tried with space and without...can I use some other commands?

noiwid commented 2 months ago

Messenger_creation_9881dee5-85a6-4306-9621-cccf94ed0ebd

noiwid commented 2 months ago

@lucasimons, I think you still haven't found the ground connection. For me, it is at OBD pin 14 (on the plug side), which corresponds to pin 11 on the scooter.

When I didn't have the ground, I experienced partial feedback while the scooter was charging: image

and unreadable feedback as soon as the scooter was unplugged: image

Note that most messages are only received when the scooter's CAN bus is active, which happens when the scooter is turned on or the battery is charging. Otherwise, there is almost no data on the CAN bus, and the Astra sends nothing on the serial debug port except for NMEA data (if configured). This relevant information was shared with me by a user on Elektroforum.

Mocheto commented 2 months ago

No good response to me... I've pineed in serveral variations but I don't see a "legible" params/variables

image

Maybe my cable is wrong, I will purchase another kind of cable similar than yours.

If you fave more lucky than me, please give me your map of pins for SEAT MO.

Thanks in advance and sorry to make more noise in this issue :(

noiwid commented 2 months ago

@Mocheto, what you see now look nice, did you try to turn on the scooter ? I've post my mapping+ ref image for pin numbers on a previous post in this topic.

my pin numbers refering to cable OBD plug, not the scooter one :

noiwid commented 2 months ago

be sure your cable is provide with a color map scheme, or use a multimeter to map them ..

Le ven. 6 sept. 2024, 16:41, Mocheto @.***> a écrit :

No good response to me... I've pineed in serveral variations but I don't see a "legible" params/variables

image.png (view on web) https://github.com/user-attachments/assets/fa8c7aed-fe58-42a8-9f74-513ec224e066

Maybe my cable is wrong, I will purchase another kind of cable similar than yours.

If you fave more lucky than me, please give me your map of pins for SEAT MO.

Thanks in advance and sorry to make more noise in this issue :(

— Reply to this email directly, view it on GitHub https://github.com/lorenzo-deluca/silence-private-server/issues/6#issuecomment-2334214214, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFML5A7YK24ZBFFPYMOQJ2DZVG5JFAVCNFSM6AAAAABMZPSUXCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMZUGIYTIMRRGQ . You are receiving this because you were mentioned.Message ID: @.***>

Mocheto commented 2 months ago

OBD: pin 6 -> serial n2 OBD: pin 15 -> serial n3 OBD: pin 3 -> serial 5

image

:(

lucasimons commented 2 months ago

be sure your cable is provide with a color map scheme, or use a multimeter to map them .. Le ven. 6 sept. 2024, 16:41, Mocheto @.> a écrit : No good response to me... I've pineed in serveral variations but I don't see a "legible" params/variables image.png (view on web) https://github.com/user-attachments/assets/fa8c7aed-fe58-42a8-9f74-513ec224e066 Maybe my cable is wrong, I will purchase another kind of cable similar than yours. If you fave more lucky than me, please give me your map of pins for SEAT MO. Thanks in advance and sorry to make more noise in this issue :( — Reply to this email directly, view it on GitHub <#6 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFML5A7YK24ZBFFPYMOQJ2DZVG5JFAVCNFSM6AAAAABMZPSUXCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMZUGIYTIMRRGQ . You are receiving this because you were mentioned.Message ID: @.>

image this is my connection light red is connected to 5 pin of female db9 so it is different from the orginal drawing, there are some misunderstandings, because there are some connections between obd female of Silence/Seat to our obd male and this one connected to db9 female, finally db9 male to rs232 converter...

So this drawing is for the cable from obd female of scooter to male db9 of the rs232 converter? image

are any differences if i trun on the Seat or i connect to charge? The can bus comuication is active in this two configurations?

noiwid commented 2 months ago

Hi, i think this scheme is based on female OBD (scooter side), my explainations are related to male OBD connector.

Yes, i think you should plug your scooter, astra module send way more datas in this setup.

lucasimons commented 2 months ago

Hi, i think this scheme is based on female OBD (scooter side), my explainations are related to male OBD connector.

Yes, i think you should plug your scooter, astra module send way more datas in this setup.

I think that the db9 female side the connection are correct, indeed the obd male side if I connect 3 4 11 ( dark red, red and yellow) I obly recive qistate mode tcp, hostname xx.xxx.xxx.xx

If I connect 5 6 14 ( green cables) I receive strange value so now I can try the @noiwid setup that is a mix of my previous connection because you use 6 3 14

lucasimons commented 2 months ago

I do some tests but I only recive QISTATE mode: Tcp, hostname:......

Maybe in the garage I have low 3g signal so the astra module doesn't send nothing?

I use this procedure:

1 Connect the charging cable or turn on the Seat

2 Plug usb to my pc

3 Plug the obd

4 Start serial comunication

Are there any wrong step?

@Mocheto are you find the working connection?

lucasimons commented 2 months ago

@noiwid can you write the connection following the number in this photo?

image

noiwid commented 2 months ago

@lucasimons Hi, based on your images / numbering :

DB9 / OBD 2 -> 3 3 -> 11 5 -> 6

As shown on this picture, only a few OBD pins are mapped on the scooter: image

On our scooters the OBD pins that are mapped to something are only 3 / 4 / 5 / 6 / 11 / 14 / 16.

noiwid commented 1 month ago

Hello @lucasimons, did you find your way?

lucasimons commented 1 month ago

Hello @lucasimons, did you find your way?

Hi, now i'm using the standard configuration

DB9 / OBD 2 -> 3 3 -> 11 5 -> 4

which command have you sended to recive this data? $IPAD1,xx.xxx.xxx.xx?

Can you share your Tere Term config to show this data?

image

I use zero term but if i send tha IPAD command i must set to hex format to recive some data

lucasimons commented 1 month ago

Yesterday I managed for the first time to send the command to the astra module, I did various tests and I also recovered the IMEI, happy with the achievement I start to set up the docker container and once finished, I go to reconnect to the Seat to modify $IPAD1, mydomain .com, but unfortunately I can't send the command, for example this is a screenshot from yesterday where I managed to send the command $PARA written in white, but now I can't send any command, what could this be due to? I did various tests such as starting the engine first and then connecting the OBD cable, doing the same thing with the engine charging, what procedure do you use? image

noiwid commented 1 month ago

Hi, can you show screenshot from now ? i'm not enough familiar with terra term to see the problem here. Putty can also be usefull the bypass terra term.

lucasimons commented 1 month ago

Hi, this is the current situation as you can see I connect the cable to the OBD port and then I turn on the engine, in fact the status is 2 whereas when it is off it is 0, but even if I write the command $SHOW and press enter it is not sent, I have not changed anything the cable remained with the connections he also used by @lorenzo-deluca, maybe @sugar012 can give me some advice on how to send commands and understand the procedure because when I managed to communicate it was all by chance in fact I wasn't able to reply image

noiwid commented 1 month ago

if you can't send commands, you probably still don't find TX..

lucasimons commented 1 month ago

I double checked that db9 OBD connection, so the cable is OK, but if I try to press enter the zero term doesn't send the command, but I don't know if it is a problem of program or the astra module that not respond

noiwid commented 1 month ago

you're probably close to the goal 🙏🏻

the only way to check TX is to send a command and get it works... i had during a few days the RX + GROUND, and where in same situation than you. if you don't see any reaction with command sent, you might consider the possibility one pin is still not where it should...

what's a bit tricky with terra term is the command you send (and its feedback) is lost in the datas sent by the scooter in the same terminal, it's why i suggested to use Putty instead, you can pause feedback, or use DOS command line to send your command thru Putty.