Author Topic: Laser distance meter help! (Sndway sw-t4s)  (Read 1530 times)

0 Members and 1 Guest are viewing this topic.

Offline rado1Topic starter

  • Newbie
  • Posts: 5
  • Country: bg
Laser distance meter help! (Sndway sw-t4s)
« on: February 29, 2020, 08:46:46 pm »
Hello, i'm newbie, excuse me if my question is not well formed.  :-// So, i have problem decoding the signal from Sndway sw-t4s Laser meter( i want to send the data from the meter to Arduino ) but the TX and RX from the board are not active , so i'm trying to decode the SPI from the display of the meter... ||So far i capture frames from the display, but i can not understand how to map it to something that i can use for Arduino.... :palm: ( i will attach some captured data from 0.000mm and 3.126mm *Saleae Logic Software* )
 Any help will be useful. Thanks!  ^-^

This is frame from the SPI

https://ibb.co/j3qj4bQ

This is what i figure out + some art  :D

https://ibb.co/V9TgHQ1

Another....

https://ibb.co/XJJ3P39

This is the board

https://ibb.co/jrpCSP0

The Display...

https://ibb.co/Tc397JM

=========================================================================================

So i run some tests( i will post a zip file) with the settings as "Rerouter" point me,now is a lot cleaner, and 1 step closer to decode  ^-^ now i change the resolution of the meter from 0.000m to 0.00

Frame captured at 0.00m distance
Code: [Select]
Time [s],Packet ID,MOSI,MISO
-0.000016312500000,0,'16' (0x010),
0.000136437500000,1,'0' (0x000),
0.000289250000000,2,'6' (0x006),
0.000442000000000,3,'1' (0x001),
0.000595000000000,4,'1' (0x001),
0.000748062500000,5,'161' (0x0A1),
0.000900937500000,6,'1' (0x001),
0.001054000000000,7,'129' (0x081),
0.001206937500000,8,'1' (0x001),
0.001359937500000,9,'1' (0x001),
0.001513000000000,10,'449' (0x1C1),
0.001665812500000,11,'15' (0x00F),
0.001818625000000,12,'1' (0x001),
0.001971687500000,13,'1' (0x001),
0.002124687500000,14,'1' (0x001),
0.002277687500000,15,'1' (0x001),
0.002430687500000,16,'1' (0x001),
0.002583750000000,17,'16' (0x010),
0.002736500000000,18,'256' (0x100),
0.002889187500000,19,'6' (0x006),
0.003041937500000,20,'1' (0x001),
0.003194937500000,21,'1' (0x001),
0.003348000000000,22,'193' (0x0C1),
0.003500875000000,23,'1' (0x001),
0.003653875000000,24,'129' (0x081),
0.003809000000000,25,'1' (0x001),
0.003962062500000,26,'1' (0x001),
0.004115062500000,27,'321' (0x141),
0.004267937500000,28,'5' (0x005),
0.004420937500000,29,'1' (0x001),
0.004573937500000,30,'1' (0x001),
0.004726937500000,31,'1' (0x001),
0.004880000000000,32,'1' (0x001),
0.005033000000000,33,'1' (0x001),
0.005186062500000,34,'16' (0x010),
0.005338812500000,35,'128' (0x080),
0.005491562500000,36,'6' (0x006),
0.005644312500000,37,'1' (0x001),
0.005797312500000,38,'1' (0x001),
0.005950312500000,39,'129' (0x081),
0.006103312500000,40,'1' (0x001),
0.006256312500000,41,'129' (0x081),
0.006409312500000,42,'7' (0x007),
0.006562187500000,43,'1' (0x001),
0.006715187500000,44,'327' (0x147),
0.006868000000000,45,'7' (0x007),
0.007020875000000,46,'1' (0x001),
0.007173875000000,47,'1' (0x001),
0.007326937500000,48,'5' (0x005),
0.007479875000000,49,'1' (0x001),
0.007632875000000,50,'1' (0x001),
0.007785937500000,51,'16' (0x010),
0.007938687500000,52,'384' (0x180),
0.008091375000000,53,'6' (0x006),
0.008244125000000,54,'1' (0x001),
0.008397125000000,55,'1' (0x001),
0.008550187500000,56,'1' (0x001),
0.008703187500000,57,'1' (0x001),
0.008858375000000,58,'133' (0x085),
0.009011312500000,59,'1' (0x001),
0.009164312500000,60,'1' (0x001),
0.009317375000000,61,'449' (0x1C1),
0.009470187500000,62,'15' (0x00F),
0.009623000000000,63,\r (0x00D),
0.009775937500000,64,'1' (0x001),
0.009928937500000,65,'193' (0x0C1),
0.010081875000000,66,'1' (0x001),
0.010234875000000,,'1' (0x001),

Frame captured at 0.20m distance
Code: [Select]
Time [s],Packet ID,MOSI,MISO
-0.000016312500000,0,'16' (0x010),
0.000136437500000,1,'0' (0x000),
0.000289250000000,2,'6' (0x006),
0.000442000000000,3,'1' (0x001),
0.000595000000000,4,'1' (0x001),
0.000748062500000,5,'161' (0x0A1),
0.000900937500000,6,'1' (0x001),
0.001053937500000,7,'129' (0x081),
0.001206937500000,8,'1' (0x001),
0.001359937500000,9,'1' (0x001),
0.001512937500000,10,'193' (0x0C1),
0.001665875000000,11,'15' (0x00F),
0.001818687500000,12,'1' (0x001),
0.001971687500000,13,'1' (0x001),
0.002124687500000,14,'1' (0x001),
0.002277750000000,15,'1' (0x001),
0.002430750000000,16,'1' (0x001),
0.002583812500000,17,'16' (0x010),
0.002736562500000,18,'256' (0x100),
0.002889250000000,19,'6' (0x006),
0.003042000000000,20,'1' (0x001),
0.003195000000000,21,'1' (0x001),
0.003348000000000,22,'193' (0x0C1),
0.003500937500000,23,'1' (0x001),
0.003653937500000,24,'129' (0x081),
0.003809062500000,25,'1' (0x001),
0.003962062500000,26,'1' (0x001),
0.004115062500000,27,'321' (0x141),
0.004267937500000,28,'7' (0x007),
0.004420875000000,29,'1' (0x001),
0.004573875000000,30,'1' (0x001),
0.004726875000000,31,'1' (0x001),
0.004879875000000,32,'1' (0x001),
0.005032875000000,33,'1' (0x001),
0.005185875000000,34,'16' (0x010),
0.005338625000000,35,'128' (0x080),
0.005491375000000,36,'6' (0x006),
0.005644125000000,37,'1' (0x001),
0.005797125000000,38,'1' (0x001),
0.005950125000000,39,'129' (0x081),
0.006103062500000,40,'1' (0x001),
0.006256125000000,41,'129' (0x081),
0.006409062500000,42,'7' (0x007),
0.006561937500000,43,'1' (0x001),
0.006714937500000,44,'327' (0x147),
0.006867687500000,45,'7' (0x007),
0.007020562500000,46,'1' (0x001),
0.007173562500000,47,'1' (0x001),
0.007326562500000,48,'5' (0x005),
0.007479500000000,49,'1' (0x001),
0.007632562500000,50,'1' (0x001),
0.007785562500000,51,'16' (0x010),
0.007938312500000,52,'384' (0x180),
0.008091000000000,53,'6' (0x006),
0.008243750000000,54,'1' (0x001),
0.008396750000000,55,'1' (0x001),
0.008549750000000,56,'1' (0x001),
0.008702750000000,57,'1' (0x001),
0.008857937500000,58,'133' (0x085),
0.009010812500000,59,'1' (0x001),
0.009163875000000,60,'1' (0x001),
0.009316875000000,61,'449' (0x1C1),
0.009469687500000,62,\r (0x00D),
0.009622562500000,63,\r (0x00D),
0.009775437500000,64,'1' (0x001),
0.009928437500000,65,'193' (0x0C1),
0.010081312500000,66,'1' (0x001),
0.010234375000000,,'1' (0x001),

Frame captured at 0.50m distance
Code: [Select]
Time [s],Packet ID,MOSI,MISO
-0.000016312500000,0,'16' (0x010),
0.000136437500000,1,'0' (0x000),
0.000289187500000,2,'6' (0x006),
0.000441937500000,3,'1' (0x001),
0.000594937500000,4,'1' (0x001),
0.000747937500000,5,'161' (0x0A1),
0.000900812500000,6,'1' (0x001),
0.001053812500000,7,'129' (0x081),
0.001206750000000,8,'1' (0x001),
0.001359750000000,9,'1' (0x001),
0.001512750000000,10,'449' (0x1C1),
0.001665562500000,11,\r (0x00D),
0.001818437500000,12,'1' (0x001),
0.001971437500000,13,'1' (0x001),
0.002124437500000,14,'1' (0x001),
0.002277437500000,15,'1' (0x001),
0.002430500000000,16,'1' (0x001),
0.002583500000000,17,'16' (0x010),
0.002736250000000,18,'256' (0x100),
0.002888937500000,19,'6' (0x006),
0.003041687500000,20,'1' (0x001),
0.003194687500000,21,'1' (0x001),
0.003347687500000,22,'193' (0x0C1),
0.003500562500000,23,'1' (0x001),
0.003653562500000,24,'129' (0x081),
0.003808625000000,25,'1' (0x001),
0.003961687500000,26,'1' (0x001),
0.004114687500000,27,A (0x041),
0.004267625000000,28,'7' (0x007),
0.004420500000000,29,'1' (0x001),
0.004573500000000,30,'1' (0x001),
0.004726500000000,31,'1' (0x001),
0.004879500000000,32,'1' (0x001),
0.005032500000000,33,'1' (0x001),
0.005185562500000,34,'16' (0x010),
0.005338250000000,35,'128' (0x080),
0.005491000000000,36,'6' (0x006),
0.005643687500000,37,'1' (0x001),
0.005796687500000,38,'1' (0x001),
0.005949750000000,39,'129' (0x081),
0.006102687500000,40,'1' (0x001),
0.006255687500000,41,'129' (0x081),
0.006408625000000,42,'7' (0x007),
0.006561562500000,43,'1' (0x001),
0.006714562500000,44,'327' (0x147),
0.006867312500000,45,'7' (0x007),
0.007020187500000,46,'1' (0x001),
0.007173187500000,47,'1' (0x001),
0.007326187500000,48,'5' (0x005),
0.007479187500000,49,'1' (0x001),
0.007632187500000,50,'1' (0x001),
0.007785250000000,51,'16' (0x010),
0.007937937500000,52,'384' (0x180),
0.008090625000000,53,'6' (0x006),
0.008243375000000,54,'1' (0x001),
0.008396375000000,55,'1' (0x001),
0.008549375000000,56,'1' (0x001),
0.008702375000000,57,'1' (0x001),
0.008857562500000,58,'133' (0x085),
0.009010437500000,59,'1' (0x001),
0.009163437500000,60,'1' (0x001),
0.009316437500000,61,'449' (0x1C1),
0.009469250000000,62,'15' (0x00F),
0.009622062500000,63,\r (0x00D),
0.009774937500000,64,'1' (0x001),
0.009927937500000,65,'193' (0x0C1),
0.010080875000000,66,'1' (0x001),
0.010233875000000,,'1' (0x001),

Frame captured at 1.00m distance
Code: [Select]
Time [s],Packet ID,MOSI,MISO
-0.000016312500000,0,'16' (0x010),
0.000136500000000,1,'0' (0x000),
0.000289312500000,2,'6' (0x006),
0.000442062500000,3,'1' (0x001),
0.000595125000000,4,'1' (0x001),
0.000748125000000,5,'161' (0x0A1),
0.000901000000000,6,'1' (0x001),
0.001054062500000,7,'129' (0x081),
0.001207000000000,8,'1' (0x001),
0.001360062500000,9,'1' (0x001),
0.001513062500000,10,'449' (0x1C1),
0.001665937500000,11,'7' (0x007),
0.001818812500000,12,'1' (0x001),
0.001971812500000,13,'1' (0x001),
0.002124875000000,14,'1' (0x001),
0.002277937500000,15,'1' (0x001),
0.002430937500000,16,'1' (0x001),
0.002584000000000,17,'16' (0x010),
0.002736812500000,18,'256' (0x100),
0.002889500000000,19,'6' (0x006),
0.003042312500000,20,'1' (0x001),
0.003195312500000,21,'1' (0x001),
0.003348375000000,22,'193' (0x0C1),
0.003501250000000,23,'1' (0x001),
0.003654312500000,24,'129' (0x081),
0.003809437500000,25,'1' (0x001),
0.003962437500000,26,'1' (0x001),
0.004115500000000,27,'321' (0x141),
0.004268437500000,28,'5' (0x005),
0.004421375000000,29,'1' (0x001),
0.004574375000000,30,'1' (0x001),
0.004727437500000,31,'1' (0x001),
0.004880437500000,32,'1' (0x001),
0.005033500000000,33,'1' (0x001),
0.005186500000000,34,'16' (0x010),
0.005339312500000,35,'128' (0x080),
0.005492000000000,36,'6' (0x006),
0.005644812500000,37,'1' (0x001),
0.005797812500000,38,'1' (0x001),
0.005950812500000,39,'129' (0x081),
0.006103812500000,40,'1' (0x001),
0.006256812500000,41,'129' (0x081),
0.006409812500000,42,'7' (0x007),
0.006562750000000,43,'1' (0x001),
0.006715750000000,44,'327' (0x147),
0.006868562500000,45,'3' (0x003),
0.007021500000000,46,'1' (0x001),
0.007174500000000,47,'1' (0x001),
0.007327562500000,48,'5' (0x005),
0.007480562500000,49,'1' (0x001),
0.007633562500000,50,'1' (0x001),
0.007786625000000,51,'16' (0x010),
0.007939375000000,52,'384' (0x180),
0.008092062500000,53,'6' (0x006),
0.008244812500000,54,'1' (0x001),
0.008397875000000,55,'1' (0x001),
0.008550875000000,56,'1' (0x001),
0.008703937500000,57,'1' (0x001),
0.008859062500000,58,'133' (0x085),
0.009012000000000,59,'1' (0x001),
0.009165000000000,60,'1' (0x001),
0.009318062500000,61,'449' (0x1C1),
0.009470937500000,62,'3' (0x003),
0.009623875000000,63,\r (0x00D),
0.009776812500000,64,'1' (0x001),
0.009929875000000,65,'193' (0x0C1),
0.010082750000000,66,'1' (0x001),
0.010235812500000,,'1' (0x001),

Frame captured at 1.11m distance
Code: [Select]
Time [s],Packet ID,MOSI,MISO
-0.000016250000000,0,'16' (0x010),
0.000136500000000,1,'0' (0x000),
0.000289312500000,2,'6' (0x006),
0.000442062500000,3,'1' (0x001),
0.000595062500000,4,'1' (0x001),
0.000748062500000,5,'161' (0x0A1),
0.000900937500000,6,'1' (0x001),
0.001054000000000,7,'129' (0x081),
0.001206937500000,8,'1' (0x001),
0.001360000000000,9,'1' (0x001),
0.001513000000000,10,'321' (0x141),
0.001665875000000,11,'5' (0x005),
0.001818812500000,12,'1' (0x001),
0.001971875000000,13,'1' (0x001),
0.002124875000000,14,'1' (0x001),
0.002277937500000,15,'1' (0x001),
0.002430937500000,16,'1' (0x001),
0.002584000000000,17,'16' (0x010),
0.002736750000000,18,'256' (0x100),
0.002889500000000,19,'6' (0x006),
0.003042250000000,20,'1' (0x001),
0.003195250000000,21,'1' (0x001),
0.003348250000000,22,'193' (0x0C1),
0.003501187500000,23,'1' (0x001),
0.003654187500000,24,'129' (0x081),
0.003809250000000,25,'1' (0x001),
0.003962312500000,26,'1' (0x001),
0.004115312500000,27,'321' (0x141),
0.004268187500000,28,'5' (0x005),
0.004421125000000,29,'1' (0x001),
0.004574187500000,30,'1' (0x001),
0.004727187500000,31,'1' (0x001),
0.004880187500000,32,'1' (0x001),
0.005033187500000,33,'1' (0x001),
0.005186250000000,34,'16' (0x010),
0.005339000000000,35,'128' (0x080),
0.005491750000000,36,'6' (0x006),
0.005644500000000,37,'1' (0x001),
0.005797500000000,38,'1' (0x001),
0.005950500000000,39,'129' (0x081),
0.006103500000000,40,'1' (0x001),
0.006256500000000,41,'129' (0x081),
0.006409437500000,42,'7' (0x007),
0.006562312500000,43,'1' (0x001),
0.006715375000000,44,'7' (0x007),
0.006868250000000,45,'3' (0x003),
0.007021250000000,46,'1' (0x001),
0.007174250000000,47,'1' (0x001),
0.007327250000000,48,'5' (0x005),
0.007480250000000,49,'1' (0x001),
0.007633250000000,50,'1' (0x001),
0.007786312500000,51,'16' (0x010),
0.007939062500000,52,'384' (0x180),
0.008091750000000,53,'6' (0x006),
0.008244500000000,54,'1' (0x001),
0.008397500000000,55,'1' (0x001),
0.008550500000000,56,'1' (0x001),
0.008703500000000,57,'1' (0x001),
0.008858687500000,58,'133' (0x085),
0.009011562500000,59,'1' (0x001),
0.009164625000000,60,'1' (0x001),
0.009317625000000,61,'1' (0x001),
0.009470625000000,62,'1' (0x001),
0.009623625000000,63,\r (0x00D),
0.009776562500000,64,'1' (0x001),
0.009929562500000,65,'193' (0x0C1),
0.010082437500000,66,'1' (0x001),
0.010235500000000,,'1' (0x001),

« Last Edit: March 01, 2020, 12:26:00 am by rado1 »
 

Offline nali

  • Frequent Contributor
  • **
  • Posts: 705
  • Country: gb
Re: Laser distance meter help! (Sndway sw-t4s)
« Reply #1 on: February 29, 2020, 09:31:54 pm »
From a quick look there's only a handful of bytes different, so it's possible that they're direct LCD segment data rather than actual numbers. Try comparing 0.000 and 0.008 for example.

Is there any ID on the display or its controller?
 
The following users thanked this post: rado1

Offline Rerouter

  • Super Contributor
  • ***
  • Posts: 4700
  • Country: au
  • Question Everything... Except This Statement
Re: Laser distance meter help! (Sndway sw-t4s)
« Reply #2 on: February 29, 2020, 09:54:35 pm »
It also looks like your settings might be a little off, I also don't like that weird clock glitch at the start of each cycle, If you change your setup a little is that still there?

Assuming the clock glitch is meant to be there, then I would expect settings as attached,

Equally only 4 bytes actually change during this time, so more samples to narrow down what scaling is used between them will likely let you decode it.
 
The following users thanked this post: rado1

Offline rado1Topic starter

  • Newbie
  • Posts: 5
  • Country: bg
Re: Laser distance meter help! (Sndway sw-t4s)
« Reply #3 on: February 29, 2020, 11:30:06 pm »
From a quick look there's only a handful of bytes different, so it's possible that they're direct LCD segment data rather than actual numbers. Try comparing 0.000 and 0.008 for example.

Is there any ID on the display or its controller?

Thank you for the replay.  ^-^  The problem is: no matter what i change..... to many things inside the code change, not only single byte   :palm:
 

Offline rado1Topic starter

  • Newbie
  • Posts: 5
  • Country: bg
Re: Laser distance meter help! (Sndway sw-t4s)
« Reply #4 on: February 29, 2020, 11:40:06 pm »
It also looks like your settings might be a little off, I also don't like that weird clock glitch at the start of each cycle, If you change your setup a little is that still there?

Assuming the clock glitch is meant to be there, then I would expect settings as attached,

Equally only 4 bytes actually change during this time, so more samples to narrow down what scaling is used between them will likely let you decode it.

Thanks a lot  ^-^, the glitch is there(no wire problem)  this will try to run some tests with the settings as you point out and i will post what i find.
 

Offline rado1Topic starter

  • Newbie
  • Posts: 5
  • Country: bg
Re: Laser distance meter help! (Sndway sw-t4s)
« Reply #5 on: March 01, 2020, 12:19:24 am »
It also looks like your settings might be a little off, I also don't like that weird clock glitch at the start of each cycle, If you change your setup a little is that still there?

Assuming the clock glitch is meant to be there, then I would expect settings as attached,

Equally only 4 bytes actually change during this time, so more samples to narrow down what scaling is used between them will likely let you decode it.

Thanks a lot  ^-^, the glitch is there(no wire problem)  this will try to run some tests with the settings as you point out and i will post what i find.


So i run some tests( i will post a zip file) with your settings,now is a lot cleaner, and 1 step closer to decode  ^-^ now i change the resolution of the meter from 0.000m to 0.00

Frame captured at 0.00m distance
Code: [Select]
Time [s],Packet ID,MOSI,MISO
-0.000016312500000,0,'16' (0x010),
0.000136437500000,1,'0' (0x000),
0.000289250000000,2,'6' (0x006),
0.000442000000000,3,'1' (0x001),
0.000595000000000,4,'1' (0x001),
0.000748062500000,5,'161' (0x0A1),
0.000900937500000,6,'1' (0x001),
0.001054000000000,7,'129' (0x081),
0.001206937500000,8,'1' (0x001),
0.001359937500000,9,'1' (0x001),
0.001513000000000,10,'449' (0x1C1),
0.001665812500000,11,'15' (0x00F),
0.001818625000000,12,'1' (0x001),
0.001971687500000,13,'1' (0x001),
0.002124687500000,14,'1' (0x001),
0.002277687500000,15,'1' (0x001),
0.002430687500000,16,'1' (0x001),
0.002583750000000,17,'16' (0x010),
0.002736500000000,18,'256' (0x100),
0.002889187500000,19,'6' (0x006),
0.003041937500000,20,'1' (0x001),
0.003194937500000,21,'1' (0x001),
0.003348000000000,22,'193' (0x0C1),
0.003500875000000,23,'1' (0x001),
0.003653875000000,24,'129' (0x081),
0.003809000000000,25,'1' (0x001),
0.003962062500000,26,'1' (0x001),
0.004115062500000,27,'321' (0x141),
0.004267937500000,28,'5' (0x005),
0.004420937500000,29,'1' (0x001),
0.004573937500000,30,'1' (0x001),
0.004726937500000,31,'1' (0x001),
0.004880000000000,32,'1' (0x001),
0.005033000000000,33,'1' (0x001),
0.005186062500000,34,'16' (0x010),
0.005338812500000,35,'128' (0x080),
0.005491562500000,36,'6' (0x006),
0.005644312500000,37,'1' (0x001),
0.005797312500000,38,'1' (0x001),
0.005950312500000,39,'129' (0x081),
0.006103312500000,40,'1' (0x001),
0.006256312500000,41,'129' (0x081),
0.006409312500000,42,'7' (0x007),
0.006562187500000,43,'1' (0x001),
0.006715187500000,44,'327' (0x147),
0.006868000000000,45,'7' (0x007),
0.007020875000000,46,'1' (0x001),
0.007173875000000,47,'1' (0x001),
0.007326937500000,48,'5' (0x005),
0.007479875000000,49,'1' (0x001),
0.007632875000000,50,'1' (0x001),
0.007785937500000,51,'16' (0x010),
0.007938687500000,52,'384' (0x180),
0.008091375000000,53,'6' (0x006),
0.008244125000000,54,'1' (0x001),
0.008397125000000,55,'1' (0x001),
0.008550187500000,56,'1' (0x001),
0.008703187500000,57,'1' (0x001),
0.008858375000000,58,'133' (0x085),
0.009011312500000,59,'1' (0x001),
0.009164312500000,60,'1' (0x001),
0.009317375000000,61,'449' (0x1C1),
0.009470187500000,62,'15' (0x00F),
0.009623000000000,63,\r (0x00D),
0.009775937500000,64,'1' (0x001),
0.009928937500000,65,'193' (0x0C1),
0.010081875000000,66,'1' (0x001),
0.010234875000000,,'1' (0x001),

Frame captured at 0.20m distance
Code: [Select]
Time [s],Packet ID,MOSI,MISO
-0.000016312500000,0,'16' (0x010),
0.000136437500000,1,'0' (0x000),
0.000289250000000,2,'6' (0x006),
0.000442000000000,3,'1' (0x001),
0.000595000000000,4,'1' (0x001),
0.000748062500000,5,'161' (0x0A1),
0.000900937500000,6,'1' (0x001),
0.001053937500000,7,'129' (0x081),
0.001206937500000,8,'1' (0x001),
0.001359937500000,9,'1' (0x001),
0.001512937500000,10,'193' (0x0C1),
0.001665875000000,11,'15' (0x00F),
0.001818687500000,12,'1' (0x001),
0.001971687500000,13,'1' (0x001),
0.002124687500000,14,'1' (0x001),
0.002277750000000,15,'1' (0x001),
0.002430750000000,16,'1' (0x001),
0.002583812500000,17,'16' (0x010),
0.002736562500000,18,'256' (0x100),
0.002889250000000,19,'6' (0x006),
0.003042000000000,20,'1' (0x001),
0.003195000000000,21,'1' (0x001),
0.003348000000000,22,'193' (0x0C1),
0.003500937500000,23,'1' (0x001),
0.003653937500000,24,'129' (0x081),
0.003809062500000,25,'1' (0x001),
0.003962062500000,26,'1' (0x001),
0.004115062500000,27,'321' (0x141),
0.004267937500000,28,'7' (0x007),
0.004420875000000,29,'1' (0x001),
0.004573875000000,30,'1' (0x001),
0.004726875000000,31,'1' (0x001),
0.004879875000000,32,'1' (0x001),
0.005032875000000,33,'1' (0x001),
0.005185875000000,34,'16' (0x010),
0.005338625000000,35,'128' (0x080),
0.005491375000000,36,'6' (0x006),
0.005644125000000,37,'1' (0x001),
0.005797125000000,38,'1' (0x001),
0.005950125000000,39,'129' (0x081),
0.006103062500000,40,'1' (0x001),
0.006256125000000,41,'129' (0x081),
0.006409062500000,42,'7' (0x007),
0.006561937500000,43,'1' (0x001),
0.006714937500000,44,'327' (0x147),
0.006867687500000,45,'7' (0x007),
0.007020562500000,46,'1' (0x001),
0.007173562500000,47,'1' (0x001),
0.007326562500000,48,'5' (0x005),
0.007479500000000,49,'1' (0x001),
0.007632562500000,50,'1' (0x001),
0.007785562500000,51,'16' (0x010),
0.007938312500000,52,'384' (0x180),
0.008091000000000,53,'6' (0x006),
0.008243750000000,54,'1' (0x001),
0.008396750000000,55,'1' (0x001),
0.008549750000000,56,'1' (0x001),
0.008702750000000,57,'1' (0x001),
0.008857937500000,58,'133' (0x085),
0.009010812500000,59,'1' (0x001),
0.009163875000000,60,'1' (0x001),
0.009316875000000,61,'449' (0x1C1),
0.009469687500000,62,\r (0x00D),
0.009622562500000,63,\r (0x00D),
0.009775437500000,64,'1' (0x001),
0.009928437500000,65,'193' (0x0C1),
0.010081312500000,66,'1' (0x001),
0.010234375000000,,'1' (0x001),

Frame captured at 0.50m distance
Code: [Select]
Time [s],Packet ID,MOSI,MISO
-0.000016312500000,0,'16' (0x010),
0.000136437500000,1,'0' (0x000),
0.000289187500000,2,'6' (0x006),
0.000441937500000,3,'1' (0x001),
0.000594937500000,4,'1' (0x001),
0.000747937500000,5,'161' (0x0A1),
0.000900812500000,6,'1' (0x001),
0.001053812500000,7,'129' (0x081),
0.001206750000000,8,'1' (0x001),
0.001359750000000,9,'1' (0x001),
0.001512750000000,10,'449' (0x1C1),
0.001665562500000,11,\r (0x00D),
0.001818437500000,12,'1' (0x001),
0.001971437500000,13,'1' (0x001),
0.002124437500000,14,'1' (0x001),
0.002277437500000,15,'1' (0x001),
0.002430500000000,16,'1' (0x001),
0.002583500000000,17,'16' (0x010),
0.002736250000000,18,'256' (0x100),
0.002888937500000,19,'6' (0x006),
0.003041687500000,20,'1' (0x001),
0.003194687500000,21,'1' (0x001),
0.003347687500000,22,'193' (0x0C1),
0.003500562500000,23,'1' (0x001),
0.003653562500000,24,'129' (0x081),
0.003808625000000,25,'1' (0x001),
0.003961687500000,26,'1' (0x001),
0.004114687500000,27,A (0x041),
0.004267625000000,28,'7' (0x007),
0.004420500000000,29,'1' (0x001),
0.004573500000000,30,'1' (0x001),
0.004726500000000,31,'1' (0x001),
0.004879500000000,32,'1' (0x001),
0.005032500000000,33,'1' (0x001),
0.005185562500000,34,'16' (0x010),
0.005338250000000,35,'128' (0x080),
0.005491000000000,36,'6' (0x006),
0.005643687500000,37,'1' (0x001),
0.005796687500000,38,'1' (0x001),
0.005949750000000,39,'129' (0x081),
0.006102687500000,40,'1' (0x001),
0.006255687500000,41,'129' (0x081),
0.006408625000000,42,'7' (0x007),
0.006561562500000,43,'1' (0x001),
0.006714562500000,44,'327' (0x147),
0.006867312500000,45,'7' (0x007),
0.007020187500000,46,'1' (0x001),
0.007173187500000,47,'1' (0x001),
0.007326187500000,48,'5' (0x005),
0.007479187500000,49,'1' (0x001),
0.007632187500000,50,'1' (0x001),
0.007785250000000,51,'16' (0x010),
0.007937937500000,52,'384' (0x180),
0.008090625000000,53,'6' (0x006),
0.008243375000000,54,'1' (0x001),
0.008396375000000,55,'1' (0x001),
0.008549375000000,56,'1' (0x001),
0.008702375000000,57,'1' (0x001),
0.008857562500000,58,'133' (0x085),
0.009010437500000,59,'1' (0x001),
0.009163437500000,60,'1' (0x001),
0.009316437500000,61,'449' (0x1C1),
0.009469250000000,62,'15' (0x00F),
0.009622062500000,63,\r (0x00D),
0.009774937500000,64,'1' (0x001),
0.009927937500000,65,'193' (0x0C1),
0.010080875000000,66,'1' (0x001),
0.010233875000000,,'1' (0x001),

Frame captured at 1.00m distance
Code: [Select]
Time [s],Packet ID,MOSI,MISO
-0.000016312500000,0,'16' (0x010),
0.000136500000000,1,'0' (0x000),
0.000289312500000,2,'6' (0x006),
0.000442062500000,3,'1' (0x001),
0.000595125000000,4,'1' (0x001),
0.000748125000000,5,'161' (0x0A1),
0.000901000000000,6,'1' (0x001),
0.001054062500000,7,'129' (0x081),
0.001207000000000,8,'1' (0x001),
0.001360062500000,9,'1' (0x001),
0.001513062500000,10,'449' (0x1C1),
0.001665937500000,11,'7' (0x007),
0.001818812500000,12,'1' (0x001),
0.001971812500000,13,'1' (0x001),
0.002124875000000,14,'1' (0x001),
0.002277937500000,15,'1' (0x001),
0.002430937500000,16,'1' (0x001),
0.002584000000000,17,'16' (0x010),
0.002736812500000,18,'256' (0x100),
0.002889500000000,19,'6' (0x006),
0.003042312500000,20,'1' (0x001),
0.003195312500000,21,'1' (0x001),
0.003348375000000,22,'193' (0x0C1),
0.003501250000000,23,'1' (0x001),
0.003654312500000,24,'129' (0x081),
0.003809437500000,25,'1' (0x001),
0.003962437500000,26,'1' (0x001),
0.004115500000000,27,'321' (0x141),
0.004268437500000,28,'5' (0x005),
0.004421375000000,29,'1' (0x001),
0.004574375000000,30,'1' (0x001),
0.004727437500000,31,'1' (0x001),
0.004880437500000,32,'1' (0x001),
0.005033500000000,33,'1' (0x001),
0.005186500000000,34,'16' (0x010),
0.005339312500000,35,'128' (0x080),
0.005492000000000,36,'6' (0x006),
0.005644812500000,37,'1' (0x001),
0.005797812500000,38,'1' (0x001),
0.005950812500000,39,'129' (0x081),
0.006103812500000,40,'1' (0x001),
0.006256812500000,41,'129' (0x081),
0.006409812500000,42,'7' (0x007),
0.006562750000000,43,'1' (0x001),
0.006715750000000,44,'327' (0x147),
0.006868562500000,45,'3' (0x003),
0.007021500000000,46,'1' (0x001),
0.007174500000000,47,'1' (0x001),
0.007327562500000,48,'5' (0x005),
0.007480562500000,49,'1' (0x001),
0.007633562500000,50,'1' (0x001),
0.007786625000000,51,'16' (0x010),
0.007939375000000,52,'384' (0x180),
0.008092062500000,53,'6' (0x006),
0.008244812500000,54,'1' (0x001),
0.008397875000000,55,'1' (0x001),
0.008550875000000,56,'1' (0x001),
0.008703937500000,57,'1' (0x001),
0.008859062500000,58,'133' (0x085),
0.009012000000000,59,'1' (0x001),
0.009165000000000,60,'1' (0x001),
0.009318062500000,61,'449' (0x1C1),
0.009470937500000,62,'3' (0x003),
0.009623875000000,63,\r (0x00D),
0.009776812500000,64,'1' (0x001),
0.009929875000000,65,'193' (0x0C1),
0.010082750000000,66,'1' (0x001),
0.010235812500000,,'1' (0x001),

Frame captured at 1.11m distance
Code: [Select]
Time [s],Packet ID,MOSI,MISO
-0.000016250000000,0,'16' (0x010),
0.000136500000000,1,'0' (0x000),
0.000289312500000,2,'6' (0x006),
0.000442062500000,3,'1' (0x001),
0.000595062500000,4,'1' (0x001),
0.000748062500000,5,'161' (0x0A1),
0.000900937500000,6,'1' (0x001),
0.001054000000000,7,'129' (0x081),
0.001206937500000,8,'1' (0x001),
0.001360000000000,9,'1' (0x001),
0.001513000000000,10,'321' (0x141),
0.001665875000000,11,'5' (0x005),
0.001818812500000,12,'1' (0x001),
0.001971875000000,13,'1' (0x001),
0.002124875000000,14,'1' (0x001),
0.002277937500000,15,'1' (0x001),
0.002430937500000,16,'1' (0x001),
0.002584000000000,17,'16' (0x010),
0.002736750000000,18,'256' (0x100),
0.002889500000000,19,'6' (0x006),
0.003042250000000,20,'1' (0x001),
0.003195250000000,21,'1' (0x001),
0.003348250000000,22,'193' (0x0C1),
0.003501187500000,23,'1' (0x001),
0.003654187500000,24,'129' (0x081),
0.003809250000000,25,'1' (0x001),
0.003962312500000,26,'1' (0x001),
0.004115312500000,27,'321' (0x141),
0.004268187500000,28,'5' (0x005),
0.004421125000000,29,'1' (0x001),
0.004574187500000,30,'1' (0x001),
0.004727187500000,31,'1' (0x001),
0.004880187500000,32,'1' (0x001),
0.005033187500000,33,'1' (0x001),
0.005186250000000,34,'16' (0x010),
0.005339000000000,35,'128' (0x080),
0.005491750000000,36,'6' (0x006),
0.005644500000000,37,'1' (0x001),
0.005797500000000,38,'1' (0x001),
0.005950500000000,39,'129' (0x081),
0.006103500000000,40,'1' (0x001),
0.006256500000000,41,'129' (0x081),
0.006409437500000,42,'7' (0x007),
0.006562312500000,43,'1' (0x001),
0.006715375000000,44,'7' (0x007),
0.006868250000000,45,'3' (0x003),
0.007021250000000,46,'1' (0x001),
0.007174250000000,47,'1' (0x001),
0.007327250000000,48,'5' (0x005),
0.007480250000000,49,'1' (0x001),
0.007633250000000,50,'1' (0x001),
0.007786312500000,51,'16' (0x010),
0.007939062500000,52,'384' (0x180),
0.008091750000000,53,'6' (0x006),
0.008244500000000,54,'1' (0x001),
0.008397500000000,55,'1' (0x001),
0.008550500000000,56,'1' (0x001),
0.008703500000000,57,'1' (0x001),
0.008858687500000,58,'133' (0x085),
0.009011562500000,59,'1' (0x001),
0.009164625000000,60,'1' (0x001),
0.009317625000000,61,'1' (0x001),
0.009470625000000,62,'1' (0x001),
0.009623625000000,63,\r (0x00D),
0.009776562500000,64,'1' (0x001),
0.009929562500000,65,'193' (0x0C1),
0.010082437500000,66,'1' (0x001),
0.010235500000000,,'1' (0x001),

« Last Edit: March 01, 2020, 12:30:44 am by rado1 »
 

Offline Rerouter

  • Super Contributor
  • ***
  • Posts: 4700
  • Country: au
  • Question Everything... Except This Statement
Re: Laser distance meter help! (Sndway sw-t4s)
« Reply #6 on: March 01, 2020, 05:47:49 am »
So best guesses,

Packet 45 is the left of the decimal point digit, 7 = 0, 3 = 1,
Packet 10 / 44 / 61 is the second from the right of the decimal point, 147 = 0, 7 = 1

Rest is still unknown.

Edit: if your going to keep changing them, change the decoder view to hex, and export as csv (drop down box)
« Last Edit: March 01, 2020, 05:53:58 am by Rerouter »
 
The following users thanked this post: rado1

Offline Rerouter

  • Super Contributor
  • ***
  • Posts: 4700
  • Country: au
  • Question Everything... Except This Statement
Re: Laser distance meter help! (Sndway sw-t4s)
« Reply #7 on: March 01, 2020, 06:10:22 am »
If I break it up into 15 byte chunks, then it becomes a bit clearer what might be going on, I also for the top run divided down by 2 as I still dont like that clock glitch,

Green looks to be column selects or similar, yellow is what I suspect to be value data that will need to be derived,

Below is the data left as is, just reordered.
« Last Edit: March 01, 2020, 06:14:20 am by Rerouter »
 
The following users thanked this post: rado1

Offline rado1Topic starter

  • Newbie
  • Posts: 5
  • Country: bg
Re: Laser distance meter help! (Sndway sw-t4s)
« Reply #8 on: March 01, 2020, 03:22:53 pm »
If I break it up into 15 byte chunks, then it becomes a bit clearer what might be going on, I also for the top run divided down by 2 as I still dont like that clock glitch,

Green looks to be column selects or similar, yellow is what I suspect to be value data that will need to be derived,

Below is the data left as is, just reordered.

Thank you very very much you are the best  :-+. So far i manage to figure out that 1 SPI frame contains 4 sub frames and the 10th and 11th byte of every sub frame control the last line of the display(this is what i want)  :)  I simplified the HEX from "0x010 to 10" With your help finaly i know where to start decoding it   :-/O
also i use this article that contains similar project (he also have the same glitch)  https://www.mictronics.de/2018/02/laser-distance-meter-hack/ he map the last line of the LCD, but is slightly  different from mine.... This is what he maps https://www.mictronics.de/?wpfb_dl=156
With some tests i thing i will manage to decode it.   :phew:


https://ibb.co/8MJYSNQ



« Last Edit: March 01, 2020, 03:59:48 pm by rado1 »
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf