RCHourglass DIY Lap Timing (AKA Cano revised)
#136
Tech Initiate
Rentix is software. Compatible with MyLaps decoder. (I post some screenshots, but it is locked until 10 posts.)
#137
Tech Initiate
I used RPI3 to connect CY8CKIT USB Serial with GPIO UART
#include <wiringPi.h>
#include "wiringSerial.c"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
//------------------------------------------------------------------------------
// COMPILE COMMAND:
// gcc serialix.c -o serialix
//------------------------------------------------------------------------------
char tempbuf[80];
int fd1,fd2; // file descriptor
struct termios serial;
int main()
{
//open USB serial
fd1 = open("/dev/ttyACM0", O_RDWR | O_NOCTTY | O_NONBLOCK);
//open GPIO UART
fd2 = serialOpen ("/dev/ttyS0", 9600);
if(fd1>0 && fd2>0)
{
printf("Open successfully\n");
//not best solution
while(1==1){
memset (&tempbuf, '\0', sizeof tempbuf);
int n=read(fd1,&tempbuf , sizeof tempbuf);
printf("%s",tempbuf);
serialPuts (fd2, tempbuf) ;
}
close(fd1);
close(fd2);
} else {
printf("failed to open device\n");
}
return 0;
}
#include "wiringSerial.c"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
//------------------------------------------------------------------------------
// COMPILE COMMAND:
// gcc serialix.c -o serialix
//------------------------------------------------------------------------------
char tempbuf[80];
int fd1,fd2; // file descriptor
struct termios serial;
int main()
{
//open USB serial
fd1 = open("/dev/ttyACM0", O_RDWR | O_NOCTTY | O_NONBLOCK);
//open GPIO UART
fd2 = serialOpen ("/dev/ttyS0", 9600);
if(fd1>0 && fd2>0)
{
printf("Open successfully\n");
//not best solution
while(1==1){
memset (&tempbuf, '\0', sizeof tempbuf);
int n=read(fd1,&tempbuf , sizeof tempbuf);
printf("%s",tempbuf);
serialPuts (fd2, tempbuf) ;
}
close(fd1);
close(fd2);
} else {
printf("failed to open device\n");
}
return 0;
}
#138
Tech Initiate
it will be great to have amb native protocol support to use decoder with other software. Zround is great but a bit old style. In our club we are using everlaps, nice (but not free) and more modern software.
Here is some useful info:
https://github.com/skoky/ambmylapstiming
Here is some useful info:
https://github.com/skoky/ambmylapstiming
#139
Tech Apprentice
So, why to have all thins procedure to get a com port ?
#140
it will be great to have amb native protocol support to use decoder with other software.
https://github.com/skoky/ambmylapstiming
https://github.com/skoky/ambmylapstiming
#141
Tech Apprentice
it will be great to have amb native protocol support to use decoder with other software. Zround is great but a bit old style. In our club we are using everlaps, nice (but not free) and more modern software.
Here is some useful info:
https://github.com/skoky/ambmylapstiming
Here is some useful info:
https://github.com/skoky/ambmylapstiming
https://github.com/alcatrazproduction/Chrono
Their is a lot of work.. actually the main function begin to run.
In the console folder, you have some try to mace racing
Their is an arduino program to simulate the decoder
Thor
#142
Tech Initiate
I have beginning to write a software for MX Race using the decoder, all in Python/Mysql
https://github.com/alcatrazproduction/Chrono
Their is a lot of work.. actually the main function begin to run.
In the console folder, you have some try to mace racing
Their is an arduino program to simulate the decoder
Thor
https://github.com/alcatrazproduction/Chrono
Their is a lot of work.. actually the main function begin to run.
In the console folder, you have some try to mace racing
Their is an arduino program to simulate the decoder
Thor
#143
Tech Apprentice
if you have python and a mysql database.. why not
I will make it run on an orangePi (http://www.orangepi.org/orangepiplus2/), with SSD for database
and also a web interface. The data from transponder are sent
as an multicast stream.
On the definitive version, it will be possible to have more than one line
active to have partial timing .
May be, I will try to make a decoder with the ESP32 if possible, so also
compatible with tcp/ip decoder.
the decoder_task.py is the task that take the data from the serial (usb) port
and send to the multicast. It is possible to have more than one decoder_task
The race type is a fixed time plus a fixed number of laps (examples: 30 minutes + 2 laps, or 15 minutes + 0 laps, or 0 minutes + 10 laps )
their will also be the qualifying with lap time.
I use Qt5, and Python 3.6, actually the windows max is set to 800x600
for Raspberry:
https://wiki.qt.io/Native_Build_of_Q...a_Raspberry_Pi
https://raspberrypi.stackexchange.co...a-raspberry-pi
https://gist.github.com/dschep/24aa6...aca2824400d37f
https://www.stewright.me/2014/06/tut...-raspberry-pi/
may be this help...
You may try
Thor
I will make it run on an orangePi (http://www.orangepi.org/orangepiplus2/), with SSD for database
and also a web interface. The data from transponder are sent
as an multicast stream.
On the definitive version, it will be possible to have more than one line
active to have partial timing .
May be, I will try to make a decoder with the ESP32 if possible, so also
compatible with tcp/ip decoder.
the decoder_task.py is the task that take the data from the serial (usb) port
and send to the multicast. It is possible to have more than one decoder_task
The race type is a fixed time plus a fixed number of laps (examples: 30 minutes + 2 laps, or 15 minutes + 0 laps, or 0 minutes + 10 laps )
their will also be the qualifying with lap time.
I use Qt5, and Python 3.6, actually the windows max is set to 800x600
for Raspberry:
https://wiki.qt.io/Native_Build_of_Q...a_Raspberry_Pi
https://raspberrypi.stackexchange.co...a-raspberry-pi
https://gist.github.com/dschep/24aa6...aca2824400d37f
https://www.stewright.me/2014/06/tut...-raspberry-pi/
may be this help...
You may try
Thor
Last edited by mroc; 03-05-2018 at 12:59 PM. Reason: more infos-..
#144
To celebrate the 10000 views goal, firmware beta 03 hex has been published on github, together with usage instructions and a new decoder schematic.
News:
- LED and Beeper outputs
- better RC4 Hybrid compatibility
- RC4 pure registration/decoding
- AMBRc emulation (experimental)
- PIC programming hardware - software is work in progress....
Have fun
News:
- LED and Beeper outputs
- better RC4 Hybrid compatibility
- RC4 pure registration/decoding
- AMBRc emulation (experimental)
- PIC programming hardware - software is work in progress....
Have fun
#145
Tech Initiate
I need connect decoder CY8CKIT to arduino, and read serial data from decoder, but decoder working only with USB serial.
#146
Tech Initiate
maybe can be config a softserial port using a pair of gpio ports of PsoC ?
In arduino can be done.
In arduino can be done.
#147
Tech Elite
iTrader: (37)
To celebrate the 10000 views goal, firmware beta 03 hex has been published on github, together with usage instructions and a new decoder schematic.
News:
- LED and Beeper outputs
- better RC4 Hybrid compatibility
- RC4 pure registration/decoding
- AMBRc emulation (experimental)
- PIC programming hardware - software is work in progress....
Have fun
News:
- LED and Beeper outputs
- better RC4 Hybrid compatibility
- RC4 pure registration/decoding
- AMBRc emulation (experimental)
- PIC programming hardware - software is work in progress....
Have fun
#148
#149
Tech Apprentice
Ok, I have made a tiny batch for my chrono software ( in pre-alpha version ),
you have to manually install Python3.6, Mysql ans then run in Admin the install.bat
also you must run the sql script to install the database and create a DB user Chrono / Chrono
Edit the Preferences.py file to set the COM port
Thor
you have to manually install Python3.6, Mysql ans then run in Admin the install.bat
also you must run the sql script to install the database and create a DB user Chrono / Chrono
Edit the Preferences.py file to set the COM port
Thor
#150
Also should both ports be able to work together (USB and serial)? This can make things a lot harder if both need to command the decoder.