EmbeddedRelated.com
Forums

RCM5600W serial-to-wifi sample program

Started by Joanna May 20, 2011
Hi,

Can Dynamic C program in such a way that the embedded system RCM5600W can send data to any PC within the same subnet???

Did u know any coding can transmit data from the embedded system to the laptop???

I did search online but Dynamic C keep giving me errors.

--- In r..., "Joanna" wrote:
>
> Hi,
>
> Can Dynamic C program in such a way that the embedded system RCM5600W can send data to any PC within the same subnet???
>
> Did u know any coding can transmit data from the embedded system to the laptop???
>
> I did search online but Dynamic C keep giving me errors.
>

You could certainly send messages to other PC's on the network using the TCP/UDP functions. You just need to have appropriate software or services listening on the receiving systems.

This is fairly generic stuff, I suspect I'm missing something about your application, can you be a little more specific?

Hi Joanna,

Yes, if the RCM5600W is on the same subnet it can send data to any PC on the
network. You can also use a cross over cable and connect direct using static
IP's.

You will need software running on the PC to listen for the data.

If you use UDP then your RCM5600W can simply send UDP messages to either a
fixed IP address or send it as a broadcast message. By sending a broadcast,
any machine on the same subnet will see this message.

The only downside to UDP is that it there is no handshake so you have no way
to know if the message was delivered or not. This is good for sending out
data that is not critical such as temperature, time etc. It is not ideal if
you wish to record every bit of data sent out.

TCP connections on the other hand, allow your RCM5600W to confirm a
connection before sending the data. Depending on how you buffer and write
the data, you don't lose anything from the RCM5600W to the PC.

We need a little more detail about what it is you are looking to send and
what your problems are?

You also mention you have errors. Can you explain a little more about what
these are?

Dave...
---
Very funny Scotty, now beam down my clothes!!!
---

From: r... [mailto:r...] On
Behalf Of Joanna
Sent: 20 May 2011 10:01
To: r...
Subject: [rabbit-semi] RCM5600W serial-to-wifi sample program

Hi,

Can Dynamic C program in such a way that the embedded system RCM5600W can
send data to any PC within the same subnet???

Did u know any coding can transmit data from the embedded system to the
laptop???

I did search online but Dynamic C keep giving me errors.
Hi Dave and all,

The coding attached. 

My main purpose of this project is to get data from sensors like humanity temperature and send out to all the laptop or PC.

My IP address 10.10.10.52 for the embedded system.
Using the range of IP 10.10.10.0 to 10.10.10.255

Any advise?
  
Regards:
Joanna Ng

________________________________
From: Dave McLaughlin
To: r...
Sent: Friday, 20 May 2011 1:46 PM
Subject: RE: [rabbit-semi] RCM5600W serial-to-wifi sample program
 
Hi Joanna,
 
Yes, if the RCM5600W is on the same subnet it can send data to any PC on the network. You can also use a cross over cable and connect direct using static IP’s.
 
You will need software running on the PC to listen for the data.
 
If you use UDP then your RCM5600W can simply send UDP messages to either a fixed IP address or send it as a broadcast message. By sending a broadcast, any machine on the same subnet will see this message.
 
The only downside to UDP is that it there is no handshake so you have no way to know if the message was delivered or not. This is good for sending out data that is not critical such as temperature, time etc. It is not ideal if you wish to record every bit of data sent out.
 
TCP connections on the other hand, allow your RCM5600W to confirm a connection before sending the data. Depending on how you buffer and write the data, you don’t lose anything from the RCM5600W to the PC.
 
We need a little more detail about what it is you are looking to send and what your problems are?
 
You also mention you have errors. Can you explain a little more about what these are?
 
Dave...
---
Very funny Scotty, now beam down my clothes!!!
---
 
From:r... [mailto:r...] On Behalf Of Joanna
Sent: 20 May 2011 10:01
To: r...
Subject: [rabbit-semi] RCM5600W serial-to-wifi sample program
Hi,

Can Dynamic C program in such a way that the embedded system RCM5600W can send data to any PC within the same subnet???

Did u know any coding can transmit data from the embedded system to the laptop???

I did search online but Dynamic C keep giving me errors.
Hi Joanna,

What error are you getting with this code?

When I look at it there is a function call right at the bottom of the file called transmit();

This is going to give you an error in compilation as it is located outside of the functions blocks.

For your humidity and temperature sensors you will have to write your own code to do this. I would start with the basics and get the code that reads the sensors working first. After this you can start to add the TCP stuff.

What software are you going to use on the PC to receive this?

I would suggest you code the Rabbit software to use DHCP on the module and have a simple web interface that allows you to programme the TCP and PORT that the module sends the data to. This can be saved in the user block area so it can be retrieved at power up.

Dave...
---
Very funny Scotty, now beam down my clothes!!!
---

From: r... [mailto:r...] On Behalf Of Joanna Ng
Sent: 20 May 2011 14:48
To: r...
Subject: [rabbit-semi] RCM5600W serial-to-wifi sample program [1 Attachment]

[Attachment(s) from Joanna Ng included below]
Hi Dave and all,

The coding attached.

My main purpose of this project is to get data from sensors like humanity temperature and send out to all the laptop or PC.

My IP address 10.10.10.52 for the embedded system.
Using the range of IP 10.10.10.0 to 10.10.10.255

Any advise?

Regards:
Joanna Ng
You might also want to look at the ADDP sample -- it's a multicast UDP device discovery/configuration tool. I *think* it works over Wi-Fi as well (assuming you're on the same AP as the Rabbit).

-Tom
On May 26, 2011, at 7:51 PM, Dave McLaughlin wrote:
> I would suggest you code the Rabbit software to use DHCP on the module and have a simple web interface that allows you to programme the TCP and PORT that the module sends the data to. This can be saved in the user block area so it can be retrieved at power up.