Keil Logo

how to prepare arm cortex m-3 for Dynamic DNS (DDNS)?

Next Thread | Thread List | Previous Thread Start a Thread | Settings

Details Message
Author
Mohsen Mohseni
Posted
28-Nov-2017 14:31 GMT
Toolset
ARM
New! how to prepare arm cortex m-3 for Dynamic DNS (DDNS)?

Hi to all
I have developed a project with arm Cortex m-3 (LPC series) equipted with tcp/ip and i connected a modem router to it with CAT5 cable .When I would like to connect to my device from another city I must buy and set the Static ip address on the router and do port forwarding to access to my device.i want to send microcontroller public ip address to the web service every time the device is reset or turn on.
Does any one know how can i use Dynamic DNS in my microcontroller and give me a light on this way in oredr to decrease the price of project via removing static ip address?

Author
Andrew Neil
Posted
28-Nov-2017 16:25 GMT
Toolset
None
New! RE: how to prepare arm cortex m-3 for Dynamic DNS (DDNS)?

It has nothing to do with Cortext-M3.

You will have to get or implement the appropriate Agent for the particular DDNS service(s) you are using.

It will also require that the network allows in-bound connections.

This is why most remote monitoring applications don't have the remote device as a server!
Instead, have the remote device as a client - so it can just "call-in" to a well-known address...

Author
Mohsen Mohseni
Posted
29-Nov-2017 07:22 GMT
Toolset
ARM
New! RE: how to prepare arm cortex m-3 for Dynamic DNS (DDNS)?

In most CCTV camera the end user can monitor the camera using DDNS instead of Ip Static.
What did they do ?
Also Can you tell me how can i find my microcontroller public Ip Address in the internet?

Author
K Panook
Posted
29-Nov-2017 08:22 GMT
Toolset
ARM
New! RE: how to prepare arm cortex m-3 for Dynamic DNS (DDNS)?

yes.
i have the same question. can you post all knowledge about how the public ip address is used with cortex m3.

Author
Andrew Neil
Posted
29-Nov-2017 09:30 GMT
Toolset
None
New! RE: how the public ip address is used with cortex m3

Again, this has nothing to do with Cortex-M3 or Keil.

The whole point of the internet is that it uses standard protocols which work and are used in exactly the same way by all equipment - they do not differ or depend on what particular processor you are using.

So you need to consult standard TCP/IP networking books & resources ...

eg, http://whatismyipaddress.com/tcpip-simplified

Author
Andrew Neil
Posted
29-Nov-2017 09:23 GMT
Toolset
None
New! RE: how to prepare arm cortex m-3 for Dynamic DNS (DDNS)?

"In most CCTV camera the end user can monitor the camera using DDNS instead of Ip Static.
What did they do ?"

As I said, they will have appropriate DDNS client(s) in the camera.

Or, you are not monitoring the camera directly - but via some server/service elsewhere.

"how can i find my microcontroller public Ip Address in the internet?"

See your stack documentation for how to find the node's IP address.

If the node is behind a firewall or router, then you will have to use some external service to find its Public IP address.

eg, http://www.whatsmyip.org/

Again, this is all standard TCP/IP networking stuff - nothing to do with Keil or Cortex.

Author
K Panook
Posted
29-Nov-2017 12:05 GMT
Toolset
None
New! RE: how to prepare arm cortex m-3 for Dynamic DNS (DDNS)?

do you mean the cortex m3 is nothing to on the internet? it wont work?

Author
Chen Tang
Posted
29-Nov-2017 12:15 GMT
Toolset
None
New! RE: how to prepare arm cortex m-3 for Dynamic DNS (DDNS)?

Please read Andrew Neil's replies carefully again and try spending some time to really understand what he said.

And more importantly try to understand network theories before implementing something...

Author
Andrew Neil
Posted
29-Nov-2017 13:54 GMT
Toolset
None
New! RE: do you mean the cortex m3 is nothing to on the internet?

I have no idea what you mean by that - so I don't know if it's what I meant!

My point is that internet protocols & procedures are not dependant on the hardware details of a node.

DDNS works exactly the same way on Linux as on Windows as on any other platform.
The DDNS server neither knows nor cares what hardware a node has - it simply accepts a request from it, and replies in the specified manner.

Author
K Panook
Posted
29-Nov-2017 15:34 GMT
Toolset
None
New! RE: do you mean the cortex m3 is nothing to on the internet?

i understand you. cortex m3 works on windows and linux but not on internet. how can i make connect cortex m3 to internet?

Author
Andrew Neil
Posted
29-Nov-2017 15:44 GMT
Toolset
None
New! RE: cortex m3 works on windows and linux but not on internet

No, that's not what I said at all.

You have completely misunderstood me!

I don't know how else to explain it.

I guess there is a language barrier - can you get a teacher or colleague to help you?

Author
K Panook
Posted
29-Nov-2017 16:15 GMT
Toolset
None
New! RE: cortex m3 works on windows and linux but not on internet

anyone explain?

Author
John Linq
Posted
30-Nov-2017 01:52 GMT
Toolset
None
New! RE: cortex m3 works on windows and linux but not on internet

Let me try.

K Panook,

You have a computer, which you use to develop the Cortex-M3 firmware.

I would like to connect to my computer from another city I must buy and set the Static ip address on the router and do port forwarding to access to my computer. i want to send public ip address to the web service every time the computer is reset or turn on.

Do you know how to achieve the above goal?

It would be much easier than doing the same thing on a Cortex-M3. After you achieve the above goal, repeat the same procedure on your Cortex-M3.

Author
K Panook
Posted
30-Nov-2017 08:40 GMT
Toolset
None
New! RE: cortex m3 works on windows and linux but not on internet

hello john linq. great help. i understand you. thanks.

Author
Andrew Neil
Posted
30-Nov-2017 11:18 GMT
Toolset
None
New! Do you see what he did there?

You started with:
"I would like to connect to my device from another city I must buy and set the Static ip address on the router and do port forwarding to access to my device. i want to send microcontroller public ip address to the web service every time my device is reset or turn on."

All John did was substitute "my computer" for "my device" - giving:
"I would like to connect to my computer from another city I must buy and set the Static ip address on the router and do port forwarding to access to my computer. i want to send public ip address to the web service every time my computer is reset or turn on."

Thus illustrating my point that it doesn't matter what the device is - the process is the same for any device:
"I would like to connect to 'anything' from another city I must buy and set the Static ip address on the router and do port forwarding to access to 'anything'. i want to send microcontroller public ip address to the web service every time the 'anything' is reset or turn on."

As the saying goes,
On the internet of things, nobody knows you're a fridge.

Author
K Panook
Posted
30-Nov-2017 11:37 GMT
Toolset
None
New! RE: Do you see what he did there?

agree. thank you john linq. you give a very good explaining. when i want to connect sweet potato chips to internet i will remember anything. haha.

Author
Andrew Neil
Posted
30-Nov-2017 11:40 GMT
Toolset
None
New! RE: connect sweet potato chips to internet

Just so long as your chips have a TCP/IP stack and DDNS client ...


;-)

Author
Mohsen Mohseni
Posted
1-Dec-2017 12:28 GMT
Toolset
ARM
New! RE: cortex m3 works on windows and linux but not on internet

John you have completely changed my question. I said i developed an embedded system using LPC17xx (cortex-m3) equipted with TCP/IP and want to find its public IP address on the internet. I connect it to modem router and bought an Ip static for monitoring and control my embedded system (LPC17xx) from another city.I looking forward to find a way for connecting to my microcontroller(NOT COMPUTER) without IP STATIC .Like a DDNS for CCTV.
I read all your answers.Have you give a best and perfect guidance document for doing so?

Author
Semi-Retired Embedded Programmer
Posted
1-Dec-2017 13:00 GMT
Toolset
ARM
New! RE: cortex m3 works on windows and linux but not on internet

If you have a COMPUTER connected to the internet, how do you find the public IP address of that?

You normally don't. Why? because the computer connects to the internet via a router.

It is the router that is connected to the internet. It is the router that has the public IP address.

Frequently, any device connected to the router (on the 'home' side') uses a local IP address provided by the router.

This scheme is generally seamless when your computer makes a connection with the outside world. If you want to talk to your computer FROM the outside world, you need to specify a forwarding rule on the router. From the outside, you make a connection to the public address of the router and the router passes the traffic onwards to your computer.

So, what you do is find the public IP address of the router.

Now, as has been mentioned a number of times on this thread, replace the word COMPUTER with 'your device' or 'LPC17xx'. You should realise that you still need to know the public IP address of your router. Your device has NOTHING to do with it.

So, look in the documentation for your router and figure out how to use DDNS or whatever you think is most appropriate.

It's really VERY simple.

Author
Mohsen Mohseni
Posted
1-Dec-2017 14:02 GMT
Toolset
ARM
New! RE: cortex m3 works on windows and linux but not on internet

Thank you man this is your best answer.Thanks

Next Thread | Thread List | Previous Thread Start a Thread | Settings

  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.