I found a thread in the lvgl forums where @Lazar-Demin was talking to those guys trying to get a working build of micropython + lvgl for the omega here: lvgl forums. Unfortunately I don't know if he was successful or not and couldn't find a package anywhere for it. I'm not a c coder and would very much be interested if someone knows how to get micropython + lvgl working on the omega 2.
Best posts made by Nate
-
RE: Omega2 Dash now available!
-
RE: problems with the o2lte command
I'm also having issues controlling the gnss on this board.
Firstly, the enable / disable of o2lte doesn't seem to do anything at all. gnss is active on device boot and disable doesn't seem to stop it.
Furthermore
/etc/init.d/ugps
does seem to work as far asubus call gps info
is concerned however regardless of it's enabled or not I can always docat /dev/ttyUSB1
which the documentation implies should not work if/etc/init.d/ugps
is enabled. -
problems with the o2lte command
Hello everyone,
Checking on multiple different lte boards, I noticed that once connecting to an apn ( i tried hologram and tmobile ) turning off the data connection doesn't seem to work. Even though o2lte says it turns it off, the interface is still there, it still has an ip address and traffic is still routing out off it.
There also seems to be an issue switching from one apn to another. If I add a sim after a fresh restart, it will provision it correctly, but if I want to switch to a different sim and run the apn command again, it doesn't switch correctly.
Thanks,
Nate
-
RE: Any plans for 5GHz wifi?
@Lazar-Demin You beat me to it, I was just about to post that in response.
@crispyoz Keep in mind though we do only have USB2 so there will still be a bottleneck. -
RE: Writing python scripts for the RFID/NFC expansion
I'm just starting with the expansion and also finding it frustrating to use. But I had some comments on your thread and thought I'd share what I've figured out in the two days I've been messing with it.
I'm a security researcher and need to build a handheld, barry powered device to scan a client's employees badges to do an audit.
Me too! Specifically I do penetration testing of all sorts. I would think you'd want something with a bit more range for an engagement?
basically what i'm asking is how to control the rfid/nfc exp from inside a progra...any program: python node.js, etc.
First, you should forget there are any "tools" installed on the Omega for use with the expansion. And while the documentation is frustrating, it does tell us some useful information that would have taken us a few minutes to figure out or if you are me quite a few minutes to figure out:
The Expansion is based on the popular PN532 NFC Chip and communicates with the Omega via UART1.
- PN532 chip
- talks via UART1
# nfc-scan-device nfc-scan-device uses libnfc reboot-3483-gd1bcad0 1 NFC device(s) found: - pn532_uart:/dev/ttyS1: pn532_uart:/dev/ttyS1
- device is on /dev/ttyS1
error libnfc.driver.pn532_uart Serial port already claimed: /dev/ttyS1 nfc-mfultralight: ERROR: Error opening NFC device
- their "tools" are using the libnfc driver
Ok so to get back answering your question, to control the expansion from inside a program you have two choices:
- Find a library in the language of your choice that uses the libnfc driver and tell it to talk to a pn532 chip on /dev/ttyS1.
- Find a library in the language of your choice that can talk to the pn532 on /dev/ttyS1 directly.
OK, I figured it out. Here's a test script I wrote real quick to have a proof of concept:
import os scan = os.system("nfc-list") def scanFunc(): while 1: scan return scan print(scanFunc()) import string outfile = open("result.txt", "w") outfile.write(scan)
Even ignoring the issues with the code I probably wouldn't want to use this in any real-world scenario. Did you by chance come up with something else? And honestly for something like what you are trying to do here you could just write a shell script and save yourself the overhead of the python interpreter.
However, if you do want to write something in python, find a library that lets you use one of the above two methods I mentioned and I think you'll be much happier with the expansion. I know I was.
-
RE: Can't install TauLidarServer
You're trying to run that command inside the python interpreter in interactive mode, but you need to run it on the command line in your shell. The python command will also need to be in your path, there was a checkbox for that during install. (You may have already selected it and be good to go.)