Jump to content

ofer

Members
  • Content Count

    27
  • Joined

  • Last visited

  1. ofer

    Ethernet Booster Pack v3

    HI @spirili, i have to routers in my lan that can provide DHCP, maybe that's causing the problems? Thanks, Ofer.
  2. ofer

    Ethernet Booster Pack v3

    Ahhh... yeah I use CCS with TI's proprietary compiler
  3. ofer

    Ethernet Booster Pack v3

    hi @@spirilis, when i use the debug i only use the basic example code.
  4. ofer

    Ethernet Booster Pack v3

    The DHCP server keeps on changing every reset: DHCP lease information: 54550 seconds, DHCPserver = 106.227.230.24 DHCP lease information: 54550 seconds, DHCPserver = 3.0.8.0 DHCP lease information: 54550 seconds, DHCPserver = 34.123.255.91
  5. ofer

    Ethernet Booster Pack v3

    thanks @@spirilis, I got the debug working: Beginning: Waiting for PHY: PHY up dhcp_loop_configure(): Sending DHCPDISCOVER dhcp_send_packet(): Our MAC = 00:08:DC:04:03:00 dhcp_loop_configure(): Waiting for DHCPOFFER dhcp_loop_configure(): Packet received dhcp_loop_configure(): SrcPort = 67, PktLen = 548, RXrecv = 556 dhcp_read_header(): Initial header: OP=2, HTYPE=1, HLEN=6, HOPS=0 dhcp_read_header(): Read XID: 3903F326 dhcp_read_header(): SECS=0000, FLAGS=0000 dhcp_read_option(): optcode=53, optlen=1, maxlen=8 dhcp_loop_configure(): Packet is DHCPOFFER dhcp_loop_configure(): DHCP server gave us IP address 192.168.0.70 dhcp_read_option(): optcode=54, optlen=4, maxlen=8 dhcp_loop_configure(): DHCP server: 192.168.0.2 dhcp_read_option(): optcode=1, optlen=4, maxlen=8 dhcp_loop_configure(): subnetmask: 255.255.255.0 dhcp_read_option(): optcode=51, optlen=4, maxlen=8 dhcp_read_option(): optcode=52, optlen=1, maxlen=8 dhcp_read_option(): optcode=3, optlen=4, maxlen=8 dhcp_loop_configure(): gateway: 192.168.0.1 dhcp_read_option(): optcode=6, optlen=8, maxlen=8 dhcp_loop_configure(): DNS server: 192.117.235.237 (2 in total) dhcp_read_option(): optcode=255, optlen=0, maxlen=8 dhcp_loop_configure(): Sending DHCPREQUEST to 192.168.0.2 requesting IP=192.168. 0.70 dhcp_send_packet(): Our MAC = 00:08:DC:04:03:00 dhcp_loop_configure(): Waiting for DHCPACK dhcp_loop_configure(): Packet received dhcp_loop_configure(): SrcPort = 67, PktLen = 548, RXrecv = 1112 dhcp_read_header(): Initial header: OP=2, HTYPE=1, HLEN=6, HOPS=0 dhcp_read_header(): Read XID: 3903F326 dhcp_read_header(): SECS=0000, FLAGS=0000 dhcp_read_option(): optcode=53, optlen=1, maxlen=8 dhcp_loop_configure(): Packet is not DHCPACK; MSGTYPE=2 dhcp_loop_configure(): Packet received dhcp_loop_configure(): SrcPort = 67, PktLen = 548, RXrecv = 556 dhcp_read_header(): Initial header: OP=2, HTYPE=1, HLEN=6, HOPS=0 dhcp_read_header(): Read XID: 3903F326 dhcp_read_header(): SECS=0000, FLAGS=0000 dhcp_read_option(): optcode=53, optlen=1, maxlen=8 dhcp_loop_configure(): Packet is DHCPACK dhcp_read_option(): optcod dhcp_loop_configure(): DHCP server: 192.168.0.2 dhcp_read_option(): optcode=1, optlen=4, maxlen=8 dhcp_read_option(): optcode=51, optlen=4, maxlen=8 dhcp_read_option(): optcode=52, optlen=1, maxlen=8 dhcp_read_option(): optcode=255, optlen=0, maxlen=8 dhcp_loop_configure(): DHCPACK contents processed; validating dhcp_loop_configure(): Configuring WizNet IP settings dhcp_loop_configure(): setGAR(192.168.0.1) dhcp_loop_configure(): setSUBR(255.255.255.0) dhcp_loop_configure(): setSIPR(192.168.0.70) DHCP lease information: 54550 seconds, DHCPserver = 1.0.0.0 PERFORMING DHCP RENEWAL dhcp_loop_configure(): Sending DHCPREQUEST to 1.0.0.0 requesting IP=192.168.0.70 dhcp_send_packet(): Our MAC = 00:08:DC:04:03:00 dhcp_loop_configure(): Waiting for DHCPACK dhcp_loop_configure(): Packet received dhcp_loop_configure(): SrcPort = 67, PktLen = 548, RXrecv = 556 dhcp_read_header(): Initial header: OP=2, HTYPE=1, HLEN=6, HOPS=0 dhcp_read_header(): Read XID: 3903F326 dhcp_read_header(): SECS=0000, FLAGS=0000 dhcp_read_option(): optcode=53, optlen=1, maxlen=8 dhcp_loop_configure(): Packet is DHCPACK dhcp_read_option(): optcode=54, optlen=4, maxlen=8 dhcp_loop_configure(): DHCP server: 192.168.0.2 dhcp_read_option(): optcode=1, optlen=4, maxlen=8 dhcp_read_option(): optcode=51, optlen=4, maxlen=8 dhcp_read_option(): optcode=52, optlen=1, maxlen=8 dhcp_read_option(): optcode=255, optlen=0, maxlen=8 dhcp_loop_configure(): DHCPACK contents processed; validating dhcp_loop_configure(): DHCP server IP does not match! dhcp_loop_configure(): RXrecv = 0, virtualRXrecv = 0 dhcp_loop_configure(): RX_RD = 556, RX_WR = 556, TX_RD = 257, TX_WR = 257 dhcp_loop_configure(): Loop count 500 out of 500 dhcp_loop_configure(): TIMEOUTdhcp_loop_configure returned error: DHCPlib Timeout Waiting for Reply what does it means?
  6. ofer

    Ethernet Booster Pack v3

    Hi @@spirilis, First I want to say that your DHCP lib is awesome! But some times it doesn't work and i dont know why, plus i had to loose all the wiznet_debug stuff couse this did not work for me (most likely i don't know how to use it) Other then that i did'nt change a thing in your code and my own code starts after i get the IP address. Do you have any idea why this happens? P.S. i see that i get an IP address in the Router but after a second it disappear. Thanks a lot, Ofer.
  7. ofer

    VCC OUT

    @@SixSixSevenSeven method worked but is there a better way to do this? maybe a buffer or a CMOS transistor? Thanks, Ofer.
  8. ofer

    VCC OUT

    Thanks to all ill try and post back.
  9. ofer

    VCC OUT

    hi @@roadrunner84, I tried using the enable pin but i see that it only stops the conversion from 3.3 to 5 volts so the output to the load is 3.3 volts. maybe im using it wrong, do you know of a way to connect it so the enable pin would shut down the output voltage? thanks, Ofer.
  10. ofer

    VCC OUT

    thanks @@SixSixSevenSeven i will try it, although i would have prefer a software based solution.
  11. ofer

    VCC OUT

    Hi all, I have an msp-exp430g2, my power supply is from USB and i have another unit (LMR61428) that convert 3.3 volt to 5 volt. I need this conversion unit to work only when I need. if i connect it to the VCC pin, it works all the time. Ive tried to connect it to an I/O pin that I can program to be on and off but the current output from the I/O pins is to low. Is there anyway to program the VCC pins on and off? or to increase the current output of the I/O ports? P.S. i tried to build an electronic switch with a bi-poler transistor but i couldnt make it work Thanks, Ofer.
  12. ofer

    ADC conversion problem

    hi biza, define an Array: samples[3] and then : ADC10CTL0 &= ~ENC; while (ADC10CTL1 & BUSY); ADC10SA = (unsigned int)samples; ADC10CTL0 |= ENC + ADC10SC; // ENC = enable conversion, ADC10SC = Sampling and conversion start __bis_SR_register(CPUOFF + GIE); // LPM0, ADC10_ISR will force exit In the interrupt: #pragma vector=ADC10_VECTOR __interrupt void ADC10_ISR(void) { __bic_SR_register_on_exit(CPUOFF); // Clear CPUOFF bit from 0(SR) } and just read the values of samples[0..3] Hope this helps.
  13. ofer

    Ethernet Booster Pack v3

    Hi @@RobG Is their a way to add DHCP to the project? I read in one of your posts that the MSP430G2553 does't have enough memory, is their a way around it? Thanks for all your help, Ofer.
×