Click here to Skip to main content
15,888,351 members
Home / Discussions / C#
   

C#

 
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
GeneralRe: Read information from serial port in Mathlab format Pin
Luc Pattyn7-Apr-24 11:04
sitebuilderLuc Pattyn7-Apr-24 11:04 
GeneralRe: Read information from serial port in Mathlab format Pin
Victor Gonzalez 20247-Apr-24 22:42
Victor Gonzalez 20247-Apr-24 22:42 
GeneralRe: Read information from serial port in Mathlab format Pin
Luc Pattyn7-Apr-24 22:45
sitebuilderLuc Pattyn7-Apr-24 22:45 
QuestionDebugging the Sandbox Pin
Richard Andrew x645-Apr-24 3:43
professionalRichard Andrew x645-Apr-24 3:43 
QuestionIParsable? IFormattable? ICustomFormatter? IFormatProvider? TryParse! ToString! Pin
Tracy Dryden24-Mar-24 12:29
Tracy Dryden24-Mar-24 12:29 
AnswerRe: IParsable? IFormattable? ICustomFormatter? IFormatProvider? TryParse! ToString! Pin
Mycroft Holmes24-Mar-24 15:07
professionalMycroft Holmes24-Mar-24 15:07 
GeneralRe: IParsable? IFormattable? ICustomFormatter? IFormatProvider? TryParse! ToString! Pin
Tracy Dryden24-Mar-24 16:19
Tracy Dryden24-Mar-24 16:19 
AnswerRe: IParsable? IFormattable? ICustomFormatter? IFormatProvider? TryParse! ToString! Pin
Ralf Meier24-Mar-24 22:35
mveRalf Meier24-Mar-24 22:35 
GeneralRe: IParsable? IFormattable? ICustomFormatter? IFormatProvider? TryParse! ToString! Pin
Tracy Dryden25-Mar-24 7:51
Tracy Dryden25-Mar-24 7:51 
AnswerRe: IParsable? IFormattable? ICustomFormatter? IFormatProvider? TryParse! ToString! Pin
jschell26-Mar-24 12:00
jschell26-Mar-24 12:00 
Rant(Current) AI Rant. Pin
Gerry Schmitz17-Mar-24 12:29
mveGerry Schmitz17-Mar-24 12:29 
GeneralRe: (Current) AI Rant. Pin
Eddy Vluggen26-Mar-24 5:34
professionalEddy Vluggen26-Mar-24 5:34 
GeneralRe: (Current) AI Rant. Pin
lmoelleb1-Apr-24 21:44
lmoelleb1-Apr-24 21:44 
GeneralRe: (Current) AI Rant. Pin
lmoelleb1-Apr-24 21:49
lmoelleb1-Apr-24 21:49 
QuestionMessageBox Appearing Behind Window Pin
Richard Andrew x6417-Mar-24 1:27
professionalRichard Andrew x6417-Mar-24 1:27 
AnswerRe: MessageBox Appearing Behind Window Pin
OriginalGriff17-Mar-24 4:33
mveOriginalGriff17-Mar-24 4:33 
AnswerRe: MessageBox Appearing Behind Window Pin
Gerry Schmitz17-Mar-24 6:37
mveGerry Schmitz17-Mar-24 6:37 

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.