Send captured image to socket server

Here is output:

Look in the RN171 Manual for the commands to update the firmware

RoSchmi, i already did it. Command is

But during my ad-hoc connection i donā€™t have access to internet and ftp serverā€¦

Ok! Here we go. I could update the module firmware manually using a tera term and wifly7-441.img file. Now i have 4.41 version. I read the docs and found that versions 4.XX doesnā€™t have Ad hoc mode and instead it has AP mode. I was trying to connect in AP mode from PC but with no success. AD hoc mode was connected perfect.
How to correctly setup connection in AP mode??? thank you

Did you now try again with my driver / utility? Perhaps set breakpoints to find out why it does not work for you

1 Like

Finally i did it ;D
Thank you for your help!!! Great driver!

That was my last hope (( I upgraded a firmware to 4.41 and set the baud rate to 230400 and tried to send the data packets:( 5 bytes per 500 ms) but it takes about 10 minutes and still not all bytes recieved on the client sideā€¦ (about 700 bytes loosing)
That is really interesting thingā€¦ Does anybody could send a file (10 kbytes) using Cerbuino bee and RN-XV WiFly module or not??? What should i do to privent loosing my bytes on the way???

prove the technology works at a simpler level - check you can for example do a POST and GET over HTTP first, so you know fundamental comms works. Then, once thatā€™s proven, you will know that your code is the problem !

1 Like

:clap: For the first step. I did not try yet. If it really looses bytes you can send in small chunks acknowledge and resend when bytes are lost

1 Like

Advice please how should i check the lost bytes and resend only the lost one?
Another option is to try an http logic as Brett suggestedā€¦ Is there any code samples of using your driver in http web server and http web client?

Iā€™m sorry, no experience, perhaps x-modem protocol or similar

:frowning: i have no experience tooā€¦ and this is a motivation ;D

Iā€™ve worked a fair amount with various protocols and lost/corrputed data is a very common problem that they try to solve. You could get really complicated with a protocol and Iā€™m new to NETMF so Iā€™m not sure what is supported but you could do something simple using XML.

Maybe something like:

Client (PC):



Server (device):


```cs
<img chunks="5">
   <chunk ndx="0" crc="FFFF">FFFF....</chunk>
   <chunk ndx="1" crc="FFFF">FFFF....</chunk>
   ...
</img>

The idea is that you break up the image into fixed length chunks and send each chunk seperately. If you want to validate the integrity of the data you can calculate a crc-16 on the data on both sides and if they donā€™t match then throw away the chunk.

After you receive the tag then for any data you are missing you could tell it to resend a chunk:

When you have all of the chunks then you can rebuild the image by pulling the data out in the proper order.

1 Like

Hi, the problem in that i have already divided the data on chunks and send it by really small 5 bytes chunks and it still doesnā€™t workā€¦ Now i am trying to set up a netmf web server and will try to use http stream to send the data.

@ Alex Bilityuk - I suggest to try a different way to debug it.
:think:

I think that your problem may be the serial port and not the RN module. You could chek it using a sort of simulation sending and receiving rs232 data to a PC serial port at different speeds and chunks length, using (almost) you netmf code.
With the Wyfly I remember to have used serial hardware handshaking, but Iā€™m not sure.
An other useful hardware to own is a xBee socket with USB/serial converter, compatible with RN-XV module so you can attach module directly to a PC.

Hi,
I new to the community and I just received my FEZ Raptor + ENC28 + SD Card module. If you would like I will see if I can get it working by reading an image off the SD card and then sending it over ethernet to the PC.

@ Michael Kaufman -
Welcome to the community ā€¦ ;D

I suggest to take a look to this document:
https://www.ghielectronics.com/downloads/man/G400_User_Manual.pdf

There you can find many information on the G400S board used by the FEZRaptor. On the forum you can search lot of thread talking about the argument.
Eventually start a new topic, becouse this thread is about quite different argument.

Thanks dobova. Iā€™ve already gone through the documentation on the G400, etc. I was merely trying to contribute.

Thanks again for your comment.

Welcome! I wish you good luck with your project!

Thank you for your opinion, but i donā€™t use a serial port at allā€¦ i use a Wifly socket server and PC socket clientā€¦