aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2016-03-12Test numbers creation before starting the signal testboucherv1-8/+43
Change-Id: Ife6a21e0dc3b12d1efd7aeb398b1ca0b85458a42 Signed-off-by: boucherv <valentin.boucher@orange.com>
2016-03-11A non default argument cannot be placed before a default one.jose.lausuch1-1/+1
This is blocking the execution of functest from jenkins Change-Id: I880b455016ae716db234fd118c8456829fec9861 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2016-03-10Have vIMS and Promise packages pre installed in the docker image.jose.lausuch2-41/+20
Also, change to master in Functest repo. JIRA: FUNCTEST-148 Change-Id: Ie4f3991adde9296fe86d4bedd4a9ca5e8aea33b3 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2016-03-04Merge "Add support for SSL endpoints in Functest"Morgan Richomme2-0/+30
2016-03-04Add support for SSL endpoints in Functestjose.lausuch2-0/+30
JIRA: FUNCTEST-145 Change-Id: I051f1b71fda251e57d70f147433b9f038d30e7f9 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2016-03-04Rally and Tempest pre-installed in the Docker image.jose.lausuch4-12/+10
Also, upgrade Rally to version 0.3.1 JIRA: FUNCTEST-147 Change-Id: I6aa15a7c282462058b7786c7dc7174d48c905d3a Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2016-02-26Merge "Add jenkins build tag for result api"Morgan Richomme9-21/+42
2016-02-25Add Proxy section in the config guidejose.lausuch1-0/+28
Change-Id: I887ef72d3298c83bc623f478de9e4317827d91d0 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2016-02-25Fix Dockerfile to use proper bashrc file for the alias 'll'jose.lausuch1-1/+1
Change-Id: I7236fa9f00b8f0200f910ac4833c58237f66aef2 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2016-02-25Samll corrections in the config guidejose.lausuch2-38/+38
Change-Id: I02d7db461ed3380d9127e3e01d7f99d4ddb8151c Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2016-02-25remove ref to OpencontrailMorgan Richomme1-4/+4
Change-Id: I3e77711b3a5380f87f305006a397d73f5b0945c4 Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
2016-02-25Updates and fixes in the Config Guidejose.lausuch2-156/+250
Change-Id: I71474490e18fcf33b70766cb4446ade2d58a80b8 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2016-02-25Merge "Add release note"Morgan Richomme2-0/+312
2016-02-25Add release noteMorgan Richomme2-0/+312
Change-Id: Id01c349e89d77be6dc783afcd8d41478aa0bedbb Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
2016-02-25Updates and fixes to the user guidejose.lausuch5-123/+127
Change-Id: I42198bbdf4f9e6f6f337761b6ff6900c4bb7f171 Signed-off-by: jose.lausuch <jos
/*********************************************************************
 *
 * Filename:      toim3232-sir.c
 * Version:       1.0
 * Description:   Implementation of dongles based on the Vishay/Temic
 * 		  TOIM3232 SIR Endec chipset. Currently only the
 * 		  IRWave IR320ST-2 is tested, although it should work
 * 		  with any TOIM3232 or TOIM4232 chipset based RS232
 * 		  dongle with minimal modification.
 * 		  Based heavily on the Tekram driver (tekram.c),
 * 		  with thanks to Dag Brattli and Martin Diehl.
 * Status:        Experimental.
 * Author:        David Basden <davidb-irda@rcpt.to>
 * Created at:    Thu Feb 09 23:47:32 2006
 *
 *     Copyright (c) 2006 David Basden.
 *     Copyright (c) 1998-1999 Dag Brattli,
 *     Copyright (c) 2002 Martin Diehl,
 *     All Rights Reserved.
 *
 *     This program is free software; you can redistribute it and/or
 *     modify it under the terms of the GNU General Public License as
 *     published by the Free Software Foundation; either version 2 of
 *     the License, or (at your option) any later version.
 *
 *     Neither Dag Brattli nor University of Tromsø admit liability nor
 *     provide warranty for any of this software. This material is
 *     provided "AS-IS" and at no charge.
 *
 ********************************************************************/

/*
 * This driver has currently only been tested on the IRWave IR320ST-2
 *
 * PROTOCOL:
 *
 * The protocol for talking to the TOIM3232 is quite easy, and is
 * designed to interface with RS232 with only level convertors. The
 * BR/~D line on the chip is brought high to signal 'command mode',
 * where a command byte is sent to select the baudrate of the RS232
 * interface and the pulse length of the IRDA output. When BR/~D
 * is brought low, the dongle then changes to the selected baudrate,
 * and the RS232 interface is used for data until BR/~D is brought
 * high again. The initial speed for the TOIMx323 after RESET is
 * 9600 baud.  The baudrate for command-mode is the last selected
 * baud-rate, or 9600 after a RESET.
 *
 * The  dongle I have (below) adds some extra hardware on the front end,
 * but this is mostly directed towards pariasitic power from the RS232
 * line rather than changing very much about how to communicate with
 * the TOIM3232.
 *
 * The protocol to talk to the TOIM4232 chipset seems to be almost
 * identical to the TOIM3232 (and the 4232 datasheet is more detailed)
 * so this code will probably work on that as well, although I haven't
 * tested it on that hardware.
 *
 * Target dongle variations that might be common:
 *
 * DTR and RTS function:
 *   The data sheet for the 4232 has a sample implementation that hooks the
 *   DTR and RTS lines to the RESET and BaudRate/~Data lines of the
 *   chip (through line-converters). Given both DTR and RTS would have to
 *   be held low in normal operation, and the TOIMx232 requires +5V to
 *   signal ground, most dongle designers would almost certainly choose
 *   an implementation that kept at least one of DTR or RTS high in
 *   normal operation to provide power to the dongle, but will likely
 *   vary between designs.
 *
 * User specified command bits:
 *  There are two user-controllable output lines from the TOIMx232 that
 *  can be set low or high by setting the appropriate bits in the
 *  
1-5/+131
Change-Id: I56661f953fab0275b089f718ac22c7403f9cfc71 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2016-02-24Merge "Add result docs for apex, compass, joid"Morgan Richomme8-4264/+7276
2016-02-24Add result docs for apex, compass, joidMorgan Richomme8-4264/+7276
Change-Id: I3124c6128c4222410514b08e32d6815cb7f60ace Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
2016-02-23Add fuel scenarios test reportjose.lausuch7-46/+9531
Removed those which won't be part of the release Change-Id: I99c837d367de8d2bc4ac6f32d2d20fa8bb731759 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2016-02-23Moving testusage.rst to introduction.rst to avoid being pulled into the ↵ChristopherPrice4-194/+194
userguide. Change-Id: I96bc3bd578ccb19b0aac2af2f2134619e476605f Signed-off-by: ChristopherPrice <christopher.price@ericsson.com>
2016-02-23Merge "remove "print" in tempest to avoid having a message "None" in the output"Morgan Richomme1-1/+1
2016-02-23remove "print" in tempest to avoid having a message "None" in the outputjose.lausuch1-1/+1
Change-Id: If2008fa7ed1bce1b5acc40cad82c21afa55ec4e5 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2016-02-23Create troubleshooting guide as a separate .rstjose.lausuch2-120/+123
Change-Id: I2d5a1544e7c07dbc164b5d7403318ccafe75e5c1 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2016-02-22Add git support for Doctor repo in config_functest.yamljose.lausuch3-3/+20
Change-Id: I10ad0dc6cd6697a2a93f5e11edcdd69f70f86c5f Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2016-02-19Fix message outputs taken from the console log in vPing_sshjose.lausuch1-4/+18
Change-Id: Id169167d90d60b8266913a8451699969abb4ef7c Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2016-02-19Corrected using of echo commandViktor Tikkanen1-2/+2
Full path of echo is needed when using -e option in Docker file. Otherwise -e will be output as part of the string. Change-Id: Ic226209a3ef5dac991ccae996f6e7afa0061fccf Signed-off-by: Viktor Tikkanen <viktor.tikkanen@nokia.com>
2016-02-18Remove network failed message check form vping_sshjose.lausuch1-2/+1
Change-Id: I72d97af3ddd76f698ce54918cf92f98c8f5a7fd4 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2016-02-18Add VI and alias support in the docker containerjose.lausuch1-0/+6
When editing a file with VI in the container, the keyboard is not properly setup. This options will help to do things more smoothly.. Change-Id: I4c9004a4df067d7bbb558461dd98d76e32e64591 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2016-02-17Release floating ip after vPing_ssh testjose.lausuch2-37/+37
Also, check the console to see if the instance fails when sending the discover to the dhcp agent Change-Id: I314051886b9580a42bb88f2d88a9bdbf2a9e198a Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2016-02-16Create vPing_userdata instances with dynamic ports created by nova/neutronjose.lausuch3-110/+115
Change-Id: I1808763f6ccf1ac90b8a696c48ecdfba03d782fb Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2016-02-16Create vPing instances with dynamic ports created by nova/neutronjose.lausuch2-147/+146
Also, - check if the used network is already created to not create it again - check if the image already exists to not create it again - check if the sec group already exists to not create it again Change-Id: I243619a1538444d836fdda84a86b834668aaf456 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2016-02-16Merge "Add compass onos and odl_l2 scenario"Jose Lausuch2-638/+4215
2016-02-16Renaming the description text to include in composite docs.ChristopherPrice3-80/+78
testusage.rst will be automatically pulled into the composite docs. I have updated the heading and included a link to the functest userguide. Change-Id: I9ff980f8c33898cc43570b4d544a1dc2d5219222
2016-02-12Add compass onos and odl_l2 scenariomrichomme2-638/+4215
Signed-off-by: mrichomme <morgan.richomme@orange.com>
s="p">; break; } /* Set DTR, Clear RTS: Go into baud programming mode */ sirdev_set_dtr_rts(dev, TRUE, FALSE); /* Wait at least 7us */ udelay(14); /* Write control byte */ sirdev_raw_write(dev, &byte, 1); dev->speed = speed; state = TOIM3232_STATE_WAIT_SPEED; delay = toim3232delay; break; case TOIM3232_STATE_WAIT_SPEED: /* Have transmitted control byte * Wait for 'at least 1us' */ udelay(14); /* Set DTR, Set RTS: Go into normal data mode */ sirdev_set_dtr_rts(dev, TRUE, TRUE); /* Wait (TODO: check this is needed) */ udelay(50); break; default: printk(KERN_ERR "%s - undefined state %d\n", __func__, state); ret = -EINVAL; break; } dev->fsm.substate = state; return (delay > 0) ? delay : ret; } /* * Function toim3232reset (driver) * * This function resets the toim3232 dongle. Warning, this function * must be called with a process context!! * * What we should do is: * 0. Pull RESET high * 1. Wait for at least 7us * 2. Pull RESET low * 3. Wait for at least 7us * 4. Pull BR/~D high * 5. Wait for at least 7us * 6. Send control byte to set baud rate * 7. Wait at least 1us after stop bit * 8. Pull BR/~D low * 9. Should then be in data mode * * Because the IR320ST-2 doesn't have the RESET line connected for some reason, * we'll have to do something else. * * The default speed after a RESET is 9600, so lets try just bringing it up in * data mode after switching it off, waiting for the supply capacitor to * discharge, and then switch it back on. This isn't actually pulling RESET * high, but it seems to have the same effect. * * This behaviour will probably work on dongles that have the RESET line connected, * but if not, add a flag for the IR320ST-2, and implment the above-listed proper * behaviour. * * RTS is inverted and then fed to BR/~D, so to put it in programming mode, we * need to have pull RTS low */ static int toim3232_reset(struct sir_dev *dev) { /* Switch off both DTR and RTS to switch off dongle */ sirdev_set_dtr_rts(dev, FALSE, FALSE); /* Should sleep a while. This might be evil doing it this way.*/ set_current_state(TASK_UNINTERRUPTIBLE); schedule_timeout(msecs_to_jiffies(50)); /* Set DTR, Set RTS (data mode) */ sirdev_set_dtr_rts(dev, TRUE, TRUE); /* Wait at least 10 ms for power to stabilize again */ set_current_state(TASK_UNINTERRUPTIBLE); schedule_timeout(msecs_to_jiffies(10)); /* Speed should now be 9600 */ dev->speed = 9600; return 0; } MODULE_AUTHOR("David Basden <davidb-linux@rcpt.to>"); MODULE_DESCRIPTION("Vishay/Temic TOIM3232 based dongle driver"); MODULE_LICENSE("GPL"); MODULE_ALIAS("irda-dongle-12"); /* IRDA_TOIM3232_DONGLE */ module_init(toim3232_sir_init); module_exit(toim3232_sir_cleanup);