Home/Support/Support Forum/how to connect digi cloud using custom firmware
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

how to connect digi cloud using custom firmware

0 votes
Hi,

I would like to know how to connect digi cloud using custom firmware (bare metal code).
I am using TI MSP430 with serial to ethernet connector.
I am not using any RTOS or linux based platform.

Thanks
asked Sep 3, 2012 in Device Manager by dev0nDigi New to the Community (4 points)

Please log in or register to answer this question.

8 Answers

0 votes
Hi,

You could utilize the the "Simple HTTP Device Interface". This is a simple way to push up files using HTTP. No special iDigi code needed.

See Appendix D of the Web Services Programmers Guide. This Doc is available from the Help and Downloads link in the upper right corner of the screen when you login to iDigi.

I hope this helps.
answered Sep 5, 2012 by jrp2 New to the Community (3 points)
0 votes
There is also a new package out called 'idigi connector' which is a more direct non-HTTP method to add non-Digi devices to iDigi. For example, your Linux workstation, Andriod device, or a freescale/Intel micro-processor can be an idigi device.

http://www.idigi.com/idigiconnector/
answered Sep 5, 2012 by lynnl Veteran of the Digi Community (1,047 points)
0 votes
you are correct,
but i have to port entire embedded code.
i am using serial to ethernet converter, i have to send only tcp frames...
answered Sep 6, 2012 by dev0nDigi New to the Community (4 points)
0 votes
@jrp2,

I don't have any idea about web services...
thanks for help...
my main aim is to upload text file with data in it...
can you please provide me example.

Vendor id: 0x0ABCD01 (dummy id).
answered Sep 6, 2012 by dev0nDigi New to the Community (4 points)
0 votes
from a non-digi device if you need to upload data to iDigi "iDigi_Connector" is a must. porting the code will help i suppose
answered Sep 6, 2012 by bobthomas13 Seasoned Professional (182 points)
0 votes
@bobthomas13,

We don't have rtos or an embedded os.
it's a bare metal code,
and porting requires lot of OS related facilities.
i have serial to ethernet converter for communication.
answered Sep 6, 2012 by dev0nDigi New to the Community (4 points)
0 votes
Quote:
@jrp2,

I don't have any idea about web services...
thanks for help...
my main aim is to upload text file with data in it...
can you please provide me example.

****

Do not let "Web Services" scare you. It is really just moving a file using the HTTP protocol, POST operation.

If you look at the end of Appendix D you will see a python example. What you will need to do is implement an HTTP POST in your bare metal code. I am not much of a programmer, but you should be able to find examples for your environment (in C or whatever).
answered Sep 7, 2012 by jrp2 New to the Community (3 points)
0 votes
@jrp2,


Thanks for reply,

I understood http header procedure..
but problem is I can't keep persistent log-in...
since it's a bare metal code and I am sending tcp headers I don't have mechanism to cache SESSIONS and COOKIES.
..
do have any idea about keeping persistent log-in and upload data.
answered Sep 10, 2012 by dev0nDigi New to the Community (4 points)
...