Forum Discussion
Altera_Forum
Honored Contributor
20 years ago --- Quote Start --- originally posted by vava+oct 31 2005, 02:20 pm--><div class='quotetop'>quote (vava @ oct 31 2005, 02:20 pm)</div>
--- quote start ---
though i've been able to find the ppp library, i haven't found any sort of example code explaining how to get a session working via ethernet on the pc. where can i find an example, or some conceptual tips on how to get started with this?[/b]
--- quote end ---
scott mentioned the package's directory:
c:\altera\kits\nios2\components\ecos\ecos-current\packages\net\ppp\current\src
i'd look through that at any .h files, or maybe even all the files, and see if they say anything.
other than that, it's not easy finding docs on ecos stuff. one of the weaknesses of open source; most programmers aren't writers.
--- quote start ---
originally posted by vava@oct 31 2005, 02:20 pm
(1) so, once i get my ppp session initiated, and data is being exchanged between the pc and the modem's ethernet interface, do i just need to flatten the ip packet into the rf modem input stream for tx? and re-assemble the flattened packet on rx?
--- quote end ---
well, the whole point of this exercise was to have ppp do the flattening/unflattening to interface to the rf. then your system would just be a router with two network connections: one ethernet, and one ppp.
<!--quotebegin-vava@Oct 31 2005, 02:20 PM (2) also is there any sort of code explaining how to control peripherals via i2c? --- Quote End --- That would be dependent on what IP you used for yor I2C controller; hopefully, there's example code in its documentation. If not, you can just write your own driver. It'll jsut take you a little while to figure out the I2C protocol. The I2C peripherals' documentation should help here, too.