Sponsored Content
Top Forums Programming Arduino Project: iPhone to HM-10 BLE to NB-IoT Shield to NB-IoT Network to Internet to Linux Server Post 303043467 by Neo on Wednesday 29th of January 2020 08:15:44 AM
Old 01-29-2020
Update:

I've posted the high level overview, the schematic, links, a lot of pictures, screenshots, discussion, and all my testing /working code (for testing purposes only).

So, for now I'm going to call this Arduino UNO project / proof-of-concept "good enough" and move on to testing a different Ardunio module or shield.

If you like this demo or find anything useful, I'm happy to hear about it. Please consider this demo "like an online notebook" of my testing and my results. Raw, unpolished, the "real deal", and no artificial sweeteners added Smilie I tend to have a low attention span, so when I get a proof-of-concept like this up and running (and prove it works), even if the final results are not "polished", I then want to "call it good enough" and quickly move on to the next project.

If you want to improve the code and post your code back here, or elsewhere, that is even better. Share and share alike.

Either way, you are free to share and use any or all the the content in this test / demo (not designed nor created for production code); and so for now, this concludes:

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

Thanks!
These 2 Users Gave Thanks to Neo For This Post:
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Linux for an internet server to an ISP

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)
Discussion started by: izrailov
3 Replies

2. IP Networking

can i force connecting to local web server via internet network ?

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)
Discussion started by: umen
2 Replies

3. IP Networking

Can not access Linux server over the Internet

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)
Discussion started by: u.n.i.x
7 Replies

4. 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

5. Programming

Arduino Project with NB-IoT (3GPP) and LoRa / LoRaWAN

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)
Discussion started by: Neo
6 Replies

6. Programming

NB-IoT Arduino Shield from AIS (Thailand) First Impressions

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)
Discussion started by: Neo
8 Replies

7. Programming

Elecrow GSM/GPRS/EDGE SIM5360E 3G Shield for Arduino

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)
Discussion started by: Neo
1 Replies

8. Programming

Basic Arduino UNO Bluetooth Testing with the BLE 4.0 (CC2541, MLT-BT04 IC)

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)
Discussion started by: Neo
7 Replies

9. Programming

Wuhan Coronavirus Status App for China - Rapid Prototype using MQTT and the IoT OnOff IOS App

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)
Discussion started by: Neo
10 Replies

10. Hardware

Arduino Robot Tank Project

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
Class::ReturnValue(3pm) 				User Contributed Perl Documentation				   Class::ReturnValue(3pm)

NAME
Class::ReturnValue - A return-value object that lets you treat it as as a boolean, array or object DESCRIPTION
Class::ReturnValue is a "clever" return value object that can allow code calling your routine to expect: a boolean value (did it fail) or a list (what are the return values) EXAMPLE
sub demo { my $value = shift; my $ret = Class::ReturnValue->new(); $ret->as_array('0', 'No results found'); unless($value) { $ret->as_error(errno => '1', message => "You didn't supply a parameter.", do_backtrace => 1); } return($ret->return_value); } if (demo('foo')){ print "the routine succeeded with one parameter"; } if (demo()) { print "The routine succeeded with 0 paramters. shouldn't happen"; } else { print "The routine failed with 0 parameters (as it should)."; } my $return = demo(); if ($return) { print "The routine succeeded with 0 paramters. shouldn't happen"; } else { print "The routine failed with 0 parameters (as it should). ". "Stack trace: ". $return->backtrace; } my @return3 = demo('foo'); print "The routine got ".join(',',@return3). "when asking for demo's results as an array"; my $return2 = demo('foo'); unless ($return2) { print "The routine failed with a parameter. shouldn't happen.". "Stack trace: ". $return2->backtrace; } my @return2_array = @{$return2}; # TODO: does this work my @return2_array2 = $return2->as_array; METHODS
new Instantiate a new Class::ReturnValue object as_array Return the 'as_array' attribute of this object as an array. as_array [ARRAY] If $self is called in an array context, returns the array specified in ARRAY as_error HASH Turns this return-value object into an error return object. TAkes three parameters: message do_backtrace errno 'message' is a human readable error message explaining what's going on 'do_backtrace' is a boolean. If it's true, a carp-style backtrace will be stored in $self->{'backtrace'}. It defaults to true errno and message default to undef. errno _must_ be specified. It's a numeric error number. Any true integer value will cause the object to evaluate to false in a scalar context. At first, this may look a bit counterintuitive, but it means that you can have error codes and still allow simple use of your functions in a style like this: if ($obj->do_something) { print "Yay! it worked"; } else { print "Sorry. there's been an error."; } as well as more complex use like this: my $retval = $obj->do_something; if ($retval) { print "Yay. we did something "; my ($foo, $bar, $baz) = @{$retval}; my $human_readable_return = $retval; } else { if ($retval->errno == 20) { die "Failed with error 20 (Not enough monkeys)."; } else { die $retval->backtrace; # Die and print out a backtrace } } errno Returns the errno if there's been an error. Otherwise, return undef error_message If there's been an error return the error message. backtrace If there's been an error and we asked for a backtrace, return the backtrace. Otherwise, return undef. error_condition If there's been an error, return undef. Otherwise return 1 AUTHOR
Jesse Vincent <jesse@bestpractical.com> BUGS
This module has, as yet, not been used in production code. I thing it should work, but have never benchmarked it. I have not yet used it extensively, though I do plan to in the not-too-distant future. If you have questions or comments, please write me. If you need to report a bug, please send mail to <bug-class-returnvalue@rt.cpan.org> or report your error on the web at http://rt.cpan.org/ COPYRIGHT
Copyright (c) 2002,2003,2005,2007 Jesse Vincent <jesse@bestpractical.com> You may use, modify, fold, spindle or mutilate this module under the same terms as perl itself. SEE ALSO
Class::ReturnValue isn't an exception handler. If it doesn't do what you want, you might want look at one of the exception handlers below: Error, Exception, Exceptions, Exceptions::Class You might also want to look at Contextual::Return, another implementation of the same concept as this module. perl v5.8.8 2007-08-29 Class::ReturnValue(3pm)
All times are GMT -4. The time now is 06:01 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy