Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
neOCampus-arduino
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GIS-neOCampus
neOSensor
neOCampus-arduino
Commits
abad8f7f
Commit
abad8f7f
authored
3 years ago
by
thiebolt
Browse files
Options
Downloads
Patches
Plain Diff
extended deploy script with libraries extensions now automatically copied
parent
b38d1835
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
README.md
+8
-5
8 additions, 5 deletions
README.md
arduinoIDE_esp32_boards/local_deploy.sh
+28
-0
28 additions, 0 deletions
arduinoIDE_esp32_boards/local_deploy.sh
deploy.sh
+10
-1
10 additions, 1 deletion
deploy.sh
neosensor/neosensor.ino
+1
-0
1 addition, 0 deletions
neosensor/neosensor.ino
with
47 additions
and
6 deletions
README.md
+
8
−
5
View file @
abad8f7f
...
@@ -11,6 +11,9 @@ All this work was undertaken at Université Toulouse 3 / IRIT laboratory in the
...
@@ -11,6 +11,9 @@ All this work was undertaken at Université Toulouse 3 / IRIT laboratory in the


## NEWS ##
## NEWS ##
*
**[Aug.21]**
added support for digital inputs (PIR & switches)
introduced the cooldown approach and data integration
... means that we'll only send data when they differ from the previously sent
*
**[Jun.21]**
added KiCad PCB for LoRaWAN V2 (Heltec CubeCell)
*
**[Jun.21]**
added KiCad PCB for LoRaWAN V2 (Heltec CubeCell)
*
**[Apr.21]**
added support for 3 NTP servers + NTP from DHCP to lwip. Have a look to
`arduinoIDE_esp32_boards/README.md`
*
**[Apr.21]**
added support for 3 NTP servers + NTP from DHCP to lwip. Have a look to
`arduinoIDE_esp32_boards/README.md`
added KiCad PCB for neOSensor v5.1 (ESP32 based)
added KiCad PCB for neOSensor v5.1 (ESP32 based)
...
@@ -33,11 +36,11 @@ The board features four specific sensors able to measure NO2, CO, CH20, NO2 alte
...
@@ -33,11 +36,11 @@ The board features four specific sensors able to measure NO2, CO, CH20, NO2 alte
## Getting started ##
## Getting started ##
First of all, you ought to install esp32, esp8266 or CubeCell support in your Arduino IDE.
First of all, you ought to install esp32, esp8266 or CubeCell support in your Arduino IDE.
| Device | Arduino Board Manager json file |
| Device | Arduino Board Manager json file
|
|----------|---------------------------------------------------------------------------------------------|
|----------|---------------------------------------------------------------------------------------------
---------------
|
| esp8266 | https://arduino.esp8266.com/stable/package_esp8266com_index.json |
| esp8266 | https://arduino.esp8266.com/stable/package_esp8266com_index.json
|
| esp32 | https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json |
| esp32 | https://raw.githubusercontent.com/espressif/arduino-esp32/gh-pages/package_esp32_index.json
|
| CubeCell | https://
resource.heltec.cn
/download/package_CubeCell_index.json
|
| CubeCell | https://
github.com/HelTecAutomation/CubeCell-Arduino/releases
/download/
V1.3.0/
package_CubeCell_index.json |
Then, run script
`./deploy.sh`
and boards will get added to your Arduino boards list :)
Then, run script
`./deploy.sh`
and boards will get added to your Arduino boards list :)
...
...
This diff is collapsed.
Click to expand it.
arduinoIDE_esp32_boards/local_deploy.sh
0 → 100755
+
28
−
0
View file @
abad8f7f
#!/bin/bash
#
# neOCampus operation
#
# Deploying specific settings for board
#
# F.Thiebolt aug.21 initial release
#
#set -x
# checks
[
$#
-lt
1
]
&&
{
echo
-e
"
\n
###ERROR missing base dir parameter !"
>
&2
;
exit
1
;
}
[
-d
$1
]
||
{
echo
-e
"
\n
###ERROR non existing directory '
$1
'!"
>
&2
;
exit
1
;
}
echo
-e
"Copying additional board files ..."
# copying files
cp
-af
opt.h
$1
/include/lwip/lwip/
[
$?
-ne
0
]
&&
{
echo
-e
"
\n
###ERROR copying some files to '
$1
/include/lwip/lwip/'"
>
&2
;
exit
1
;
}
chmod
a+r
$1
/include/lwip/lwip/opt.h
cp
-af
*
.a
$1
/lib/
[
$?
-ne
0
]
&&
{
echo
-e
"
\n
###ERROR copying some files to '
$1
/lib/'"
>
&2
;
exit
1
;
}
chmod
a+r
$1
/lib/
*
.a
#set +x
This diff is collapsed.
Click to expand it.
deploy.sh
+
10
−
1
View file @
abad8f7f
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
# Global defs
# Global defs
ESP32_REV
=
${
ESP32_REV
:-
"1.0.6"
}
ESP32_REV
=
${
ESP32_REV
:-
"1.0.6"
}
ESP8266_REV
=
${
ESP8266_REV
:-
"2.7.1"
}
ESP8266_REV
=
${
ESP8266_REV
:-
"2.7.1"
}
CUBECELL_REV
=
${
CUBECELL_REV
:-
"1.
2
.0"
}
CUBECELL_REV
=
${
CUBECELL_REV
:-
"1.
3
.0"
}
#
#
...
@@ -79,6 +79,15 @@ function boards_install() {
...
@@ -79,6 +79,15 @@ function boards_install() {
[
$?
-ne
0
]
&&
{
echo
-e
"
\n
### ERROR while copying '
${
local_file
}
' file to '
${
SDK_DIR
}
' directory ... aborting!"
>
&2
;
exit
1
;
}
[
$?
-ne
0
]
&&
{
echo
-e
"
\n
### ERROR while copying '
${
local_file
}
' file to '
${
SDK_DIR
}
' directory ... aborting!"
>
&2
;
exit
1
;
}
echo
-e
"
\t
successfully installed local file '
${
_local_file
}
'"
echo
-e
"
\t
successfully installed local file '
${
_local_file
}
'"
done
done
#
# execute local_deploy script if any
if
[
-x
${
SRC_DIR
}
/local_deploy.sh
]
;
then
echo
-e
"# execute local_deploy script #"
echo
-e
"# #"
(
cd
${
SRC_DIR
}
;
source
local_deploy.sh
${
SDK_DIR
}
/tools/sdk
;
)
fi
echo
-e
"# #"
echo
-e
"# #"
echo
-e
"# -------------------------------------------------------- #"
echo
-e
"# -------------------------------------------------------- #"
...
...
This diff is collapsed.
Click to expand it.
neosensor/neosensor.ino
+
1
−
0
View file @
abad8f7f
...
@@ -975,6 +975,7 @@ void setup() {
...
@@ -975,6 +975,7 @@ void setup() {
_known
=
true
;
_known
=
true
;
}
}
// add test for others modules ...
// add test for others modules ...
// did the i2c deice has been identified ?
// did the i2c deice has been identified ?
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment