Sponsored Content
Top Forums Programming Serial file transfer protocol / checksums Post 302786525 by nidal on Wednesday 27th of March 2013 04:24:00 PM
Old 03-27-2013
For polarization you havent got my point, for the PC its a rs232, but in the board side its not, its a TTL level UART, and not a rs232.

As i told you, i'm working on replacing an existing application, using that one on the same STB and with the same firmware version gives the same communication frames, the same checksums and everything is the same everytime i repeat the process on the same conditions, so those are static just depending on the firm binary file to calculate its size and checksums that i listed some of,
what i've done is spying the link between the linux PC and the board with a simple sniffering home made cable and a spying home developed software, i've got that communication, analysed it as i shown first, and tried to reconstruct that communication in a windows application,
in this application i used the same board and same binary file and used the same headers and expected the same responses, what i got is that it works till the first kbyte is sent, it gives me the right header as a response from the board
Quote:
t0[12]={0x18, 0x72, 0x00, 0x04, 0x00, 0x00, 0x00, 0x00, 0x45, 0x30, 0x44, 0xB2},
t1[12]={0x18, 0x72 ,0x00 ,0x04 ,0x00 ,0x00 ,0x04 ,0x00 ,0x21 ,0x5C ,0x81 ,0xB6},
and after that (by sending the rest of file) the board responds 5 times with t1 and then quit downloading mode to show "booting the kernel..." so it failed to receive the second kbyte

what you will notice is that the kernel is ok and that the firmware is already installed before, yes it is, and same in this case when i download the firmware on it again and again using the linux PC it succeeds and shows the same checksums,
i analysed well what i got in the communication but i think that there is something special in the used protocol, maybe timing or i dont know what exactly thats why i wanted to know more about file transfer protocols,
i found a protocol too much similar to what i analysed called MODBUS but still not the same so i think its not a usual protocol.

The STB manufacturer is the company i'm doing my training with, but the developers are from other company and are not responding at all...
 

9 More Discussions You Might Find Interesting

1. Programming

File transfer using Zmodem protocol

can anybody guide me how do i initiate file transfer over modem using zmodem protocol... (0 Replies)
Discussion started by: borntorock
0 Replies

2. SCO

Serial File Transfer

I need to transfer files from a sco/unix system to a windows xp system and they are only connected via a digiboard serial connection. The terminal emulation software connects and runs a program but I need to transfer files. Anyone know a good solution? (2 Replies)
Discussion started by: chansen
2 Replies

3. Programming

how i can transfer and receive file in any format over serial port

helo i m using fedora core 6 o.s. i want to develop application using c,c++ which transfer file in any format(like pdf,txt,doc etc) over the serial port and i want to receive the same file from the serial port please guide me. amit (4 Replies)
Discussion started by: amitpansuria
4 Replies

4. Shell Programming and Scripting

Secure File Transfer Protocol

Hi, Is there any protocol other than SFTP to transfer the file using secured connection SSH. ? Regards, Arthik (2 Replies)
Discussion started by: arthikbabu
2 Replies

5. HP-UX

SFTP Protocol: How to transfer the file in PC Format

Hi, We are facing issue with files transfered using SFTP in Hp-UX. The transfered files are in Unix Format. That is, file format as UNIX (LF) instead of a PC format (CR & LF). How can we achieve file transfers as PC format using SFTP? Your help and input will be highly appreciated. ... (2 Replies)
Discussion started by: brap45
2 Replies

6. UNIX for Dummies Questions & Answers

How do i transfer file using ftp protocol in Linux.

Hi , I want to transfer file using ftp protocol . I m using following linux distribution. LSB Version: :core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarch Distributor ID: OracleVMserver Description: Oracle VM server release 2.2.0 Release: 2.2.0 Codename: ... (5 Replies)
Discussion started by: pinga123
5 Replies

7. SCO

Need some advice concerning file transfer with a serial connection

Hi, I have a SCO Unix ver 5.0.7 from which I need to get some files. The problem is that I'm working remotely (have no physical access) and using Dejawin because this server is only has a serial connection to a Windows machine. Ucopy isn't on the server. What I was thinking is to do a print... (5 Replies)
Discussion started by: spartanboy184
5 Replies

8. Solaris

Transfer files from windows to solaris with winscp (file protocol:SFTP)

Hello, I have a couple of zip files to be copied from my local drive to a folder in solaris10 residing in a VM ware. i am using WINSCP, I tried to get hold of the solaris hostname or ip using ifconfig -a , hostname|nslookup etc. when i create a new session in WINSCP using that IP and port... (6 Replies)
Discussion started by: herbich1985
6 Replies

9. Shell Programming and Scripting

file transfer using AWK over serial port

I have a unix system that only has AWK to program with which hooks up to a windows or linux based system with all progamming and software capabilities. The link between the systems is typically a 9600 baud TTY port on the AWK system and COM1 on the other system. I can cat <filenm> from the unix... (4 Replies)
Discussion started by: bobfrog
4 Replies
PPPOB(1)						      General Commands Manual							  PPPOB(1)

NAME
pppob - Barry Project's program to access the Blackberry modem for pppd SYNOPSIS
pppob [-l filename][-p pin][-P password][-s][-v] DESCRIPTION
pppob is a program suitable for use in pppd's pty option file. It talks to an available Blackberry and provides modem access on stdin and stdout. OPTIONS
-l filename Causes verbose debug output from the -v switch to be written to filename instead of stderr. -p pin PIN of device to talk with. Only needed if you have more than one Blackberry connected at once. -P password Simplistic method to specify device password. In a real application, this would be done using a more secure prompt. -s Use Serial mode instead of the default IpModem mode. Older Blackberries used a serial mode based on a similar protocol to what database access uses for retrieving data. Each packet had a size and socket number prepended to the actual modem data. Newer Blackberries have dedicated USB endpoints that behave as read/write points, and do not bother with this size/socket format, and therefore transfer less data across the USB bus. By default, pppob tries to use IpModem mode if proper endpoints are detected, and otherwise falls back to Serial mode. This switch skips IpModem mode entirely and tries Serial mode immediately. -v Dump verbose protocol data to stderr during operation. AUTHOR
pppob is part of the Barry project. SEE ALSO
http://www.netdirect.ca/software/packages/barry May 29, 2008 PPPOB(1)
All times are GMT -4. The time now is 08:31 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy