This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Can I use net_config.h in XC167CI

Hello!

I need to know if it is possible to use the net_config.h with my XC167CI microcontroller.

If it is possible, how can I download it?

However, I would like to connect a modem to my XC167CI microcontroller and I don't know exactly how I can do it, so I was thinking to use net_config.h, if it were possible.

If someone could help me or say to me where I can obtain some documentation about it, please do it.

Thanks very much.

Willow.

Parents
  • Well. I think my before explanations were a bit awful.

    I am trying to explain better.

    I am using XC167CI microcontroller.

    I would like to connect a modem via serial port to my XC167CI. My modem is a GSM modem.

    In my computer I have another GSM modem and I want to try to connect to the GSM modem of the XC167CI microcontroller.

    I don't have any library, any files neither any header file. In keil forum I have read something about <net_config.h>. It has some methods I think they could be useful for me, like init_modem; modem_dial, modem_hangup, ... But, when I include this header file to my program, the compiler sais to me there is something wrong (it is impossible to open that file). Obsviously, I don't have this header file.

    So, where can I find libraries, header files or something similar for my problem?

    Is it possible to connect my microcontroller via serial port with a GSM modem?

    Thanks very much.

Reply
  • Well. I think my before explanations were a bit awful.

    I am trying to explain better.

    I am using XC167CI microcontroller.

    I would like to connect a modem via serial port to my XC167CI. My modem is a GSM modem.

    In my computer I have another GSM modem and I want to try to connect to the GSM modem of the XC167CI microcontroller.

    I don't have any library, any files neither any header file. In keil forum I have read something about <net_config.h>. It has some methods I think they could be useful for me, like init_modem; modem_dial, modem_hangup, ... But, when I include this header file to my program, the compiler sais to me there is something wrong (it is impossible to open that file). Obsviously, I don't have this header file.

    So, where can I find libraries, header files or something similar for my problem?

    Is it possible to connect my microcontroller via serial port with a GSM modem?

    Thanks very much.

Children
  • It sounds from your post like you may be a (complete) novice with 'C' programming - possibly also with microcontrollers. Is that right?

    If so, I suggest that you lay this project aside for now, and first take some time to learn the 'C' programming language

  • The question is not if I am novice or not.

    The question is if this class is included in any general library and if so, how could I get it.

    Maybe I havenÂ't explained very well my problem, as my language is not english.

    Anyway, thank you for your "help", expert in C programmation, but you have not answer my question at all.

  • Pardon?!
    You were given a number of answers, all of which (including mine, if I may say) were correct!
    What do you want? Do you people to tell you how to connect a device they don't know in detail to your serial port? To send you a working project? Just read the specs of the modem, learn how to work with your serial port and you'll be fine.
    If I may quote somebody from the forum: "do you really believe insulting people will make them want to help you?"

  • Please, you must give the experts in C programmation here some slack, they do this as an unpaid favor to the community.

    They attempt to answer a lot of questions; and some of those answers are occasionally correct.

  • Certainly you have not understand me at all!!

    My problem is not about connecting the modem, I have not any problem at all, I have already done a lot of operations with this device.

    My question is How to get a class included in a general purpouse library (AR166) in witch I have seen a lot of tcp/ip funcions.

    I wanted to know if I could use this classes instead of programming the methods by myself.

    I think I haven't insulted anybody, I have just said that the question is not if I am novice or not.

    Sorry for my questions, I didn't know it was an expert forum. I tought I could ask for help...

  • Keil do sell a network library, but I don't know if it is available for your specific processor.

    With ppp support, you can forward TCP packets over a serial connection (the modem).

  • Thank you very much, Per!

    My question was about that.

    I have downloaded a trial version of ARTX166 kernel. In this specificacion module it says that it is compatible with our microcontroller (XC167CI of Infineon), but we can't access to the ARM functions. I don't know if it is because we have a trial verion or it could be a mistake.

    Thanks again. Your answer was we want to know.

  • I probably misunderstood you now, but "can't access the ARM functions" does sound a bit funny.

    This thread is about the use of a C166 processor, so it isn't likely that you can run any functions that Keil for have only implemented for the ARM processor family.

    I only know what tools/libraries Keil have available for the ARM processor so someone else has to step in and tell if ARTX166 has something in common with any ARM implementation.

    I don't think Keil have any evaluation versions of any networking code. There are a number of pre-built binaries for some of the reference boards, but if you want to change the applications, you must buy the library.

  • "They attempt to answer a lot of questions; and some of those answers are occasionally correct."

    Are tiy satubg that the large majority of answers given are wrong?

  • Hmm. The danger of not proof-reading. New attempt:

    Are you saying that the large majority of answers given are wrong?

  • "Are tiy satubg that the large majority of answers given are wrong?"

    Need I say more ;-)

  • Thanks again Per,

    Sorry about the expression "ARM functions", we mean ARTX166 functions.

    We thought we had dowloaded an evaluation version with networking code, but we were wrong.

    We need very basic funcionallity, so I think we could get with the pre-built binaries. How could we get it? Is there any information (description) about the method it contains?

    Thank you very much,

  • No, the prebuilt binaries are complete demo applications. They do only what they are intended to do, not what you want them to do.

    They are prebuilt applications (not libraries) because Keil wants the customers to see what can be done, but want money (not too uncommon for companies) for supplying you with any libraries.

    The one exception that I know about is that you get the runtime libraries for their RTOS for free. It isn't until you need to reconfigure or adapt the OS that you need to pay for the source-code distribution.

    Note that if your processor does not have any ethernet support, and it isn't the firmware in the processor board that needs TCP/IP support then you do not need any TCP/IP stack or any PPP support. If you want Windows to establish a network connection, it is enough to have a transparent serial channel between the PC and the GPRS modem you have connected to the external processor. Windows has PPP support and should be able to connect without caring about the C166 inbetween.