Click here to Skip to main content
15,910,234 members
Home / Discussions / C#
   

C#

 
QuestionHow to print the property values of an object to a file/console ? Pin
AtaChris22-Apr-24 8:51
AtaChris22-Apr-24 8:51 
AnswerRe: How to print the property values of an object to a file/console ? Pin
Dave Kreskowiak22-Apr-24 13:49
mveDave Kreskowiak22-Apr-24 13:49 
GeneralRe: How to print the property values of an object to a file/console ? Pin
AtaChris22-Apr-24 21:23
AtaChris22-Apr-24 21:23 
GeneralRe: How to print the property values of an object to a file/console ? Pin
Pete O'Hanlon22-Apr-24 22:44
mvePete O'Hanlon22-Apr-24 22:44 
GeneralRe: How to print the property values of an object to a file/console ? Pin
Dave Kreskowiak23-Apr-24 4:10
mveDave Kreskowiak23-Apr-24 4:10 
QuestionHow to identify Key Combinations ? Pin
AtaChris15-Apr-24 6:26
AtaChris15-Apr-24 6:26 
AnswerRe: How to identify Key Combinations ? Pin
Dave Kreskowiak15-Apr-24 6:35
mveDave Kreskowiak15-Apr-24 6:35 
QuestionHow to send property values via eventhandler ? Pin
AtaChris7-Apr-24 7:41
AtaChris7-Apr-24 7:41 
AnswerRe: How to send property values via eventhandler ? Pin
OriginalGriff7-Apr-24 20:23
mveOriginalGriff7-Apr-24 20:23 
GeneralRe: How to send property values via eventhandler ? Pin
AtaChris15-Apr-24 6:46
AtaChris15-Apr-24 6:46 
GeneralRe: How to send property values via eventhandler ? Pin
OriginalGriff15-Apr-24 19:09
mveOriginalGriff15-Apr-24 19:09 
QuestionRead information from serial port in Mathlab format Pin
Victor Gonzalez 20245-Apr-24 9:43
Victor Gonzalez 20245-Apr-24 9:43 
AnswerRe: Read information from serial port in Mathlab format Pin
Richard Andrew x645-Apr-24 11:01
professionalRichard Andrew x645-Apr-24 11:01 
GeneralRe: Read information from serial port in Mathlab format Pin
Victor Gonzalez 20245-Apr-24 12:26
Victor Gonzalez 20245-Apr-24 12:26 
AnswerRe: Read information from serial port in Mathlab format Pin
jschell5-Apr-24 12:20
jschell5-Apr-24 12:20 
GeneralRe: Read information from serial port in Mathlab format Pin
Victor Gonzalez 20245-Apr-24 12:28
Victor Gonzalez 20245-Apr-24 12:28 
GeneralRe: Read information from serial port in Mathlab format Pin
Richard MacCutchan5-Apr-24 22:44
mveRichard MacCutchan5-Apr-24 22:44 
GeneralRe: Read information from serial port in Mathlab format Pin
Victor Gonzalez 20245-Apr-24 23:22
Victor Gonzalez 20245-Apr-24 23:22 
GeneralRe: Read information from serial port in Mathlab format Pin
Richard MacCutchan5-Apr-24 23:41
mveRichard MacCutchan5-Apr-24 23:41 
GeneralRe: Read information from serial port in Mathlab format Pin
Luc Pattyn6-Apr-24 8:16
sitebuilderLuc Pattyn6-Apr-24 8:16 
GeneralRe: Read information from serial port in Mathlab format Pin
Victor Gonzalez 20247-Apr-24 1:12
Victor Gonzalez 20247-Apr-24 1:12 
GeneralRe: Read information from serial port in Mathlab format Pin
Luc Pattyn7-Apr-24 1:52
sitebuilderLuc Pattyn7-Apr-24 1:52 
GeneralRe: Read information from serial port in Mathlab format Pin
Victor Gonzalez 20247-Apr-24 6:04
Victor Gonzalez 20247-Apr-24 6:04 
GeneralRe: Read information from serial port in Mathlab format Pin
Luc Pattyn7-Apr-24 8:13
sitebuilderLuc Pattyn7-Apr-24 8:13 
GeneralRe: Read information from serial port in Mathlab format Pin
Victor Gonzalez 20247-Apr-24 9:53
Victor Gonzalez 20247-Apr-24 9:53 
Hi Luc,

You are in the right, I'm wasn't clear and specific.

Hardware that I'm working:
DS-300 Electronic Racing Products.
photo of the product
specifications that I found

This hardware is an a scalextric race control. ( start, pause, stop, laps by slot, time of lap...). slot 1 have 1 sensor and slot 2 have another sensor, and when one of this sensors are actitated, the DS-300 sent the information since the COM PORT.

I checked and this is the information that send:

for example when I push start race I recevied this data:
e0	59	15	03	00	04	4c	3e	a1	00	06	00	00	00	00	00	00	00	a6	00	eb

e0	5f	15	03	00	04	4c	00	a2	00	00	00	00	00	00	00	00	00	69	00	eb

e0	60	15	03	00	04	4c	00	a3	00	00	00	00	00	00	00	00	00	6b	00	eb


63 bytes:

byte 8 and 9 indicates that I pushed start.
byte 10 and 11 indicates the counter time, for example 6 minuts of race.
byte 12 and 13 --> number of lap
byte 15,16,17,18 --> time spend of complete the lap.
byte 20 and 21 --> ever the same 00 eb.


this is an example of data for 1 lap.
e0	60	15	03	00	04	4c	00	a3	00	00	00	00	00	00	00	00	00	6b	00	eb


21 byte:

byte 8 and 9 indicates that sensor of lap.
byte 10 and 11 indicates the slot 1 or 2.
byte 12 and 13 --> number of lap
byte 15,16,17,18 --> time spend of complete the lap.
byte 20 and 21 --> ever the same 00 eb.


This is when I force the stop of the race:
e0	61	15	03	00	04	4c	00	a7	00	00	00	00	00	00	00	00	00	70	00	eb


21 byte:

byte 8 and 9 indicates that I pushed start.
byte 10 and 11 indicates the counter time, for example 6 minuts of race.
byte 12 and 13 --> number of lap
byte 15,16,17,18 --> time spend of complete the lap.
byte 20 and 21 --> ever the same 00 eb.

this is the pause on:

e0	6d	15	03	00	04	4c	00	a5	00	00	00	00	00	00	00	00	00	7a	00	eb


21 byte:

byte 8 and 9 indicates that I pushed pause on.
byte 20 and 21 --> ever the same 00 eb.

pause off:
e0	6e	15	03	00	04	4c	00	a6	00	00	00	00	00	00	00	00	00	7c	00	eb

e0	6f	15	03	00	04	4c	00	a2	00	00	00	00	00	00	00	00	00	79	00	eb

e0	70	15	03	00	04	4c	00	a3	00	00	00	00	00	00	00	00	00	7b	00	eb



63 bytes:
byte 8 and 9 indicates that I pushed pause off.
byte 20 and 21 --> ever the same 00 eb.

finish time and finish the race:
e0	02	15	03	00	04	4c	00	c0	00	00	00	00	00	01	00	00	00	2b	00	eb

eb	03	15	03	00	04	4c	00	a4	00	00	00	00	00	00	00	00	00	0f	00	eb


42 bytes
byte 8 and 9 indicates that the race is finished. 
byte 20 and 21 --> ever the same 00 eb.



What I would like:

I would like do a software that show all this data for the pilos are playing, because it's very important know how many laps are you having, the time of lap, etc...

I hope be clear and give you mor information.

Thanks in advance.
REgards

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.