AltSoftSerial uses these pins on the Arduino UNO, according to AltSoftSerial_Boards.h (included with the AIS NB-IoT libs):
My BLE module sketch (taken from an ArduinoBlue example sketch) uses pins:
So, not yet more more than an Arduino noob, my first guess is that I should move the Arduino UNO pins for the HM-10 BLE module to some supported SoftwareSerial pins which are different than the AltSoftSerial pins (8,9) above.
Seems the conflict is pin 8 being used by both SoftwareSerial (used in the BLE code) and AltSoftSerial (used in the NB-IoT code).
Will try different pins tomorrow and see how far that get me.
I just moved away from a T3 line back to a dial up I just wanted to know would a P200 with 64meg and a 4 gig hard drive be ok for a linux server for an additional 3 pcs all running win98. I will be dialing into an isp using a 56k v90 modem.
Any support or help will be great. (3 Replies)
Hello all
this is general question , if i have web server installed in my local pc and i have client that connecting to that web server
can i force it always to go via the internet network ?
the reason im asking is .. that im noticed when i close my internet connection i still can connect to my... (2 Replies)
hi i have linux server connected to internet through a switch/router. i have opened a port on the router and i am able to connect to the server if iptables is off. but when it is on i cant.
i want to create a rule in iptables so that it accepts packets coming from a particular datacard. it... (7 Replies)
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)
My favorite projects are always related to the "latest" tech in command and control, networking and network communications. This Elecrow GSM/GPRS/EDGE SIM5360E 3G Shield seems to be the "latest and the greatest" as far as 3G and GPS, as far as I can see so far, but I has it drawbacks for sure.... (6 Replies)
Today I received my NB-IoT Arduino Shield for AIS (Thailand). Here is a "pinout" photo of the shield.
My shield looks just like the one above, for the most part. I'll post another photo of the actual device later.
When I received the shield in the mail, I went immediately to a local... (8 Replies)
Normally I have very good experiences buying from AliExpress, but in this case with Elecrow, I'm disappointed.
After confirming with Elecrow on AliExpress that their Elecrow GSM/GPRS/EDGE SIM5360E 3G Shield for Arduino would work with 3G SIM cards in Thailand, I purchased one. My plan was to... (1 Reply)
Here is a sketch to do basic testing for the Arduino UNO and the MLT-BT04.
This BLE module works with IOS (iPhone) and I'll add some details on my IOS testing with an iPhone in a follow-up post.
For now, here is the basic BLE (HM-10) sketch for the Arduino UNO:
/*
Arduino test-code... (7 Replies)
With a little bit of work, was able to build a nice "Wuhan Coronavirus Status" app using MQTT and the IoT-OnOff app. More on this technique here:
ESP32 (ESP-WROOM-32) as an MQTT Client Subscribed to Linux Server Load Average Messages
The result turned out nice, I think. I like the look and... (10 Replies)
Normally I'm not into kits, but I thought my wife would enjoy this one since she is a big fan of robots and droids on StarWars!
We are done with the basic mechanical assembly and starting on the electronics assembly today.
The robot's "brain" consists of three levels. The Arduino board, on... (5 Replies)
Discussion started by: Neo
5 Replies
LEARN ABOUT FREEBSD
gpio_open_device
GPIO(3) BSD Library Functions Manual GPIO(3)NAME
gpio_open, gpio_close -- library to handle GPIO pins
LIBRARY
library ``libgpio''
SYNOPSIS
#include <libgpio.h>
gpio_handle_t
gpio_open(unsigned int unit);
gpio_handle_t
gpio_open_device(const char *device);
void
gpio_close(gpio_handle_t handle);
int
gpio_pin_list(gpio_handle_t handle, gpio_config_t **pcfgs);
int
gpio_pin_config(gpio_handle_t handle, gpio_config *cfg);
int
gpio_pin_set_flags(gpio_handle_t handle, gpio_config_t *cfg);
gpio_value_t
gpio_pin_get(gpio_handle_t handle, gpio_pin_t pin);
int
gpio_pin_set(gpio_handle_t handle, gpio_pin_t pin, gpio_value_t value);
int
gpio_pin_toggle(gpio_handle_t handle, gpio_pin_t pin);
int
gpio_pin_low(gpio_handle_t handle, gpio_pin_t pin);
int
gpio_pin_high(gpio_handle_t handle, gpio_pin_t pin);
int
gpio_pin_input(gpio_handle_t handle, gpio_pin_t pin);
int
gpio_pin_output(gpio_handle_t handle, gpio_pin_t pin);
int
gpio_pin_opendrain(gpio_handle_t handle, gpio_pin_t pin);
int
gpio_pin_pushpull(gpio_handle_t handle, gpio_pin_t pin);
int
gpio_pin_tristate(gpio_handle_t handle, gpio_pin_t pin);
int
gpio_pin_pullup(gpio_handle_t handle, gpio_pin_t pin);
int
gpio_pin_pulldown(gpio_handle_t handle, gpio_pin_t pin);
int
gpio_pin_invin(gpio_handle_t handle, gpio_pin_t pin);
int
gpio_pin_invout(gpio_handle_t handle, gpio_pin_t pin);
int
gpio_pin_pulsate(gpio_handle_t handle, gpio_pin_t pin);
DESCRIPTION
The libgpio library provides an interface to configure GPIO pins. The library operates with a gpio_handle_t opaque type which can be created
with gpio_open() or gpio_open_device(). When no more GPIO operations are needed, this handle can be destroyed with gpio_close().
To get a list of all available pins, one can call gpio_pin_list(). This function takes a pointer to a gpio_config_t which is dynamically
allocated. This pointer should be freed with free(3) when it's no longer necessary.
The function gpio_pin_config() retrieves the current configuration of a pin. The pin number should be passed in via the g_pin variable which
is part of the gpio_config_t structure.
The function gpio_pin_set_flags() configures a pin with the flags passed in by the gpio_config_t structure. The pin number should also be
passed in through the g_pin variable. All other structure members will be ignored by this function. The list of flags can be found in
/usr/include/sys/gpio.h.
The get or set the state of a GPIO pin, the functions gpio_pin_get() and gpio_pin_set() are available, respectively. To toggle the state,
use gpio_pin_toggle().
The functions gpio_pin_low() and gpio_pin_high() are wrappers around gpio_pin_set().
The functions gpio_pin_input(), gpio_pin_output(), gpio_pin_opendrain(), gpio_pin_pushpull(), gpio_pin_tristate(), gpio_pin_pullup(),
gpio_pin_pulldown(), gpio_pin_invin(), gpio_pin_invout() and gpio_pin_pulsate() are wrappers around gpio_pin_set_flags().
EXAMPLES
The following example shows how to configure pin 16 as output and then drive it high:
#include <err.h>
#include <libgpio.h>
gpio_handle_t handle;
handle = gpio_open(0);
if (handle == GPIO_HANDLE_INVALID)
err(1, "gpio_open failed");
gpio_pin_output(handle, 16);
gpio_pin_high(handle, 16);
gpio_close(handle);
The following example shows how to get a configuration of a pin:
gpio_config_t cfg;
cfg.g_pin = 32;
gpio_pin_config(handle, &cfg);
The structure will contain the name of the pin and its flags.
SEE ALSO gpiobus(4), gpioctl(8)HISTORY
The libgpio library first appeared in FreeBSD 11.0.
AUTHORS
The libgpio library was implemented by Rui Paulo <rpaulo@FreeBSD.org>.
BSD November 17, 2014 BSD