Hi folks,
I'm currently building a little test rig to test an assembled PCB, my manager suggested I use Code Red as I was planning on using a Raspberry pi to do all the control and UI. I had been planning on using .NET but OK I thought, I'd give it a go.
All the hardware is assembled, I've designed and built my fixture with bed of nails, I've designed and 3D printed a holder for my ST Link programmer and bracket for a little 7" touch screen for the pi . . .
I've created some test flows to prove out what I thought would be the tricky bits, like using the ST Link programmer to program the device and some serial comms stuff and string bashing . . . that's all working.
I've created my state machine to control the test sequence, it's almost ready to test, I need to finish up the wiring and then I can test and debug it . . . so it's going OK, but . . . I've not got a satisfactory way to handle the QR Code scanner input.
The scanner behaves like a keyboard, if I connect it to the pi USB and open a text input node and scan a QR code the text shows up in the input, great, but my issue is what happens if my end user clicks away from the txt input box before they scan . . . If I were doing this in LabVIEW I'd create a modal window that keeps focus and looks for a new line at the end of the string, when it sees that it sends the string through and closes. I'd also have an optional Cancel button so the user can abort the process.
I know Node Red can't do this . . . there isn't a Node to do it, perhaps it could be added to a Template, I saw this thread (How to show modal dialog in template node) but it isn't doing what I need and my Java is limited to doing some basic number crunching and string bashing.
If anyone would like to help a poor soul out I'd be grateful, or maybe just give me some pointers at what I should be looking at.
If a Modal isn't feasible then is there any way to get my QR Code txt input to keep focus until it has valid input ? I found something using a Template but couldn't get it to work (https://groups.google.com/forum/#!topic/node-red/Ip6bAnh01t0)
thanks in advance.
Simon G