What's new

seventhbigsmoke

Student
Joined
Jul 4, 2021
Messages
56
Reaction score
6
Location
Spokane,WA
That would just be an sd card you can save the data on. I'm not sure on which version cause I've got a model 3b but not sure if you need a zero or 4 to run the software to emulate it.
 

chunksin

Professional
Joined
Jan 21, 2017
Messages
302
Reaction score
615
Location
Birmingham, UK
Raspberry Pi 3A or 3B or 3B+ or 4B and microSD card, 8GB is fine
USB to serial adaptor - I use the TrendNet TU-S9 but anything using the Prolific PL230x chipset is fine
Female to Female 9 pin serial cable
ACR122U card reader
Mifare 4k NFC cards - any generic ones should work fine

If you want to power the Pi with 5v from the DC Out connector on the Ringedge you can make up a Molex to USB connector with these:

14 Way Molex Mini-fit Jr. 5557 Series Female White
Model: FF55-39012145-H

Molex, Mini-Fit 5556, Female, Contact,16awg
Model: FA51-39000077-T
 

djturbolence

Beginner
Joined
Jul 30, 2022
Messages
20
Reaction score
3
Location
Hawaii
Raspberry Pi 3A or 3B or 3B+ or 4B and microSD card, 8GB is fine
USB to serial adaptor - I use the TrendNet TU-S9 but anything using the Prolific PL230x chipset is fine
Female to Female 9 pin serial cable
ACR122U card reader
Mifare 4k NFC cards - any generic ones should work fine

If you want to power the Pi with 5v from the DC Out connector on the Ringedge you can make up a Molex to USB connector with these:

14 Way Molex Mini-fit Jr. 5557 Series Female White
Model: FF55-39012145-H

Molex, Mini-Fit 5556, Female, Contact,16awg
Model: FA51-39000077-T
Since I have two machines I’m assuming I’ll need two of everything lol
 

chunksin

Professional
Joined
Jan 21, 2017
Messages
302
Reaction score
615
Location
Birmingham, UK
It's probably possible to run both off one pi but at the moment it needs one per machine. Been working on ID8 printing today, making good progress, it doesn't print much really, just a name, online ID number and a level icon, example below I printed from emulator output.

unknown.png
 

djturbolence

Beginner
Joined
Jul 30, 2022
Messages
20
Reaction score
3
Location
Hawaii
It's probably possible to run both off one pi but at the moment it needs one per machine. Been working on ID8 printing today, making good progress, it doesn't print much really, just a name, online ID number and a level icon, example below I printed from emulator output.

unknown.png
Interesting thing is if all the ID4-8 arcades did this we would have cards in circulation again, and would work in all the machines
 

winteriscoming

Champion
Joined
Feb 16, 2016
Messages
1,440
Reaction score
1,180
Location
Indiana, US
It's probably possible to run both off one pi but at the moment it needs one per machine. Been working on ID8 printing today, making good progress, it doesn't print much really, just a name, online ID number and a level icon, example below I printed from emulator output.

unknown.png

The card server I put together and shared with you supports up to 4 usb serial devices and 4 simultaneous instances of a card script. A user can access the interface and choose the seat that matches the cab they sit at. It's been a while, but IIRC the multiple instances are started dynamically based on the presence of multiple serial adapters. In addition to that, it supports netbooting to multiple devices from the one source. I think an ultimate card server would do that, in addition to the features you're integrating. Just something to consider as you progress. Great work so far!
 

Mrhide

Champion
Joined
Aug 17, 2016
Messages
1,583
Reaction score
2,588
Location
Montréal, Canada
actually, I have everything (minus time) needed to try 2 serial to one Pi…. I should kick myself and try it. Soon.
 

chunksin

Professional
Joined
Jan 21, 2017
Messages
302
Reaction score
615
Location
Birmingham, UK
The card server I put together and shared with you supports up to 4 usb serial devices and 4 simultaneous instances of a card script. A user can access the interface and choose the seat that matches the cab they sit at. It's been a while, but IIRC the multiple instances are started dynamically based on the presence of multiple serial adapters. In addition to that, it supports netbooting to multiple devices from the one source. I think an ultimate card server would do that, in addition to the features you're integrating. Just something to consider as you progress. Great work so far!
Of course! sorry, forgot to look there! I'm working on how to identify each physical USB port reliably to then assign to each reader cable, I've got a udev rule to work but not sure if that will carry over from a Pi 4 to a Pi 3:

SUBSYSTEM=="tty", SUBSYSTEMS=="usb", ATTRS{devpath}=="1.1", SYMLINK+="usb0", MODE="0666"
SUBSYSTEM=="tty", SUBSYSTEMS=="usb", ATTRS{devpath}=="1.2", SYMLINK+="usb1", MODE="0666"
SUBSYSTEM=="tty", SUBSYSTEMS=="usb", ATTRS{devpath}=="1.3", SYMLINK+="usb2", MODE="0666"
SUBSYSTEM=="tty", SUBSYSTEMS=="usb", ATTRS{devpath}=="1.4", SYMLINK+="usb3", MODE="0666"

This allocates the top right port to usb0, bottom right usb1, top left usb2 and bottom left usb3

@winteriscoming - I can see you polled for the ports, how were you assigning them to the physical connections? was that via the admin interface?
 
Last edited:

winteriscoming

Champion
Joined
Feb 16, 2016
Messages
1,440
Reaction score
1,180
Location
Indiana, US
- I can see you polled for the ports, how were you assigning them to the physical connections? was that via the admin interface?
As I recall, it was nothing too complicated. I'm just letting the rpi do what it wants with port assignments. They incremented by 1 and were predictable. Then you just have to figure out which adapter goes to each cab/seat. I think if you leave everything plugged in on reboots it assigns everything out the same again.
 

chunksin

Professional
Joined
Jan 21, 2017
Messages
302
Reaction score
615
Location
Birmingham, UK
Just watched it, it is much farther along than I realized! Incredible. I have a few questions.

I’m wondering if there is a card reader that gets inserted rather than placed on top, just to have it more secured when people are driving.

Will the process be completely automated? Or will key strokes need to be done during the process ? Wondering if an operator will have to manually do something or if eventually the user will just be able play as if nothing is different.

You mentioned printing, how would it print? From the id8 printer or from a third party reader/printer ?

Off topic, but is there any idea if I can link two arcades together for 1v1 using a pi?

Incredible work. Totally ready to help.
I've done some research and you should be fine to use the ACS ACR1281U-C1 reader. It's a dual interface reader, a bit more expensive but supports smartcards as well as contactless and you can insert the cards into a slot which would be more secure in an arcade. The API guide lists the commands in the same format as the 122U reader so it should work just the same.

Update: I've ordered one for testing as I need to update my code to support 2 readers side by side, one for each cab
 
Last edited:

chunksin

Professional
Joined
Jan 21, 2017
Messages
302
Reaction score
615
Location
Birmingham, UK
Hit some issues with ID6 and I need to build a serial tap to see what's going between the Ringedge and the reader - could this be done with a pair of USB-Serial adaptors and tap into the TX from both sides to the RX pins on the adaptors?
 
Last edited:

winteriscoming

Champion
Joined
Feb 16, 2016
Messages
1,440
Reaction score
1,180
Location
Indiana, US
Hit some issues with ID6 and I need to build a serial tap to see what's going between the Ringedge and the reader - could this be done with a pair of USB-Serial adaptors and tap into the TX from both sides to the RX pins on the adaptors?
Yes
 

chunksin

Professional
Joined
Jan 21, 2017
Messages
302
Reaction score
615
Location
Birmingham, UK
Perfect, thanks - the game is doing something very odd, ejects and closes the shutter as the game starts up almost like it's disabling the reader, works fine in ID8.
 

chunksin

Professional
Joined
Jan 21, 2017
Messages
302
Reaction score
615
Location
Birmingham, UK
New card reader arrived, the ACS ACR1281U-C1 which is a dual interface reader, handles smart cards and NFC via the reader pad or the slot. By default the NFC radio shuts off when the NFC card is inserted which is annoying but I've figured out the control codes to send to stop that happening. This is much faster than the NFC only ACR122U reader and has improved range but it handles Mifare keys slightly differently so needs a code update. After a mammoth coding sesh yesterday I've worked out how to associate each card reader with a USB port so I can have separate reader scripts for multiple cabs and even separate reader types, next is figuring out how a setup page will work, assigning serial adaptors and card readers to each cab. I'm hoping to be able to borrow a Lindy multi soon which will cover off ID4 and ID5 testing and I have ID6 and ID 8 on Ringedge - if anyone knows where I can get a copy of ID7 please get in touch!

1662486493359.png
 

djturbolence

Beginner
Joined
Jul 30, 2022
Messages
20
Reaction score
3
Location
Hawaii
Perfect. I was considering 3D printing a mount and a small screen above it to display the card art and profile. I believe you mentioned you had something like that in the works ?
 

seventhbigsmoke

Student
Joined
Jul 4, 2021
Messages
56
Reaction score
6
Location
Spokane,WA
Perfect. I was considering 3D printing a mount and a small screen above it to display the card art and profile. I believe you mentioned you had something like that in the works ?
This would be awesome if you can do that! I'm still interested if we can link 2 id5s with a raspberry pi cause finding a server for these machines aren't easy or cheap and are massive!
 
Top