Go Back  R/C Tech Forums > General Forums > Radio and Electronics
RCHourglass DIY Lap Timing (AKA Cano revised) >

RCHourglass DIY Lap Timing (AKA Cano revised)

Community
Wiki Posts
Search
Like Tree157Likes

RCHourglass DIY Lap Timing (AKA Cano revised)

Thread Tools
 
Search this Thread
 
Old 03-04-2018, 01:28 PM
  #136  
Tech Initiate
 
Join Date: Aug 2016
Posts: 21
Default

Rentix is software. Compatible with MyLaps decoder. (I post some screenshots, but it is locked until 10 posts.)
nathalis is offline  
Old 03-04-2018, 01:58 PM
  #137  
Tech Initiate
 
Join Date: Aug 2016
Posts: 21
Default

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;
}
nathalis is offline  
Old 03-04-2018, 02:16 PM
  #138  
Tech Initiate
 
Join Date: Oct 2017
Posts: 27
Default

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
d3m0 is offline  
Old 03-04-2018, 09:32 PM
  #139  
Tech Apprentice
 
Join Date: Oct 2014
Location: St-Legier
Posts: 61
Default

So, why to have all thins procedure to get a com port ?
mroc is offline  
Old 03-05-2018, 02:16 AM
  #140  
Tech Regular
Thread Starter
 
Join Date: Mar 2015
Posts: 304
Default

Originally Posted by d3m0
it will be great to have amb native protocol support to use decoder with other software.
https://github.com/skoky/ambmylapstiming
AMBRc is a serial protocol, I don't understand if the P3 protocol is serial as well. My understanding is that P3 works over TCP/IP
mv4wd is offline  
Old 03-05-2018, 10:39 AM
  #141  
Tech Apprentice
 
Join Date: Oct 2014
Location: St-Legier
Posts: 61
Default

Originally Posted by d3m0
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
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
mroc is offline  
Old 03-05-2018, 10:42 AM
  #142  
Tech Initiate
 
Join Date: Oct 2017
Posts: 27
Default

Originally Posted by mroc
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
Wonderful! might it run on a raspberry pi?
d3m0 is offline  
Old 03-05-2018, 11:27 AM
  #143  
Tech Apprentice
 
Join Date: Oct 2014
Location: St-Legier
Posts: 61
Default

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
d3m0 likes this.

Last edited by mroc; 03-05-2018 at 12:59 PM. Reason: more infos-..
mroc is offline  
Old 03-05-2018, 03:56 PM
  #144  
Tech Regular
Thread Starter
 
Join Date: Mar 2015
Posts: 304
Default

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
Styxxx, 30Tooth, nathalis and 2 others like this.
mv4wd is offline  
Old 03-06-2018, 01:56 AM
  #145  
Tech Initiate
 
Join Date: Aug 2016
Posts: 21
Default

I need connect decoder CY8CKIT to arduino, and read serial data from decoder, but decoder working only with USB serial.
nathalis is offline  
Old 03-06-2018, 02:47 AM
  #146  
Tech Initiate
 
Join Date: Oct 2017
Posts: 27
Default

maybe can be config a softserial port using a pair of gpio ports of PsoC ?
In arduino can be done.
d3m0 is offline  
Old 03-06-2018, 05:39 AM
  #147  
Tech Elite
iTrader: (37)
 
howardcano's Avatar
 
Join Date: Jan 2012
Location: Olathe, KS
Posts: 3,784
Trader Rating: 37 (100%+)
Default

Originally Posted by mv4wd
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
Well done! Next stop: 100K hits!
howardcano is offline  
Old 03-06-2018, 09:52 AM
  #148  
Tech Regular
Thread Starter
 
Join Date: Mar 2015
Posts: 304
Default

Originally Posted by howardcano
Well done! Next stop: 100K hits!
I'd prefer to reach 10 charity donation feedbacks, as written in the license. Unfortunately right now we're still at 0
mv4wd is offline  
Old 03-06-2018, 10:00 AM
  #149  
Tech Apprentice
 
Join Date: Oct 2014
Location: St-Legier
Posts: 61
Default

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
mroc is offline  
Old 03-06-2018, 10:07 AM
  #150  
Tech Regular
Thread Starter
 
Join Date: Mar 2015
Posts: 304
Default

Originally Posted by nathalis
I need connect decoder CY8CKIT to arduino, and read serial data from decoder, but decoder working only with USB serial.
A serial port can be added, just few problems with voltage compatibility and which protocol to use. Right now none of the protocols implemented does support full info, that is: passage Tx number, time, number of hits, voltage, temperature. AMBrc has a low voltage bit and signal strength indicator but no temperature.

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.
mv4wd is offline  


Contact Us - Archive - Advertising - Cookie Policy - Privacy Statement - Terms of Service -

Copyright © 2024 MH Sub I, LLC dba Internet Brands. All rights reserved. Use of this site indicates your consent to the Terms of Use.