-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Static Ethernet #42
base: master
Are you sure you want to change the base?
Static Ethernet #42
Conversation
Modified Ethernet access to use a Static IP Address, instead of DHCP. Also added error checking to all Ethernet function calls. Fixed some formatting issues.
When I compile the sketch I get the error message: but if I change the dns name as per this arduino forum post, it compiles fine. I'm going to load these changes to the odin and test it for a bit. |
Sounds good. Didn't realize that name was already taken in the code
backend, but it isn't surprising.7/16/2019 11:27 AM Jessica Hardwicke
([email protected])
When I compile the sketch I get the error
message:sketch_jul16a:111: error: 'IPAddress dns' redeclared as
different kind of symbol
/Applications/Arduino.app/Contents/Resources/Java/libraries/Ethernet/Dhcp.h:64:
error: previous declaration of '<anonymous enum> dns'
but if I change the dns name as per this
arduino forum post, it compiles fine. I'm going to load these changes to
the odin and test it for a bit.
—You
are receiving this because you authored the thread.Reply to this email
directly, view
it on GitHub, or mute
the thread.
[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "#42?email_source=notifications\u0026email_token=AAWMQZVBAAG72F2DFL3GUOLP7YHKFA5CNFSM4IANT4K2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2BXP5A#issuecomment-511932404",
"url": "#42?email_source=notifications\u0026email_token=AAWMQZVBAAG72F2DFL3GUOLP7YHKFA5CNFSM4IANT4K2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2BXP5A#issuecomment-511932404",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]
|
Something isn't working with the new code. It will send the calibration and then the first reading to the server, but nothing else. I've replicated this 3 times now, and each time the ODIn keeps running without issue but data isn't reaching the server. I updated the pi after the first attempt and that didn't seem to fix it. |
Interesting, is the ODIn writing data to the SD Card?7/17/2019 8:34
AM Jessica Hardwicke ([email protected])
Something isn't working with the new code. It will send the calibration and
then the first reading to the server, but nothing else. I've replicated this 3
times now, and each time the ODIn keeps running without issue but data isn't
reaching the server. I updated the pi after the first attempt and that didn't
seem to fix it.
—You
are receiving this because you authored the thread.Reply to this email
directly, view
it on GitHub, or mute
the thread.
[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "#42?email_source=notifications\u0026email_token=AAWMQZQ3V2CK4TP2ZMYJAZTP743X7A5CNFSM4IANT4K2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2EZLTI#issuecomment-512333261",
"url": "#42?email_source=notifications\u0026email_token=AAWMQZQ3V2CK4TP2ZMYJAZTP743X7A5CNFSM4IANT4K2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2EZLTI#issuecomment-512333261",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]
|
Yep! SD card readings look fine. |
So the only issue is that Server Data stops after calibration. I'll take a
look at the code when I get a chance to.7/17/2019 9:34 AM Jessica
Hardwicke ([email protected])
Yep! SD card readings look fine.
—You
are receiving this because you authored the thread.Reply to this email
directly, view
it on GitHub, or mute
the thread.
[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "#42?email_source=notifications\u0026email_token=AAWMQZQ3JFIRF62GPHWQ7TTP75CZHA5CNFSM4IANT4K2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2E7KRY#issuecomment-512357703",
"url": "#42?email_source=notifications\u0026email_token=AAWMQZQ3JFIRF62GPHWQ7TTP75CZHA5CNFSM4IANT4K2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD2E7KRY#issuecomment-512357703",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]
|
Are the packets getting to the Pi? E.g. have you tried doing |
@dacb I don't have tcpdump on the pi but could add it. Does
|
Not really seeing what might be causing the problem in the code. |
Here's the serial output for a run I just started. This starts with the message after the calibration and first readings are taken. I confirmed that these both were sent to the file on the server.
Here's the serial output at the end of the 2nd reading is taken, 10 minutes later:
According to the server's timestamps, this data should have been received around 11:14am, and at the time of writing I'm still not seeing anything. Here are the results of 'netstat -suna' on the pi:
|
Ok, so the system isn't reporting that there are any errors when sending the Ethernet packets to the Server. Before we continue the investigation, could you re-load the DHCP code that I had made previously, and double-check that it is only when running this Static-IP code that the Server data is missing? |
Okay I just uploaded the code from branch jsebrof-patch-1 and ran it without issue. Data gets sent to the server and continues to as expected. |
Thanks for double-checking. This clearly indicates that the problem is with the Static-IP code on the Arduino, and not the Server. I'll look into it some more. |
Modified Ethernet access to use a Static IP Address, instead of DHCP. Also added error checking to all Ethernet function calls. Fixed some formatting issues.