snoke12
September 13, 2010, 11:55am
1
Hello,
I made an application to download data from a sensor in C, but this sensor only sends the data through the protocol YMODEM, I want know if is possible implement data transfer in open ymodem at 3:14:03, firmware 657e, WIP 3.10. 1030.
If someone has an example please send me.
My modem is M1306B.
awneil
September 13, 2010, 12:56pm
2
YMODEM uses exactly the same block structure & block protocol as XMODEM - the only difference is that it send the file details (name, etc) as “block-0”, and can send multiple files in a session.
en.wikipedia.org/wiki/YMODEM
textfiles.com/programming/ymodem.txt
If you have an XMODEM implementation, it should be easy to extend that to YMODEM.
The SiWi DOTA example includes an XMODEM implementation…
snoke12
September 13, 2010, 5:04pm
3
awneil:
YMODEM uses exactly the same block structure & block protocol as XMODEM - the only difference is that it send the file details (name, etc) as “block-0”, and can send multiple files in a session.
en.wikipedia.org/wiki/YMODEM
textfiles.com/programming/ymodem.txt
If you have an XMODEM implementation, it should be easy to extend that to YMODEM.
The SiWi DOTA example includes an XMODEM implementation…
I dont have XMODEM implementation, you can send me? Or send me one sample on the web…
Thanks
snoke12
September 16, 2010, 8:34pm
4
Hey awneil
Please send me one sample…
awneil
September 16, 2010, 8:54pm
5
[size=150]
[/size]
ie, you already have it!
snoke12
September 17, 2010, 11:51am
6
I have this sample, but I can not find any reference to xmodem…
awneil
September 17, 2010, 12:49pm
7
You can’t have looked very hard!
A simple text search (eg, “grep”) through the .c files in the SDK shows that the word “xmodem” appears in two files:
C:\OpenAT\v3r13> GREP -di xmodem *.c
File OS\3.12.05\ADL\samples\Bug\src\bug.c:
sReturn = dwl_Upload ( DWL_TYPE_RAM | DWL_PROTOCOL_XMODEM, Size, BkTrcBuffer, Port, NULL, NULL );
adl_atSendResponse ( ADL_AT_PORT_TYPE ( Flow, ADL_AT_RSP ), “\r\nXModem upload error\r\n” );
File OS\3.12.05\ADL\samples\Libraries\Download\src\downloader.c:
18.05.04 | DPO | 1.4 | * FTP & XModem enhancement
/* XMODEM Block check /
/ Set type XMODEM or 1K XMODEM */
File OS\3.12.05\ADL\samples\Libraries\Download\src\dwl_engine.c:
18.05.04 | DPO | 1.7 | * FTP & XModem enhancement
if ( dwl_Protocol == DWL_PROTOCOL_XMODEM )
/* XMODEM : FCM services subscription */
if ( dwl_Protocol == DWL_PROTOCOL_XMODEM )
u32 ErrorType = DWL_ERR_TYPE_XMODEM;
File OS\3.12.05\ADL\samples\Libraries\Download\src\dwl_storage.c:
18.05.04 | DPO | 1.1 | * FTP & XModem enhancement
File OS\3.12.05\ADL\samples\Libraries\Download\src\uploader.c:
18.05.04 | DPO | 1.5 | * FTP & XModem enhancement
/* XMODEM Block build & send */
C:\OpenAT\v3r13>