The error you’re seeing means:
12030 ERROR_INTERNET_CONNECTION_ABORTED
The connection with the server has been terminated.
So the question is, what version of the Digi Connect ME 9210 are you using? Digi sells two variants, a -C and a -S variant. -S variants have a built in Web UI (root/dbps is the default username/password) you can access, while the -C variants have an FTP server on them. The two variants can’t be converted back and forth.
I have the -C variants. The connection on the FTP server works with (root/password) But i think something with the File i send is wrong.
I send a image.bin.
With older connect Me9210 (NetOs V7.5.2) it works and with the new NetOS V7.6 it don’t.
Im confused because there is no update to 7.6 available in me Digi ESP Development environment.
In the directory into which you installed NET+OS is the following subdirectory:
utilities\win32\discovery\Win32_Samples. IN that subdirectory is a file Finder.exe. This is a GUI version of netosprog. Can you try that program and does it work or not?
I think the Finder.exe only discovery the DigiConnect. The discovery is not the problem. It also work with netosprog /discovery
Also the login on the FTP works, because when try it with a wrong password i got an error.
Perhaps there are some restrictions of the file i send?
Hello
First my error. finder.exe will only find and reboot. It will not upload. I forgot.
I have a connectme9210. I used the netosprog that ships with NET+OS V7.5 to both discover the module and to successfully upload an image into the module. I did this with both a connectwi9p9215 and with a connectme9210.
Can you try the following:
using an ftp client such as from a DOS shell
ftp “the ip address or your device”
(no quotes in your actual command)
give it user name or root
give it password of password
Assuming you log in successfully
type binary
next
type put “the file name you want to upload”
(no quotes in your actual command)
presumably you are uploading an image.bin that you built. I would recommend an ftp server, in case this device has no JTAG connector
when complete type quit.
Does the image get uploaded to your device?
Does your device reboot?
As I say with both of the devices I used, all went well.
ftp “ip”
Output-> 220 Net+OS 7.6 FTP server ready.
user: root
Output-> 331 User root OK. send password.
password: password
Output-> 230 Password Ok.
ftp> binary
Output-> 200 Type set to I.
ftp> put C:\image.bin
Output-> 200 PORT command Ok.
Output-> 150 About to open data connection
Output-> 426 Connection closed: transfer aborded
A couple of things. I am using and have verified that I am using the shipping version of the FTP server application and I am not seeing this issue. First, where you show the following, “220 Net+OS 7.6 FTP server ready”. Did you shorten the version or does it truly show 7.6. This is because I am seeing version 7.6.0.3 in FTP and TELNET.
DO you have the facilities to take a network trace of an FTP transaction and try to ascertain who is aborting the transaction. What I see from your display is the following:
Your ftp client successfully connects to the connectme9210. FTP (connectme9210) asks for user name and password. The ftp client returns both and the connection is successful on the CONTROL channel. The control channel is created by the ftp client to the ftp server. Then a data port is created. If I remember correctly, the ftp server (connectme9210) in standard mode, creates the ftp data channel and connects back to the ftp client. Just prior the ftp client sends a port message to the ftp server, telling the server the port number to use. It appears that it is the creation and connection attempt, by the ftp server (connectme9210) to the ftp client that is failing. Is there any chance that the connectme9210 and the ftp client (PC) are separated by a firewall that will not allow the data channel to be created by the connectme9210. This is a fairly common problem. ftp passive mode was created to get around this problem. In passive mode, the ftp client (the PC) creates both the control channel and the data channel.
So you might try ftp in passive mode. You might create and look at a trace to see who is doing what to whom.
Can you supply the serial numbers/MAC addresses of the modules that do not work?
Also I am just verifying, I am assuming that the units you are dealing with do NOT have JTAG connectors so the only way you might have had to update the F/W is through FTP or netosprog?
I find out, that small (440kb) “image.bin” files are working.
And the file transfer with big files (1350kb) work when i rename the “image.bin” to “test.bin”.
So can update with a “FTP Server Sample” from V7.5.2.2
Then i can update to my Application.
Maybe the original FTP can not handel big Files because of the RAMIMAGE_SIZE?
“And the file transfer with big files (1350kb) work when i rename the “image.bin” to “test.bin”.”
I believe there is some special code in the ftp server that specifically looks for either image.bin (application) or rom.bin (bootloader) and writes them to special places in FLASH. test.bin, not meeting this criterion, would be written to the FLASH file system. The FLASH file system would have less restriction on file size then would the writing of the application (image.bin) to FLASH.
In an effort to wrap this discussion up, in the bsp\platforms \ or if using ESP, in the bsp\platform_name folder is a file entitled customize.ldr. In that file are some macros for setting up sizes used all over NET+OS. Two of them that are germane to this discussion are APP_MAX_SIZE_IN_FLASH and BACKUP_RECOVERY_MAX_SIZE_IN_FLASH. Also FILE_SYSTEM_SIZE and FLASH_SIZE are also useful.
For a connectme9210, by default APP_MAX_SIZE_IN_FLASH is 1280K. This means that for your application (image.bin) to be successfully written into FLASH, it can be no larger than 1280K. According to you, your application (image.bin) was 1350K. Clearly this will not work. Then you stated that an image.bin of size 440K did work. Again clearly since 440K < 1280K, that will work.
Be very careful if you try and modify these values. They have real meaning. If you increase the size for image.bin in FLASH, we generally recommend that you decrease the size of something else, such as the backup image or the FLASH file system.
Thats the problem.
This are the values i can change under Project->Properties->NET+OS->Flash Memory Map.
I will set the App_Image_Size higher.
It’s necessary to set the File System Size to the same size or is the image.bin receive by ftp only store in ram?
“This are the values i can change under Project->Properties->NET+OS->Flash Memory Map.”
Ok you are doing this manipulation through ESP.
It’s necessary to set the File System Size to the same size or is the image.bin receive by ftp only store in ram?
My point is that FLASH is a limited and fixed quantity. So if you increase one thing stored in FLASH you must decrease something else stored in FLASH to ensure that everything fits.
The image.bin is read into RAM and immediately written to FLASH.
Remember that in FLASH are the following objects:
bootloader (rom.bin), application (image.bin), possibly a backup image (backup.bin) , the FLASH file system and NVRAM. As long as you are managing FLASH use, then I’ll agree.