Sponsored Content
Top Forums Programming Basic Arduino UNO Bluetooth Testing with the BLE 4.0 (CC2541, MLT-BT04 IC) Post 303043386 by Neo on Monday 27th of January 2020 08:22:00 AM
Old 01-27-2020
Update:

Have downloaded, installed and tried a number of python git repos for BLE and macOS. Could not get any of around four python BLE repos to work as I had expected or hoped "out of the box" (for example, no discovery or device listing worked) so I'm going to move this little HM-10 BLE module into temporary storage for now and move on to testing a different Arduino module / shield.

I may return to the HM-10 BLE module if I want to build a BLE app to control some relays with my iPhone, since I was happy with how ArduinoBlue worked OOTB. Unfortunately, ArduinoBlue development seems to be "dead" at the moment and the original developer's email bounces back "account deleted" .

Caveat, I deleted xcode off my mac months ago, so you may have better luck of you use a python wrapper over the xcode BLE libs.

My attention span is now very low with many Arduino modules and shields waiting, in dark, unopened, static resistant packages, to be freed from the drawer, wired up and coded. Smilie
 

7 More Discussions You Might Find Interesting

1. OS X (Apple)

Semi-Automatic Arduino Detection.

I am working on a semi-auto detection idea for Arduino for the Scope project. It does require a little user intervention but minimal. It works by just responding to two on screen prompts to unplug and plug Arduino into a USB port. There are two versions and both work perfectly well and give... (3 Replies)
Discussion started by: wisecracker
3 Replies

2. Programming

Very Basic Arduino Uno Board Testing

A very simple Arduino board test... LOL Here is some very easy code to test a cheap Arduino board I just got from China via Aliexpress. I am still waiting on a about 30 more orders from Aliexpress for more Arduino stuff. This was the first order which made it here. /* Arduino test-code... (18 Replies)
Discussion started by: Neo
18 Replies

3. Programming

Arduino-cli - Uploading to Unknown Chinese Arduino Boards using the Arduino Command Line Interface

In my further exploration of Arduino, today I decided to install the arduino-cli on my mac today. https://github.com/arduino/arduino-cli I followed the instructions for macOS but when I got to this part: arduino-cli board list I got the dreaded "Unknown" Fully Qualified Board Name... (1 Reply)
Discussion started by: Neo
1 Replies

4. Programming

More Arduino Stuff...

HI all... (Apologies for any typos.) To add to Neo's Arduino subject matter I have decided to upload this in ".zip" format. Ignore "*.info" files these are AMIGA icons only and also the "HAM" drawer as these are photos in ancient AMIGA HAM modes. I have noticed that there are current... (6 Replies)
Discussion started by: wisecracker
6 Replies

5. Programming

Chinese Arduino UNO Clones - The Wavgat versus the generic UNO R3 Clone - The Winner Is?

Waiting for more fun Ardunio parts from AliExpress, I decided to test two cheap Chinese Arduino UNO clones. The Arduino UNO R3 (CH340G) MEGA328P The Wavgat UNO R3 (CH340G) MEGA328P Both of these Chinese Ardunio clones sell for about $3 USD, delivered to your door. The bottom line is... (0 Replies)
Discussion started by: Neo
0 Replies

6. Programming

Arduino UNIX Time - Syncing Computer UNIX Time to Arduino Time with Python

Just finished a quick Python script to send the current unix time over to the Arduino from macOS, so in the absence of GPS or some other way to get the unix timestamp (epoch time) to the Arduino, I can get my macOS and Arduino UNO synced to within a second. Normally, when the Arduino starts... (9 Replies)
Discussion started by: Neo
9 Replies

7. Programming

Arduino Project: iPhone to HM-10 BLE to NB-IoT Shield to NB-IoT Network to Internet to Linux Server

This post describes a "work in progress" project I started today. Here is the High Level Overview: Currently, this project sits on my desk as an Arduino UNO (on the bottom), an NB-IoT Shield (sandwiched in the middle), a Sensor Shield (on top) with a HM-10 BLE Module (in the little... (13 Replies)
Discussion started by: Neo
13 Replies
REGINA-PYTHON(1)						The Regina Handbook						  REGINA-PYTHON(1)

NAME
regina-python - Regina's command-line Python interface SYNOPSIS
regina-python [ -q, --quiet | -v, --verbose ] [ -n, --nolibs ] [ -a, --noautoimport ] regina-python [ -q, --quiet | -v, --verbose ] [ -n, --nolibs ] [ -a, --noautoimport ] [ -i, --interactive ] script [ script-args ] DESCRIPTION
Regina is a software package for studying 3-manifold triangulations and normal surfaces. Other key features include angle structures, cen- sus enumeration, combinatorial recognition of triangulations, and high-level tasks such as 3-sphere recognition and connected sum decompo- sition. Regina comes with a full graphical user interface, and also offers Python bindings and a low-level C++ programming interface. This command starts an interactive Python session for Regina. This will be a command-line Python session, with direct text input/output and no graphical user interface. All of the objects, clases and methods from Regina's mathematical engine will be made available through the module regina, which will be imported on startup (effectively running import regina). Moreover, unless the option --noautoimport is passed, all of Regina's objects, classes and methods will be imported directly into the current namespace (effectively running from regina import *). If you have frequently-used code, you can store it in a user library. At the beginning of each Python session, Regina will automatically run all of the code in all of your user libraries. The list of user libraries will be read from the text file ~/.regina-libs, which should contain one library filename per line. Blank lines and lines beginning with a hash (#) will be ignored. You can also configure this list of libraries through the graphical user interface: see the Python options page. Instead of starting an interactive Python session, you can pass a Python script (with arguments if desired). In this case Regina will run the script (after first importing the regina module and loading any user libraries). If you pass --interactive, Regina will leave you at a Python prompt once the script finishes; otherwise it will exit Python and return you to the command line. OPTIONS
-q --quiet Start in quiet mode. No output will be produced except for serious errors. In particular, warnings will be suppressed. This is equivalent to setting the environment variable REGINA_VERBOSITY=0. -v --verbose Start in verbose mode. Additional diagnostic information will be output. This is equivalent to setting the environment variable REGINA_VERBOSITY=2. -n --nolibs Do not load any user libraries when the session starts. User libraries are discussed in the overview above. -a --noautoimport Still import the regina module, but do not automatically import all of Regina's objects, classes and methods into the current names- pace (that is, do not run from regina import *). This means that (for example) the main 3-manifold triangulation class must be accessed as regina.NTriangulation, not just NTriangulation. -i --interactive Run the script in interactive mode. After executing the given script, Regina will leave you in the Python interpreter to run your own additional commands. This option is only available when a script is passed. If no script is passed, regina-python will always start in interactive mode. ENVIRONMENT VARIABLES
The following environment variables influence the behaviour of this program. Each variable can also be set in the local configuration file ~/.regina-python using a line of the form option=value. Environment variables will take precedence over values in the configuration file. REGINA_VERBOSITY Specifies how much output should be generated. Recognised values are: 0 Display errors only; this is equivalent to passing the option --quiet. 1 Display errors and warnings; this is the default. 2 Display errors, warnings and diagnostic output; this is equivalent to passing the option --verbose. REGINA_PYTHON The command used to start the Python interpreter. By default, Regina tries to run the same version of Python that it was built against. In general you should use the same version of Python that Regina was built against; otherwise Python might not be able to load the regina module. In normal situations you should never need to set this option yourself. REGINA_HOME The directory in which Regina's data files are installed. This should be the directory containing the internal/ subdirectory, the examples/ subdirectory and so on. If you are running Regina directly out of the source tree, this defaults to the top-level source directory. If you are running Regina from a proper installation, this defaults to the corresponding installation directory. In normal situations you should never need to set this option yourself. Warning: When running from a proper installation, the default REGINA_HOME is hard-wired into the startup script (it is set at com- pile time). If you install Regina into one directory but then move it by hand into another, the default REGINA_HOME will be incor- rect. REGINA_PYLIBDIR The directory containing the Python module regina.so. If you are running Regina directly out of the source tree, this defaults to a directory within this source tree. If you are running Regina from a proper installation, this defaults to the corresponding installation directory. In normal situations you should never need to set this option yourself. Warning: Like REGINA_HOME, when running from a proper installation the default REGINA_PYLIBDIR is hard-wired into the startup script. If you install Regina into one directory but then move it by hand into another, the default REGINA_PYLIBDIR will be incor- rect. MACOS X USERS
If you downloaded a drag-and-drop app bundle, this utility is shipped inside it. If you dragged Regina to the main Applications folder, you can run it as /Applications/Regina.app/Contents/MacOS/regconcat. WINDOWS USERS
The command regina-python is not available under Windows. However, you can still use Python scripting in Regina's graphical user inter- face, by opening a graphical Python console or using script packets. SEE ALSO
regina-gui. Regina comes with thorough API documentation, which describes in detail all of the objects, classes and methods that Regina makes available to Python. You can access this documentation via Help->Python API Reference in the graphical user interface, or read it online at http://regina.sourceforge.net/engine-docs/. AUTHOR
Many people have been involved in the development of Regina; see the users' handbook for a full list of credits. 28 May 2012 REGINA-PYTHON(1)
All times are GMT -4. The time now is 01:44 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy