Scanning DataMatrix QR code on Raspberry PI - raspberry-pi

I am trying to scan a QR code and get the data from it on my raspberry pi.
The scanner I am using is the: DS6510b-2d
I am scanning the QR code on the picture below the post:
This QR code has separators so I can differentiate the DATA.
When I scan the QR code on Windows I get the following result:
10ABC123↔21U001273↔12040104↔3712345678
This is correct and exactly what I need.
When I scan the QR code connected to the raspberry I get the following:
10ABC12321U001273120401043712345678 Here it is missing the sepperators, this makes it impossible to differentiate the data.
How do I get it so when I scan the QR code on my raspberry it also shows the sepperators?
Thank you in advance for your help.
QR CODE:

A few ideas, though I can test none as I don't have your scanner...
You could try starting a "virtual console", see here, which is text-based and doesn't use X11, and then scanning with your scanner to see if the X11 server and keyboard mappings are "eating" your separators.
I'm not proposing this as a permanent solution, just a step in working out the issue.
Or, with X11 server started, you could run xev to see what X events are generated when you scan and potentially then use xmodmap to convert you "left right double arrow" thing into some other symbol all concerned parties can work with.
I don't use Windows but there must be a tool to get the Unicode codepoint of your "left right double arrow" thing. I guess it is U+21d4, see here.
Then you could type/generate that codepoint on the Raspberry Pi using this and see what Raspbian makes of it.

Related

zxing node-red-contrib-qrcode-generator - issues with Wi-Fi QR code

If I create a QR code in Node Red for Open Wi-Fi network it works fine i.e. I paste the resulting msg.payload content into browser, scan it with my iPhone (iOS 14.2) and it brings up request to to join the specified Wi-Fi network.
If in the node I hard-code encryption = WPA, SSID = MySSID and Password = abcd12345 (also tried "abcd12345") when I paste msg.payload into my browser I always get error "might be temporarily down or it may have moved permanently to a new web address. ERR_INVALID_URL".
I had a bit more success injecting a string (WIFI:T:WPA;S:myWiFi;P:abcd12345;;) into the node in that it creates a QR code, but when I scan it then iPhone shows "No usable data found". I tried with "" around S and P options too.
Any ideas?...
Ah, missed in the nodes guide that it requires msg.qrcodeinput as the input, not msg.payload! Changed that and now it works.

Change Address STM32F722 Program

I'm very inexperienced in STM32 programming and want to ask about firmware installment with ST-Link-Utility.
I've a flight controller that must be flashed with custom firmware.
The firmware provided by developer now is compiled as hex file and has starting address at 0x8008000.
I need to change it's starting address to 0x2000000.
Is there any possibilities to do this, without modify source code of the hex file?
What I need to do first in this case?
The firmware provided by developer now is compiled as hex file and has starting address at 0x8008000. I need to change it's starting address to 0x2000000.
This is not possible without recompiling / linking.
For example the controller must know where to find the vector table. And the position is defined somewhere in the hex.
I hope I got what you said.
With ST-Link-Utility you can easily change offset of Flash Address this way:
Check that and let me know.

Why barcode scanner opens Chrome developer console in chrome?

I just bought a barcode reader from China model Honeywell HH400. It works perfectly when I use it other device. But now I use it in my web application and I am getting a problem. It always toggle Chrome developer console. I also tried scanning barcode into URL bar, and it does the same. Does it have an event to trigger F12 what? Or misconfiguration with the scanner that I don't know?
I am sure that you might have already received a solution.
But for others who might come across this issue,
I ran into this problem today and found that no matter what prefix or suffix I try, on every browser it emulates pressing F12 which opens the browser console.
The same barcode functioned as required a couple of weeks ago.
Every barcode comes with a quick start guide that you can use to set prefix suffix etc.
There is also a bar code that "Recalls Defaults". Just scan that and you should have the factory defaults set.
This resolved my issue.
Hope it helps someone.
For me the solution was to remove the "Line Feed" suffix ( which was not removed when I scanned the "remove all suffixes" code ), as the line feed is interpreted as CRTL-J on windows machines ... no idea why !?
( no time to research it either ;)

Localhost arduino pincontrol

I want to make a browser-controlled Arduino, that can control 2 motors. The requrements for this, is that i want to be able to click on a button on the server that the Arduino hostes, and handle that input as if there was a button connected directly on the Arduino. Is that even possible ?
I have looked at the example called TempretureWebPanel(Arduino Tutorial), but that makes no sense to me..
Can someone please tell me where to find a tutorial for this, or even better, give an example of this.
Thanks in advice.
This example shows how to control an Arduino from a PC.
It uses C# on the PC side but you could drive it with any code you want as long as it supports writing to a USB/com port.
http://playground.arduino.cc/Csharp/SerialCommsCSharp#.UzK-F_l_t2c

printk in driver

I am really new to linux module programming.
I need to some how be able to do some tweak to the ath9k driver in linux.
I finally got the compat wireless source code of ath9k to compile in ubuntu 11.04 and was trying to play around with the code.
I tried using printk to tried to get to see what happen.
First I put printk in the init.c file, the message I printed show up when I use dmesg in the terminal. However, when I tried to use the same printk in another file like rc.c it does not show up at all.
I am wondering why is that?
And is there some other way that I could some how log some information from the code similar to the fprintf. What I need is I need to extract somehow the packet header from the driver.
Thank you
Best Regards.
read about the proc fs, it's a great framework to extract data from device drivers.
once you have registered a device node as proc fs, you can read from it.
once the the read function is called, a callback function you defined is creating the output. this is an excellent way to retrieve data from device.
there are also two other methods, one is sysfs, you can google for it. and the second,
if the the device is a char device, you can implement an ioctrl function which returns the info you need.